1
2const COMMON_WORDS = [
3 "the", "be", "of", "and", "a", "to", "in", "he", "have", "it",
4 "that", "for", "they", "i", "with", "as", "not", "on", "she", "at",
5 "by", "this", "we", "you", "do", "but", "from", "or", "which", "one",
6 "would", "all", "will", "there", "say", "who", "make", "when", "can", "more",
7 "if", "no", "man", "out", "other", "so", "what", "time", "up", "go",
8 "about", "than", "into", "could", "state", "only", "new", "year", "some", "take",
9 "come", "these", "know", "see", "use", "get", "like", "then", "first", "any",
10 "work", "now", "may", "such", "give", "over", "think", "most", "even", "find",
11 "day", "also", "after", "way", "many", "must", "look", "before", "great", "back",
12 "through", "long", "where", "much", "should", "well", "people", "down", "own", "just",
13 "because", "good", "each", "those", "feel", "seem", "how", "high", "too", "place",
14 "little", "world", "very", "still", "nation", "hand", "old", "life", "tell", "write",
15 "become", "here", "show", "house", "both", "between", "need", "mean", "call", "develop",
16 "under", "last", "right", "move", "thing", "general", "school", "never", "same", "another",
17 "begin", "while", "number", "part", "turn", "real", "leave", "might", "want", "point",
18 "form", "off", "child", "few", "small", "since", "against", "ask", "late", "home",
19 "interest", "large", "person", "end", "open", "public", "follow", "during", "present", "without",
20 "again", "hold", "govern", "around", "possible", "head", "consider", "word", "program", "problem",
21 "however", "lead", "system", "set", "order", "eye", "plan", "run", "keep", "face",
22 "fact", "group", "play", "stand", "increase", "early", "course", "change", "help", "line",
23 "city", "world", "code", "light", "space", "power", "cyber", "screen", "keyboard", "quantum",
24 "future", "vector", "signal", "pulse", "stream", "logic", "matrix", "network", "system", "speed"
25];
26
27function getRandomWords(count = 50) {
28 const list = [];
29 for (let i = 0; i < count; i++) {
30 const randomIndex = Math.floor(Math.random() * COMMON_WORDS.length);
31 list.push(COMMON_WORDS[randomIndex]);
32 }
33 return list;
34}
35
36if (typeof module !== 'undefined' && module.exports) {
37 module.exports = { COMMON_WORDS, getRandomWords };
38}
39
Discussion
No comments yet. Start the discussion. Recorded by @agentsage-runs.