@elara-services/packages 5.3.1 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/package.json +44 -0
  2. package/dist/src/index.d.ts +1 -0
  3. package/dist/src/index.js +17 -0
  4. package/dist/src/interfaces/discord.d.ts +91 -0
  5. package/dist/src/interfaces/discord.js +2 -0
  6. package/dist/src/interfaces/index.d.ts +1 -0
  7. package/dist/src/interfaces/index.js +17 -0
  8. package/dist/src/lib/AES.d.ts +7 -0
  9. package/dist/src/lib/AES.js +82 -0
  10. package/dist/src/lib/discord.d.ts +136 -0
  11. package/dist/src/lib/discord.js +381 -0
  12. package/dist/src/lib/index.d.ts +8 -0
  13. package/dist/src/lib/index.js +24 -0
  14. package/dist/src/lib/languages.d.ts +220 -0
  15. package/dist/src/lib/languages.js +125 -0
  16. package/dist/src/lib/minesweeper.d.ts +20 -0
  17. package/dist/src/lib/minesweeper.js +81 -0
  18. package/dist/src/lib/misc.d.ts +1 -0
  19. package/dist/src/lib/misc.js +73 -0
  20. package/dist/src/lib/random.d.ts +16 -0
  21. package/dist/src/lib/random.js +2035 -0
  22. package/dist/src/lib/tasks.d.ts +9 -0
  23. package/dist/src/lib/tasks.js +72 -0
  24. package/docs/.nojekyll +1 -0
  25. package/docs/assets/highlight.css +22 -0
  26. package/docs/assets/main.js +58 -0
  27. package/docs/assets/search.js +1 -0
  28. package/docs/assets/style.css +1367 -0
  29. package/docs/classes/AES.html +144 -0
  30. package/docs/classes/Minesweeper.html +205 -0
  31. package/docs/classes/Tasks.html +141 -0
  32. package/docs/functions/fetch.html +89 -0
  33. package/docs/functions/randomWeight.html +79 -0
  34. package/docs/functions/randomWords.html +74 -0
  35. package/docs/index.html +163 -0
  36. package/docs/interfaces/ButtonOptions.html +154 -0
  37. package/docs/interfaces/ModalOptions.html +124 -0
  38. package/docs/interfaces/RandomWord.html +153 -0
  39. package/docs/interfaces/SelectOptions.html +159 -0
  40. package/docs/interfaces/Slash.html +138 -0
  41. package/docs/interfaces/SlashOptions.html +187 -0
  42. package/docs/interfaces/TaskCreate.html +103 -0
  43. package/docs/interfaces/TextInputOptions.html +180 -0
  44. package/docs/modules.html +101 -0
  45. package/docs/types/ButtonNumberStyles.html +65 -0
  46. package/docs/types/ButtonStyles.html +65 -0
  47. package/docs/types/ChannelTypes.html +65 -0
  48. package/docs/types/Lang.html +65 -0
  49. package/docs/types/LangName.html +65 -0
  50. package/docs/variables/ButtonStyle.html +88 -0
  51. package/docs/variables/Duration.html +109 -0
  52. package/docs/variables/Interactions.html +159 -0
  53. package/docs/variables/Languages.html +294 -0
  54. package/docs/variables/SlashBuilder.html +238 -0
  55. package/package.json +44 -10
  56. package/.github/renovate.json +0 -5
  57. package/CHANGELOG +0 -62
  58. package/index.d.ts +0 -247
  59. package/index.js +0 -11
  60. package/packages/Interactions.js +0 -76
  61. package/packages/SlashBuilder.js +0 -58
  62. package/packages/Tasks.js +0 -22
  63. package/packages/aes256.js +0 -62
  64. package/packages/duration.js +0 -74
  65. package/packages/fetch.js +0 -30
  66. package/packages/languages.js +0 -119
  67. package/packages/minesweeper.js +0 -77
  68. package/packages/random/weight.js +0 -8
  69. package/packages/random/words.js +0 -300
@@ -0,0 +1,2035 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.randomWords = exports.randomWeight = void 0;
4
+ const utils_1 = require("@elara-services/utils");
5
+ function randomWeight(objects) {
6
+ const randomNumber = Math.random() * objects.reduce((agg, object) => agg + object.weight, 0);
7
+ let weightSum = 0;
8
+ return objects.find((o) => {
9
+ weightSum += o.weight;
10
+ return randomNumber <= weightSum;
11
+ });
12
+ }
13
+ exports.randomWeight = randomWeight;
14
+ const wordList = [
15
+ "ability",
16
+ "able",
17
+ "aboard",
18
+ "about",
19
+ "above",
20
+ "accept",
21
+ "accident",
22
+ "according",
23
+ "account",
24
+ "accurate",
25
+ "acres",
26
+ "across",
27
+ "act",
28
+ "action",
29
+ "active",
30
+ "activity",
31
+ "actual",
32
+ "actually",
33
+ "add",
34
+ "addition",
35
+ "additional",
36
+ "adjective",
37
+ "adult",
38
+ "adventure",
39
+ "advice",
40
+ "affect",
41
+ "afraid",
42
+ "after",
43
+ "afternoon",
44
+ "again",
45
+ "against",
46
+ "age",
47
+ "ago",
48
+ "agree",
49
+ "ahead",
50
+ "aid",
51
+ "air",
52
+ "airplane",
53
+ "alike",
54
+ "alive",
55
+ "all",
56
+ "allow",
57
+ "almost",
58
+ "alone",
59
+ "along",
60
+ "aloud",
61
+ "alphabet",
62
+ "already",
63
+ "also",
64
+ "although",
65
+ "am",
66
+ "among",
67
+ "amount",
68
+ "ancient",
69
+ "angle",
70
+ "angry",
71
+ "animal",
72
+ "announced",
73
+ "another",
74
+ "answer",
75
+ "ants",
76
+ "any",
77
+ "anybody",
78
+ "anyone",
79
+ "anything",
80
+ "anyway",
81
+ "anywhere",
82
+ "apart",
83
+ "apartment",
84
+ "appearance",
85
+ "apple",
86
+ "applied",
87
+ "appropriate",
88
+ "are",
89
+ "area",
90
+ "arm",
91
+ "army",
92
+ "around",
93
+ "arrange",
94
+ "arrangement",
95
+ "arrive",
96
+ "arrow",
97
+ "art",
98
+ "article",
99
+ "as",
100
+ "aside",
101
+ "ask",
102
+ "asleep",
103
+ "at",
104
+ "ate",
105
+ "atmosphere",
106
+ "atom",
107
+ "atomic",
108
+ "attached",
109
+ "attack",
110
+ "attempt",
111
+ "attention",
112
+ "audience",
113
+ "author",
114
+ "automobile",
115
+ "available",
116
+ "average",
117
+ "avoid",
118
+ "aware",
119
+ "away",
120
+ "baby",
121
+ "back",
122
+ "bad",
123
+ "badly",
124
+ "bag",
125
+ "balance",
126
+ "ball",
127
+ "balloon",
128
+ "band",
129
+ "bank",
130
+ "bar",
131
+ "bare",
132
+ "bark",
133
+ "barn",
134
+ "base",
135
+ "baseball",
136
+ "basic",
137
+ "basis",
138
+ "basket",
139
+ "bat",
140
+ "battle",
141
+ "be",
142
+ "bean",
143
+ "bear",
144
+ "beat",
145
+ "beautiful",
146
+ "beauty",
147
+ "became",
148
+ "because",
149
+ "become",
150
+ "becoming",
151
+ "bee",
152
+ "been",
153
+ "before",
154
+ "began",
155
+ "beginning",
156
+ "begun",
157
+ "behavior",
158
+ "behind",
159
+ "being",
160
+ "believed",
161
+ "bell",
162
+ "belong",
163
+ "below",
164
+ "belt",
165
+ "bend",
166
+ "beneath",
167
+ "bent",
168
+ "beside",
169
+ "best",
170
+ "bet",
171
+ "better",
172
+ "between",
173
+ "beyond",
174
+ "bicycle",
175
+ "bigger",
176
+ "biggest",
177
+ "bill",
178
+ "birds",
179
+ "birth",
180
+ "birthday",
181
+ "bit",
182
+ "bite",
183
+ "black",
184
+ "blank",
185
+ "blanket",
186
+ "blew",
187
+ "blind",
188
+ "block",
189
+ "blood",
190
+ "blow",
191
+ "blue",
192
+ "board",
193
+ "boat",
194
+ "body",
195
+ "bone",
196
+ "book",
197
+ "border",
198
+ "born",
199
+ "both",
200
+ "bottle",
201
+ "bottom",
202
+ "bound",
203
+ "bow",
204
+ "bowl",
205
+ "box",
206
+ "boy",
207
+ "brain",
208
+ "branch",
209
+ "brass",
210
+ "brave",
211
+ "bread",
212
+ "break",
213
+ "breakfast",
214
+ "breath",
215
+ "breathe",
216
+ "breathing",
217
+ "breeze",
218
+ "brick",
219
+ "bridge",
220
+ "brief",
221
+ "bright",
222
+ "bring",
223
+ "broad",
224
+ "broke",
225
+ "broken",
226
+ "brother",
227
+ "brought",
228
+ "brown",
229
+ "brush",
230
+ "buffalo",
231
+ "build",
232
+ "building",
233
+ "built",
234
+ "buried",
235
+ "burn",
236
+ "burst",
237
+ "bus",
238
+ "bush",
239
+ "business",
240
+ "busy",
241
+ "but",
242
+ "butter",
243
+ "buy",
244
+ "by",
245
+ "cabin",
246
+ "cage",
247
+ "cake",
248
+ "call",
249
+ "calm",
250
+ "came",
251
+ "camera",
252
+ "camp",
253
+ "can",
254
+ "canal",
255
+ "cannot",
256
+ "cap",
257
+ "capital",
258
+ "captain",
259
+ "captured",
260
+ "car",
261
+ "carbon",
262
+ "card",
263
+ "care",
264
+ "careful",
265
+ "carefully",
266
+ "carried",
267
+ "carry",
268
+ "case",
269
+ "cast",
270
+ "castle",
271
+ "cat",
272
+ "catch",
273
+ "cattle",
274
+ "caught",
275
+ "cause",
276
+ "cave",
277
+ "cell",
278
+ "cent",
279
+ "center",
280
+ "central",
281
+ "century",
282
+ "certain",
283
+ "certainly",
284
+ "chain",
285
+ "chair",
286
+ "chamber",
287
+ "chance",
288
+ "change",
289
+ "changing",
290
+ "chapter",
291
+ "character",
292
+ "characteristic",
293
+ "charge",
294
+ "chart",
295
+ "check",
296
+ "cheese",
297
+ "chemical",
298
+ "chest",
299
+ "chicken",
300
+ "chief",
301
+ "child",
302
+ "children",
303
+ "choice",
304
+ "choose",
305
+ "chose",
306
+ "chosen",
307
+ "church",
308
+ "circle",
309
+ "circus",
310
+ "citizen",
311
+ "city",
312
+ "class",
313
+ "classroom",
314
+ "claws",
315
+ "clay",
316
+ "clean",
317
+ "clear",
318
+ "clearly",
319
+ "climate",
320
+ "climb",
321
+ "clock",
322
+ "close",
323
+ "closely",
324
+ "closer",
325
+ "cloth",
326
+ "clothes",
327
+ "clothing",
328
+ "cloud",
329
+ "club",
330
+ "coach",
331
+ "coal",
332
+ "coast",
333
+ "coat",
334
+ "coffee",
335
+ "cold",
336
+ "collect",
337
+ "college",
338
+ "colony",
339
+ "color",
340
+ "column",
341
+ "combination",
342
+ "combine",
343
+ "come",
344
+ "comfortable",
345
+ "coming",
346
+ "command",
347
+ "common",
348
+ "community",
349
+ "company",
350
+ "compare",
351
+ "compass",
352
+ "complete",
353
+ "completely",
354
+ "complex",
355
+ "composed",
356
+ "composition",
357
+ "compound",
358
+ "concerned",
359
+ "condition",
360
+ "congress",
361
+ "connected",
362
+ "consider",
363
+ "consist",
364
+ "consonant",
365
+ "constantly",
366
+ "construction",
367
+ "contain",
368
+ "continent",
369
+ "continued",
370
+ "contrast",
371
+ "control",
372
+ "conversation",
373
+ "cook",
374
+ "cookies",
375
+ "cool",
376
+ "copper",
377
+ "copy",
378
+ "corn",
379
+ "corner",
380
+ "correct",
381
+ "correctly",
382
+ "cost",
383
+ "cotton",
384
+ "could",
385
+ "count",
386
+ "country",
387
+ "couple",
388
+ "courage",
389
+ "course",
390
+ "court",
391
+ "cover",
392
+ "cow",
393
+ "cowboy",
394
+ "crack",
395
+ "cream",
396
+ "create",
397
+ "creature",
398
+ "crew",
399
+ "crop",
400
+ "cross",
401
+ "crowd",
402
+ "cry",
403
+ "cup",
404
+ "curious",
405
+ "current",
406
+ "curve",
407
+ "customs",
408
+ "cut",
409
+ "cutting",
410
+ "daily",
411
+ "damage",
412
+ "dance",
413
+ "danger",
414
+ "dangerous",
415
+ "dark",
416
+ "darkness",
417
+ "date",
418
+ "daughter",
419
+ "dawn",
420
+ "day",
421
+ "dead",
422
+ "deal",
423
+ "dear",
424
+ "death",
425
+ "decide",
426
+ "declared",
427
+ "deep",
428
+ "deeply",
429
+ "deer",
430
+ "definition",
431
+ "degree",
432
+ "depend",
433
+ "depth",
434
+ "describe",
435
+ "desert",
436
+ "design",
437
+ "desk",
438
+ "detail",
439
+ "determine",
440
+ "develop",
441
+ "development",
442
+ "diagram",
443
+ "diameter",
444
+ "did",
445
+ "die",
446
+ "differ",
447
+ "difference",
448
+ "different",
449
+ "difficult",
450
+ "difficulty",
451
+ "dig",
452
+ "dinner",
453
+ "direct",
454
+ "direction",
455
+ "directly",
456
+ "dirt",
457
+ "dirty",
458
+ "disappear",
459
+ "discover",
460
+ "discovery",
461
+ "discuss",
462
+ "discussion",
463
+ "disease",
464
+ "dish",
465
+ "distance",
466
+ "distant",
467
+ "divide",
468
+ "division",
469
+ "do",
470
+ "doctor",
471
+ "does",
472
+ "dog",
473
+ "doing",
474
+ "doll",
475
+ "dollar",
476
+ "done",
477
+ "donkey",
478
+ "door",
479
+ "dot",
480
+ "double",
481
+ "doubt",
482
+ "down",
483
+ "dozen",
484
+ "draw",
485
+ "drawn",
486
+ "dream",
487
+ "dress",
488
+ "drew",
489
+ "dried",
490
+ "drink",
491
+ "drive",
492
+ "driven",
493
+ "driver",
494
+ "driving",
495
+ "drop",
496
+ "dropped",
497
+ "drove",
498
+ "dry",
499
+ "duck",
500
+ "due",
501
+ "dug",
502
+ "dull",
503
+ "during",
504
+ "dust",
505
+ "duty",
506
+ "each",
507
+ "eager",
508
+ "ear",
509
+ "earlier",
510
+ "early",
511
+ "earn",
512
+ "earth",
513
+ "easier",
514
+ "easily",
515
+ "east",
516
+ "easy",
517
+ "eat",
518
+ "eaten",
519
+ "edge",
520
+ "education",
521
+ "effect",
522
+ "effort",
523
+ "egg",
524
+ "eight",
525
+ "either",
526
+ "electric",
527
+ "electricity",
528
+ "element",
529
+ "elephant",
530
+ "eleven",
531
+ "else",
532
+ "empty",
533
+ "end",
534
+ "enemy",
535
+ "energy",
536
+ "engine",
537
+ "engineer",
538
+ "enjoy",
539
+ "enough",
540
+ "enter",
541
+ "entire",
542
+ "entirely",
543
+ "environment",
544
+ "equal",
545
+ "equally",
546
+ "equator",
547
+ "equipment",
548
+ "escape",
549
+ "especially",
550
+ "essential",
551
+ "establish",
552
+ "even",
553
+ "evening",
554
+ "event",
555
+ "eventually",
556
+ "ever",
557
+ "every",
558
+ "everybody",
559
+ "everyone",
560
+ "everything",
561
+ "everywhere",
562
+ "evidence",
563
+ "exact",
564
+ "exactly",
565
+ "examine",
566
+ "example",
567
+ "excellent",
568
+ "except",
569
+ "exchange",
570
+ "excited",
571
+ "excitement",
572
+ "exciting",
573
+ "exclaimed",
574
+ "exercise",
575
+ "exist",
576
+ "expect",
577
+ "experience",
578
+ "experiment",
579
+ "explain",
580
+ "explanation",
581
+ "explore",
582
+ "express",
583
+ "expression",
584
+ "extra",
585
+ "eye",
586
+ "face",
587
+ "facing",
588
+ "fact",
589
+ "factor",
590
+ "factory",
591
+ "failed",
592
+ "fair",
593
+ "fairly",
594
+ "fall",
595
+ "fallen",
596
+ "familiar",
597
+ "family",
598
+ "famous",
599
+ "far",
600
+ "farm",
601
+ "farmer",
602
+ "farther",
603
+ "fast",
604
+ "fastened",
605
+ "faster",
606
+ "fat",
607
+ "father",
608
+ "favorite",
609
+ "fear",
610
+ "feathers",
611
+ "feature",
612
+ "fed",
613
+ "feed",
614
+ "feel",
615
+ "feet",
616
+ "fell",
617
+ "fellow",
618
+ "felt",
619
+ "fence",
620
+ "few",
621
+ "fewer",
622
+ "field",
623
+ "fierce",
624
+ "fifteen",
625
+ "fifth",
626
+ "fifty",
627
+ "fight",
628
+ "fighting",
629
+ "figure",
630
+ "fill",
631
+ "film",
632
+ "final",
633
+ "finally",
634
+ "find",
635
+ "fine",
636
+ "finest",
637
+ "finger",
638
+ "finish",
639
+ "fire",
640
+ "fireplace",
641
+ "firm",
642
+ "first",
643
+ "fish",
644
+ "five",
645
+ "fix",
646
+ "flag",
647
+ "flame",
648
+ "flat",
649
+ "flew",
650
+ "flies",
651
+ "flight",
652
+ "floating",
653
+ "floor",
654
+ "flow",
655
+ "flower",
656
+ "fly",
657
+ "fog",
658
+ "folks",
659
+ "follow",
660
+ "food",
661
+ "foot",
662
+ "football",
663
+ "for",
664
+ "force",
665
+ "foreign",
666
+ "forest",
667
+ "forget",
668
+ "forgot",
669
+ "forgotten",
670
+ "form",
671
+ "former",
672
+ "fort",
673
+ "forth",
674
+ "forty",
675
+ "forward",
676
+ "fought",
677
+ "found",
678
+ "four",
679
+ "fourth",
680
+ "fox",
681
+ "frame",
682
+ "free",
683
+ "freedom",
684
+ "frequently",
685
+ "fresh",
686
+ "friend",
687
+ "friendly",
688
+ "frighten",
689
+ "frog",
690
+ "from",
691
+ "front",
692
+ "frozen",
693
+ "fruit",
694
+ "fuel",
695
+ "full",
696
+ "fully",
697
+ "fun",
698
+ "function",
699
+ "funny",
700
+ "fur",
701
+ "furniture",
702
+ "further",
703
+ "future",
704
+ "gain",
705
+ "game",
706
+ "garage",
707
+ "garden",
708
+ "gas",
709
+ "gasoline",
710
+ "gate",
711
+ "gather",
712
+ "gave",
713
+ "general",
714
+ "generally",
715
+ "gentle",
716
+ "gently",
717
+ "get",
718
+ "getting",
719
+ "giant",
720
+ "gift",
721
+ "girl",
722
+ "give",
723
+ "given",
724
+ "giving",
725
+ "glad",
726
+ "glass",
727
+ "globe",
728
+ "go",
729
+ "goes",
730
+ "gold",
731
+ "golden",
732
+ "gone",
733
+ "good",
734
+ "goose",
735
+ "got",
736
+ "government",
737
+ "grabbed",
738
+ "grade",
739
+ "gradually",
740
+ "grain",
741
+ "grandfather",
742
+ "grandmother",
743
+ "graph",
744
+ "grass",
745
+ "gravity",
746
+ "gray",
747
+ "great",
748
+ "greater",
749
+ "greatest",
750
+ "greatly",
751
+ "green",
752
+ "grew",
753
+ "ground",
754
+ "group",
755
+ "grow",
756
+ "grown",
757
+ "growth",
758
+ "guard",
759
+ "guess",
760
+ "guide",
761
+ "gulf",
762
+ "gun",
763
+ "habit",
764
+ "had",
765
+ "hair",
766
+ "half",
767
+ "halfway",
768
+ "hall",
769
+ "hand",
770
+ "handle",
771
+ "handsome",
772
+ "hang",
773
+ "happen",
774
+ "happened",
775
+ "happily",
776
+ "happy",
777
+ "harbor",
778
+ "hard",
779
+ "harder",
780
+ "hardly",
781
+ "has",
782
+ "hat",
783
+ "have",
784
+ "having",
785
+ "hay",
786
+ "he",
787
+ "headed",
788
+ "heading",
789
+ "health",
790
+ "heard",
791
+ "hearing",
792
+ "heart",
793
+ "heat",
794
+ "heavy",
795
+ "height",
796
+ "held",
797
+ "hello",
798
+ "help",
799
+ "helpful",
800
+ "her",
801
+ "herd",
802
+ "here",
803
+ "herself",
804
+ "hidden",
805
+ "hide",
806
+ "high",
807
+ "higher",
808
+ "highest",
809
+ "highway",
810
+ "hill",
811
+ "him",
812
+ "himself",
813
+ "his",
814
+ "history",
815
+ "hit",
816
+ "hold",
817
+ "hole",
818
+ "hollow",
819
+ "home",
820
+ "honor",
821
+ "hope",
822
+ "horn",
823
+ "horse",
824
+ "hospital",
825
+ "hot",
826
+ "hour",
827
+ "house",
828
+ "how",
829
+ "however",
830
+ "huge",
831
+ "human",
832
+ "hundred",
833
+ "hung",
834
+ "hungry",
835
+ "hunt",
836
+ "hunter",
837
+ "hurried",
838
+ "hurry",
839
+ "hurt",
840
+ "husband",
841
+ "ice",
842
+ "idea",
843
+ "identity",
844
+ "if",
845
+ "ill",
846
+ "image",
847
+ "imagine",
848
+ "immediately",
849
+ "importance",
850
+ "important",
851
+ "impossible",
852
+ "improve",
853
+ "in",
854
+ "inch",
855
+ "include",
856
+ "including",
857
+ "income",
858
+ "increase",
859
+ "indeed",
860
+ "independent",
861
+ "indicate",
862
+ "individual",
863
+ "industrial",
864
+ "industry",
865
+ "influence",
866
+ "information",
867
+ "inside",
868
+ "instance",
869
+ "instant",
870
+ "instead",
871
+ "instrument",
872
+ "interest",
873
+ "interior",
874
+ "into",
875
+ "introduced",
876
+ "invented",
877
+ "involved",
878
+ "iron",
879
+ "is",
880
+ "island",
881
+ "it",
882
+ "its",
883
+ "itself",
884
+ "jack",
885
+ "jar",
886
+ "jet",
887
+ "job",
888
+ "join",
889
+ "joined",
890
+ "journey",
891
+ "joy",
892
+ "judge",
893
+ "jump",
894
+ "jungle",
895
+ "just",
896
+ "keep",
897
+ "kept",
898
+ "key",
899
+ "kids",
900
+ "kill",
901
+ "kind",
902
+ "kitchen",
903
+ "knew",
904
+ "knife",
905
+ "know",
906
+ "knowledge",
907
+ "known",
908
+ "label",
909
+ "labor",
910
+ "lack",
911
+ "lady",
912
+ "laid",
913
+ "lake",
914
+ "lamp",
915
+ "land",
916
+ "language",
917
+ "large",
918
+ "larger",
919
+ "largest",
920
+ "last",
921
+ "late",
922
+ "later",
923
+ "laugh",
924
+ "law",
925
+ "lay",
926
+ "layers",
927
+ "lead",
928
+ "leader",
929
+ "leaf",
930
+ "learn",
931
+ "least",
932
+ "leather",
933
+ "leave",
934
+ "leaving",
935
+ "led",
936
+ "left",
937
+ "leg",
938
+ "length",
939
+ "lesson",
940
+ "let",
941
+ "letter",
942
+ "level",
943
+ "library",
944
+ "lie",
945
+ "life",
946
+ "lift",
947
+ "light",
948
+ "like",
949
+ "likely",
950
+ "limited",
951
+ "line",
952
+ "lion",
953
+ "lips",
954
+ "liquid",
955
+ "list",
956
+ "listen",
957
+ "little",
958
+ "live",
959
+ "living",
960
+ "load",
961
+ "local",
962
+ "locate",
963
+ "location",
964
+ "log",
965
+ "lonely",
966
+ "long",
967
+ "longer",
968
+ "look",
969
+ "loose",
970
+ "lose",
971
+ "loss",
972
+ "lost",
973
+ "lot",
974
+ "loud",
975
+ "love",
976
+ "lovely",
977
+ "low",
978
+ "lower",
979
+ "luck",
980
+ "lucky",
981
+ "lunch",
982
+ "lungs",
983
+ "lying",
984
+ "machine",
985
+ "machinery",
986
+ "mad",
987
+ "made",
988
+ "magic",
989
+ "magnet",
990
+ "mail",
991
+ "main",
992
+ "mainly",
993
+ "major",
994
+ "make",
995
+ "making",
996
+ "man",
997
+ "managed",
998
+ "manner",
999
+ "manufacturing",
1000
+ "many",
1001
+ "map",
1002
+ "mark",
1003
+ "market",
1004
+ "married",
1005
+ "mass",
1006
+ "massage",
1007
+ "master",
1008
+ "material",
1009
+ "mathematics",
1010
+ "matter",
1011
+ "may",
1012
+ "maybe",
1013
+ "me",
1014
+ "meal",
1015
+ "mean",
1016
+ "means",
1017
+ "meant",
1018
+ "measure",
1019
+ "meat",
1020
+ "medicine",
1021
+ "meet",
1022
+ "melted",
1023
+ "member",
1024
+ "memory",
1025
+ "men",
1026
+ "mental",
1027
+ "merely",
1028
+ "met",
1029
+ "metal",
1030
+ "method",
1031
+ "mice",
1032
+ "middle",
1033
+ "might",
1034
+ "mighty",
1035
+ "mile",
1036
+ "military",
1037
+ "milk",
1038
+ "mill",
1039
+ "mind",
1040
+ "mine",
1041
+ "minerals",
1042
+ "minute",
1043
+ "mirror",
1044
+ "missing",
1045
+ "mission",
1046
+ "mistake",
1047
+ "mix",
1048
+ "mixture",
1049
+ "model",
1050
+ "modern",
1051
+ "molecular",
1052
+ "moment",
1053
+ "money",
1054
+ "monkey",
1055
+ "month",
1056
+ "mood",
1057
+ "moon",
1058
+ "more",
1059
+ "morning",
1060
+ "most",
1061
+ "mostly",
1062
+ "mother",
1063
+ "motion",
1064
+ "motor",
1065
+ "mountain",
1066
+ "mouse",
1067
+ "mouth",
1068
+ "move",
1069
+ "movement",
1070
+ "movie",
1071
+ "moving",
1072
+ "mud",
1073
+ "muscle",
1074
+ "music",
1075
+ "musical",
1076
+ "must",
1077
+ "my",
1078
+ "myself",
1079
+ "mysterious",
1080
+ "nails",
1081
+ "name",
1082
+ "nation",
1083
+ "national",
1084
+ "native",
1085
+ "natural",
1086
+ "naturally",
1087
+ "nature",
1088
+ "near",
1089
+ "nearby",
1090
+ "nearer",
1091
+ "nearest",
1092
+ "nearly",
1093
+ "necessary",
1094
+ "neck",
1095
+ "needed",
1096
+ "needle",
1097
+ "needs",
1098
+ "negative",
1099
+ "neighbor",
1100
+ "neighborhood",
1101
+ "nervous",
1102
+ "nest",
1103
+ "never",
1104
+ "new",
1105
+ "news",
1106
+ "newspaper",
1107
+ "next",
1108
+ "nice",
1109
+ "night",
1110
+ "nine",
1111
+ "no",
1112
+ "nobody",
1113
+ "nodded",
1114
+ "noise",
1115
+ "none",
1116
+ "noon",
1117
+ "nor",
1118
+ "north",
1119
+ "nose",
1120
+ "not",
1121
+ "note",
1122
+ "noted",
1123
+ "nothing",
1124
+ "notice",
1125
+ "noun",
1126
+ "now",
1127
+ "number",
1128
+ "numeral",
1129
+ "nuts",
1130
+ "object",
1131
+ "observe",
1132
+ "obtain",
1133
+ "occasionally",
1134
+ "occur",
1135
+ "ocean",
1136
+ "of",
1137
+ "off",
1138
+ "offer",
1139
+ "office",
1140
+ "officer",
1141
+ "official",
1142
+ "oil",
1143
+ "old",
1144
+ "older",
1145
+ "oldest",
1146
+ "on",
1147
+ "once",
1148
+ "one",
1149
+ "only",
1150
+ "onto",
1151
+ "open",
1152
+ "operation",
1153
+ "opinion",
1154
+ "opportunity",
1155
+ "opposite",
1156
+ "or",
1157
+ "orange",
1158
+ "orbit",
1159
+ "order",
1160
+ "ordinary",
1161
+ "organization",
1162
+ "organized",
1163
+ "origin",
1164
+ "original",
1165
+ "other",
1166
+ "ought",
1167
+ "our",
1168
+ "ourselves",
1169
+ "out",
1170
+ "outer",
1171
+ "outline",
1172
+ "outside",
1173
+ "over",
1174
+ "own",
1175
+ "owner",
1176
+ "oxygen",
1177
+ "pack",
1178
+ "package",
1179
+ "page",
1180
+ "paid",
1181
+ "pain",
1182
+ "paint",
1183
+ "pair",
1184
+ "palace",
1185
+ "pale",
1186
+ "pan",
1187
+ "paper",
1188
+ "paragraph",
1189
+ "parallel",
1190
+ "parent",
1191
+ "park",
1192
+ "part",
1193
+ "particles",
1194
+ "particular",
1195
+ "particularly",
1196
+ "partly",
1197
+ "parts",
1198
+ "party",
1199
+ "pass",
1200
+ "passage",
1201
+ "past",
1202
+ "path",
1203
+ "pattern",
1204
+ "pay",
1205
+ "peace",
1206
+ "pen",
1207
+ "pencil",
1208
+ "people",
1209
+ "per",
1210
+ "percent",
1211
+ "perfect",
1212
+ "perfectly",
1213
+ "perhaps",
1214
+ "period",
1215
+ "person",
1216
+ "personal",
1217
+ "pet",
1218
+ "phrase",
1219
+ "physical",
1220
+ "piano",
1221
+ "pick",
1222
+ "picture",
1223
+ "pictured",
1224
+ "pie",
1225
+ "piece",
1226
+ "pig",
1227
+ "pile",
1228
+ "pilot",
1229
+ "pine",
1230
+ "pink",
1231
+ "pipe",
1232
+ "pitch",
1233
+ "place",
1234
+ "plain",
1235
+ "plan",
1236
+ "plane",
1237
+ "planet",
1238
+ "planned",
1239
+ "planning",
1240
+ "plant",
1241
+ "plastic",
1242
+ "plate",
1243
+ "plates",
1244
+ "play",
1245
+ "pleasant",
1246
+ "please",
1247
+ "pleasure",
1248
+ "plenty",
1249
+ "plural",
1250
+ "plus",
1251
+ "pocket",
1252
+ "poem",
1253
+ "poet",
1254
+ "poetry",
1255
+ "point",
1256
+ "pole",
1257
+ "police",
1258
+ "policeman",
1259
+ "political",
1260
+ "pond",
1261
+ "pony",
1262
+ "pool",
1263
+ "poor",
1264
+ "popular",
1265
+ "population",
1266
+ "porch",
1267
+ "port",
1268
+ "position",
1269
+ "positive",
1270
+ "possible",
1271
+ "possibly",
1272
+ "post",
1273
+ "pot",
1274
+ "potatoes",
1275
+ "pound",
1276
+ "pour",
1277
+ "powder",
1278
+ "power",
1279
+ "powerful",
1280
+ "practical",
1281
+ "practice",
1282
+ "prepare",
1283
+ "present",
1284
+ "president",
1285
+ "press",
1286
+ "pressure",
1287
+ "pretty",
1288
+ "prevent",
1289
+ "previous",
1290
+ "price",
1291
+ "pride",
1292
+ "primitive",
1293
+ "principal",
1294
+ "principle",
1295
+ "printed",
1296
+ "private",
1297
+ "prize",
1298
+ "probably",
1299
+ "problem",
1300
+ "process",
1301
+ "produce",
1302
+ "product",
1303
+ "production",
1304
+ "program",
1305
+ "progress",
1306
+ "promised",
1307
+ "proper",
1308
+ "properly",
1309
+ "property",
1310
+ "protection",
1311
+ "proud",
1312
+ "prove",
1313
+ "provide",
1314
+ "public",
1315
+ "pull",
1316
+ "pupil",
1317
+ "pure",
1318
+ "purple",
1319
+ "purpose",
1320
+ "push",
1321
+ "put",
1322
+ "putting",
1323
+ "quarter",
1324
+ "queen",
1325
+ "question",
1326
+ "quick",
1327
+ "quickly",
1328
+ "quiet",
1329
+ "quietly",
1330
+ "quite",
1331
+ "rabbit",
1332
+ "race",
1333
+ "radio",
1334
+ "railroad",
1335
+ "rain",
1336
+ "raise",
1337
+ "ran",
1338
+ "ranch",
1339
+ "range",
1340
+ "rapidly",
1341
+ "rate",
1342
+ "rather",
1343
+ "raw",
1344
+ "rays",
1345
+ "reach",
1346
+ "read",
1347
+ "reader",
1348
+ "ready",
1349
+ "real",
1350
+ "realize",
1351
+ "rear",
1352
+ "reason",
1353
+ "recall",
1354
+ "receive",
1355
+ "recent",
1356
+ "recently",
1357
+ "recognize",
1358
+ "record",
1359
+ "red",
1360
+ "refer",
1361
+ "refused",
1362
+ "region",
1363
+ "regular",
1364
+ "related",
1365
+ "relationship",
1366
+ "religious",
1367
+ "remain",
1368
+ "remarkable",
1369
+ "remember",
1370
+ "remove",
1371
+ "repeat",
1372
+ "replace",
1373
+ "replied",
1374
+ "report",
1375
+ "represent",
1376
+ "require",
1377
+ "research",
1378
+ "respect",
1379
+ "rest",
1380
+ "result",
1381
+ "return",
1382
+ "review",
1383
+ "rhyme",
1384
+ "rhythm",
1385
+ "rice",
1386
+ "rich",
1387
+ "ride",
1388
+ "riding",
1389
+ "right",
1390
+ "ring",
1391
+ "rise",
1392
+ "rising",
1393
+ "river",
1394
+ "road",
1395
+ "roar",
1396
+ "rock",
1397
+ "rocket",
1398
+ "rocky",
1399
+ "rod",
1400
+ "roll",
1401
+ "roof",
1402
+ "room",
1403
+ "root",
1404
+ "rope",
1405
+ "rose",
1406
+ "rough",
1407
+ "round",
1408
+ "route",
1409
+ "row",
1410
+ "rubbed",
1411
+ "rubber",
1412
+ "rule",
1413
+ "ruler",
1414
+ "run",
1415
+ "running",
1416
+ "rush",
1417
+ "sad",
1418
+ "saddle",
1419
+ "safe",
1420
+ "safety",
1421
+ "said",
1422
+ "sail",
1423
+ "sale",
1424
+ "salmon",
1425
+ "salt",
1426
+ "same",
1427
+ "sand",
1428
+ "sang",
1429
+ "sat",
1430
+ "satellites",
1431
+ "satisfied",
1432
+ "save",
1433
+ "saved",
1434
+ "saw",
1435
+ "say",
1436
+ "scale",
1437
+ "scared",
1438
+ "scene",
1439
+ "school",
1440
+ "science",
1441
+ "scientific",
1442
+ "scientist",
1443
+ "score",
1444
+ "screen",
1445
+ "sea",
1446
+ "search",
1447
+ "season",
1448
+ "seat",
1449
+ "second",
1450
+ "secret",
1451
+ "section",
1452
+ "see",
1453
+ "seed",
1454
+ "seeing",
1455
+ "seems",
1456
+ "seen",
1457
+ "seldom",
1458
+ "select",
1459
+ "selection",
1460
+ "sell",
1461
+ "send",
1462
+ "sense",
1463
+ "sent",
1464
+ "sentence",
1465
+ "separate",
1466
+ "series",
1467
+ "serious",
1468
+ "serve",
1469
+ "service",
1470
+ "sets",
1471
+ "setting",
1472
+ "settle",
1473
+ "settlers",
1474
+ "seven",
1475
+ "several",
1476
+ "shade",
1477
+ "shadow",
1478
+ "shake",
1479
+ "shaking",
1480
+ "shall",
1481
+ "shallow",
1482
+ "shape",
1483
+ "share",
1484
+ "sharp",
1485
+ "she",
1486
+ "sheep",
1487
+ "sheet",
1488
+ "shelf",
1489
+ "shells",
1490
+ "shelter",
1491
+ "shine",
1492
+ "shinning",
1493
+ "ship",
1494
+ "shirt",
1495
+ "shoe",
1496
+ "shoot",
1497
+ "shop",
1498
+ "shore",
1499
+ "short",
1500
+ "shorter",
1501
+ "shot",
1502
+ "should",
1503
+ "shoulder",
1504
+ "shout",
1505
+ "show",
1506
+ "shown",
1507
+ "shut",
1508
+ "sick",
1509
+ "sides",
1510
+ "sight",
1511
+ "sign",
1512
+ "signal",
1513
+ "silence",
1514
+ "silent",
1515
+ "silk",
1516
+ "silly",
1517
+ "silver",
1518
+ "similar",
1519
+ "simple",
1520
+ "simplest",
1521
+ "simply",
1522
+ "since",
1523
+ "sing",
1524
+ "single",
1525
+ "sink",
1526
+ "sister",
1527
+ "sit",
1528
+ "sitting",
1529
+ "situation",
1530
+ "six",
1531
+ "size",
1532
+ "skill",
1533
+ "skin",
1534
+ "sky",
1535
+ "slabs",
1536
+ "slave",
1537
+ "sleep",
1538
+ "slept",
1539
+ "slide",
1540
+ "slight",
1541
+ "slightly",
1542
+ "slip",
1543
+ "slipped",
1544
+ "slope",
1545
+ "slow",
1546
+ "slowly",
1547
+ "small",
1548
+ "smaller",
1549
+ "smallest",
1550
+ "smell",
1551
+ "smile",
1552
+ "smoke",
1553
+ "smooth",
1554
+ "snake",
1555
+ "snow",
1556
+ "so",
1557
+ "soap",
1558
+ "social",
1559
+ "society",
1560
+ "soft",
1561
+ "softly",
1562
+ "soil",
1563
+ "solar",
1564
+ "sold",
1565
+ "soldier",
1566
+ "solid",
1567
+ "solution",
1568
+ "solve",
1569
+ "some",
1570
+ "somebody",
1571
+ "somehow",
1572
+ "someone",
1573
+ "something",
1574
+ "sometime",
1575
+ "somewhere",
1576
+ "son",
1577
+ "song",
1578
+ "soon",
1579
+ "sort",
1580
+ "sound",
1581
+ "source",
1582
+ "south",
1583
+ "southern",
1584
+ "space",
1585
+ "speak",
1586
+ "special",
1587
+ "species",
1588
+ "specific",
1589
+ "speech",
1590
+ "speed",
1591
+ "spell",
1592
+ "spend",
1593
+ "spent",
1594
+ "spider",
1595
+ "spin",
1596
+ "spirit",
1597
+ "spite",
1598
+ "split",
1599
+ "spoken",
1600
+ "sport",
1601
+ "spread",
1602
+ "spring",
1603
+ "square",
1604
+ "stage",
1605
+ "stairs",
1606
+ "stand",
1607
+ "standard",
1608
+ "star",
1609
+ "stared",
1610
+ "start",
1611
+ "state",
1612
+ "statement",
1613
+ "station",
1614
+ "stay",
1615
+ "steady",
1616
+ "steam",
1617
+ "steel",
1618
+ "steep",
1619
+ "stems",
1620
+ "step",
1621
+ "stepped",
1622
+ "stick",
1623
+ "stiff",
1624
+ "still",
1625
+ "stock",
1626
+ "stomach",
1627
+ "stone",
1628
+ "stood",
1629
+ "stop",
1630
+ "stopped",
1631
+ "store",
1632
+ "storm",
1633
+ "story",
1634
+ "stove",
1635
+ "straight",
1636
+ "strange",
1637
+ "stranger",
1638
+ "straw",
1639
+ "stream",
1640
+ "street",
1641
+ "strength",
1642
+ "stretch",
1643
+ "strike",
1644
+ "string",
1645
+ "strip",
1646
+ "strong",
1647
+ "stronger",
1648
+ "struck",
1649
+ "structure",
1650
+ "struggle",
1651
+ "stuck",
1652
+ "student",
1653
+ "studied",
1654
+ "studying",
1655
+ "subject",
1656
+ "substance",
1657
+ "success",
1658
+ "successful",
1659
+ "such",
1660
+ "sudden",
1661
+ "suddenly",
1662
+ "sugar",
1663
+ "suggest",
1664
+ "suit",
1665
+ "sum",
1666
+ "summer",
1667
+ "sun",
1668
+ "sunlight",
1669
+ "supper",
1670
+ "supply",
1671
+ "support",
1672
+ "suppose",
1673
+ "sure",
1674
+ "surface",
1675
+ "surprise",
1676
+ "surrounded",
1677
+ "swam",
1678
+ "sweet",
1679
+ "swept",
1680
+ "swim",
1681
+ "swimming",
1682
+ "swing",
1683
+ "swung",
1684
+ "syllable",
1685
+ "symbol",
1686
+ "system",
1687
+ "table",
1688
+ "tail",
1689
+ "take",
1690
+ "taken",
1691
+ "tales",
1692
+ "talk",
1693
+ "tall",
1694
+ "tank",
1695
+ "tape",
1696
+ "task",
1697
+ "taste",
1698
+ "taught",
1699
+ "tax",
1700
+ "tea",
1701
+ "teach",
1702
+ "teacher",
1703
+ "team",
1704
+ "tears",
1705
+ "teeth",
1706
+ "telephone",
1707
+ "television",
1708
+ "tell",
1709
+ "temperature",
1710
+ "ten",
1711
+ "tent",
1712
+ "term",
1713
+ "terrible",
1714
+ "test",
1715
+ "than",
1716
+ "thank",
1717
+ "that",
1718
+ "thee",
1719
+ "them",
1720
+ "themselves",
1721
+ "then",
1722
+ "theory",
1723
+ "there",
1724
+ "therefore",
1725
+ "these",
1726
+ "they",
1727
+ "thick",
1728
+ "thin",
1729
+ "thing",
1730
+ "think",
1731
+ "third",
1732
+ "thirty",
1733
+ "this",
1734
+ "those",
1735
+ "thou",
1736
+ "though",
1737
+ "thought",
1738
+ "thousand",
1739
+ "thread",
1740
+ "three",
1741
+ "threw",
1742
+ "throat",
1743
+ "through",
1744
+ "throughout",
1745
+ "throw",
1746
+ "thrown",
1747
+ "thumb",
1748
+ "thus",
1749
+ "thy",
1750
+ "tide",
1751
+ "tie",
1752
+ "tight",
1753
+ "tightly",
1754
+ "till",
1755
+ "time",
1756
+ "tin",
1757
+ "tiny",
1758
+ "tip",
1759
+ "tired",
1760
+ "title",
1761
+ "to",
1762
+ "tobacco",
1763
+ "today",
1764
+ "together",
1765
+ "told",
1766
+ "tomorrow",
1767
+ "tone",
1768
+ "tongue",
1769
+ "tonight",
1770
+ "too",
1771
+ "took",
1772
+ "tool",
1773
+ "top",
1774
+ "topic",
1775
+ "torn",
1776
+ "total",
1777
+ "touch",
1778
+ "toward",
1779
+ "tower",
1780
+ "town",
1781
+ "toy",
1782
+ "trace",
1783
+ "track",
1784
+ "trade",
1785
+ "traffic",
1786
+ "trail",
1787
+ "train",
1788
+ "transportation",
1789
+ "trap",
1790
+ "travel",
1791
+ "treated",
1792
+ "tree",
1793
+ "triangle",
1794
+ "tribe",
1795
+ "trick",
1796
+ "tried",
1797
+ "trip",
1798
+ "troops",
1799
+ "tropical",
1800
+ "trouble",
1801
+ "truck",
1802
+ "trunk",
1803
+ "truth",
1804
+ "try",
1805
+ "tube",
1806
+ "tune",
1807
+ "turn",
1808
+ "twelve",
1809
+ "twenty",
1810
+ "twice",
1811
+ "two",
1812
+ "type",
1813
+ "typical",
1814
+ "uncle",
1815
+ "under",
1816
+ "underline",
1817
+ "understanding",
1818
+ "unhappy",
1819
+ "union",
1820
+ "unit",
1821
+ "universe",
1822
+ "unknown",
1823
+ "unless",
1824
+ "until",
1825
+ "unusual",
1826
+ "up",
1827
+ "upon",
1828
+ "upper",
1829
+ "upward",
1830
+ "us",
1831
+ "use",
1832
+ "useful",
1833
+ "using",
1834
+ "usual",
1835
+ "usually",
1836
+ "valley",
1837
+ "valuable",
1838
+ "value",
1839
+ "vapor",
1840
+ "variety",
1841
+ "various",
1842
+ "vast",
1843
+ "vegetable",
1844
+ "verb",
1845
+ "vertical",
1846
+ "very",
1847
+ "vessels",
1848
+ "victory",
1849
+ "view",
1850
+ "village",
1851
+ "visit",
1852
+ "visitor",
1853
+ "voice",
1854
+ "volume",
1855
+ "vote",
1856
+ "vowel",
1857
+ "voyage",
1858
+ "wagon",
1859
+ "wait",
1860
+ "walk",
1861
+ "wall",
1862
+ "want",
1863
+ "war",
1864
+ "warm",
1865
+ "warn",
1866
+ "was",
1867
+ "wash",
1868
+ "waste",
1869
+ "watch",
1870
+ "water",
1871
+ "wave",
1872
+ "way",
1873
+ "we",
1874
+ "weak",
1875
+ "wealth",
1876
+ "wear",
1877
+ "weather",
1878
+ "week",
1879
+ "weigh",
1880
+ "weight",
1881
+ "welcome",
1882
+ "well",
1883
+ "went",
1884
+ "were",
1885
+ "west",
1886
+ "western",
1887
+ "wet",
1888
+ "whale",
1889
+ "what",
1890
+ "whatever",
1891
+ "wheat",
1892
+ "wheel",
1893
+ "when",
1894
+ "whenever",
1895
+ "where",
1896
+ "wherever",
1897
+ "whether",
1898
+ "which",
1899
+ "while",
1900
+ "whispered",
1901
+ "whistle",
1902
+ "white",
1903
+ "who",
1904
+ "whole",
1905
+ "whom",
1906
+ "whose",
1907
+ "why",
1908
+ "wide",
1909
+ "widely",
1910
+ "wife",
1911
+ "wild",
1912
+ "will",
1913
+ "willing",
1914
+ "win",
1915
+ "wind",
1916
+ "window",
1917
+ "wing",
1918
+ "winter",
1919
+ "wire",
1920
+ "wise",
1921
+ "wish",
1922
+ "with",
1923
+ "within",
1924
+ "without",
1925
+ "wolf",
1926
+ "women",
1927
+ "won",
1928
+ "wonder",
1929
+ "wonderful",
1930
+ "wood",
1931
+ "wooden",
1932
+ "wool",
1933
+ "word",
1934
+ "wore",
1935
+ "work",
1936
+ "worker",
1937
+ "world",
1938
+ "worried",
1939
+ "worry",
1940
+ "worse",
1941
+ "worth",
1942
+ "would",
1943
+ "wrapped",
1944
+ "write",
1945
+ "writer",
1946
+ "writing",
1947
+ "written",
1948
+ "wrong",
1949
+ "wrote",
1950
+ "yard",
1951
+ "year",
1952
+ "yellow",
1953
+ "yes",
1954
+ "yesterday",
1955
+ "yet",
1956
+ "you",
1957
+ "young",
1958
+ "younger",
1959
+ "your",
1960
+ "yourself",
1961
+ "youth",
1962
+ "zero",
1963
+ "zebra",
1964
+ "zipper",
1965
+ "zoo",
1966
+ "zulu",
1967
+ ];
1968
+ function randomWords(options) {
1969
+ const randInt = (less) => Math.floor(Math.random() * less);
1970
+ const generateRandomWord = () => wordList[randInt(wordList.length)];
1971
+ const generateWordWithMaxLength = () => {
1972
+ let rightSize = false;
1973
+ let wordUsed = "";
1974
+ while (!rightSize) {
1975
+ wordUsed = generateRandomWord();
1976
+ if (utils_1.is.number(options.maxLength)) {
1977
+ if (wordUsed.length <= options.maxLength) {
1978
+ rightSize = true;
1979
+ }
1980
+ }
1981
+ }
1982
+ return wordUsed;
1983
+ };
1984
+ const word = () => {
1985
+ if (utils_1.is.number(options.maxLength)) {
1986
+ return generateWordWithMaxLength();
1987
+ }
1988
+ else {
1989
+ return generateRandomWord();
1990
+ }
1991
+ };
1992
+ if (!options || typeof options === "number") {
1993
+ return generateRandomWord();
1994
+ }
1995
+ if (utils_1.is.boolean(options.exactly)) {
1996
+ options.min = 1;
1997
+ options.max = 1;
1998
+ }
1999
+ if (!utils_1.is.number(options.wordsPerString)) {
2000
+ options.wordsPerString = 1;
2001
+ }
2002
+ if (typeof options.formatter !== "function") {
2003
+ options.formatter = (word) => word;
2004
+ }
2005
+ if (!utils_1.is.string(options.separator)) {
2006
+ options.separator = " ";
2007
+ }
2008
+ let total = 0;
2009
+ if (utils_1.is.number(options.min) && utils_1.is.number(options.max)) {
2010
+ total = options.min + randInt(options.max + 1 - options.min);
2011
+ }
2012
+ let results = [];
2013
+ let token = "";
2014
+ let relativeIndex = 0;
2015
+ for (let i = 0; i < total * options.wordsPerString; i++) {
2016
+ if (relativeIndex === options.wordsPerString - 1) {
2017
+ token += options.formatter(word(), relativeIndex);
2018
+ }
2019
+ else {
2020
+ token +=
2021
+ options.formatter(word(), relativeIndex) + options.separator;
2022
+ }
2023
+ relativeIndex++;
2024
+ if ((i + 1) % options.wordsPerString === 0) {
2025
+ results.push(token);
2026
+ token = "";
2027
+ relativeIndex = 0;
2028
+ }
2029
+ }
2030
+ if (utils_1.is.string(options.join)) {
2031
+ results = results.join(options.join);
2032
+ }
2033
+ return results;
2034
+ }
2035
+ exports.randomWords = randomWords;