_random_name.cjs 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.randomName = randomName;
  4. const adjectives = [
  5. "abandoned",
  6. "aching",
  7. "advanced",
  8. "ample",
  9. "artistic",
  10. "back",
  11. "best",
  12. "bold",
  13. "brief",
  14. "clear",
  15. "cold",
  16. "complicated",
  17. "cooked",
  18. "crazy",
  19. "crushing",
  20. "damp",
  21. "dear",
  22. "definite",
  23. "dependable",
  24. "diligent",
  25. "drab",
  26. "earnest",
  27. "elderly",
  28. "enchanted",
  29. "essential",
  30. "excellent",
  31. "extraneous",
  32. "fixed",
  33. "flowery",
  34. "formal",
  35. "fresh",
  36. "frosty",
  37. "giving",
  38. "glossy",
  39. "healthy",
  40. "helpful",
  41. "impressionable",
  42. "kind",
  43. "large",
  44. "left",
  45. "long",
  46. "loyal",
  47. "mealy",
  48. "memorable",
  49. "monthly",
  50. "new",
  51. "notable",
  52. "only",
  53. "ordinary",
  54. "passionate",
  55. "perfect",
  56. "pertinent",
  57. "proper",
  58. "puzzled",
  59. "reflecting",
  60. "respectful",
  61. "roasted",
  62. "scholarly",
  63. "shiny",
  64. "slight",
  65. "sparkling",
  66. "spotless",
  67. "stupendous",
  68. "sunny",
  69. "tart",
  70. "terrific",
  71. "timely",
  72. "unique",
  73. "upbeat",
  74. "vacant",
  75. "virtual",
  76. "warm",
  77. "weary",
  78. "whispered",
  79. "worthwhile",
  80. "yellow",
  81. ];
  82. const nouns = [
  83. "account",
  84. "acknowledgment",
  85. "address",
  86. "advertising",
  87. "airplane",
  88. "animal",
  89. "appointment",
  90. "arrival",
  91. "artist",
  92. "attachment",
  93. "attitude",
  94. "availability",
  95. "backpack",
  96. "bag",
  97. "balance",
  98. "bass",
  99. "bean",
  100. "beauty",
  101. "bibliography",
  102. "bill",
  103. "bite",
  104. "blossom",
  105. "boat",
  106. "book",
  107. "box",
  108. "boy",
  109. "bread",
  110. "bridge",
  111. "broccoli",
  112. "building",
  113. "butter",
  114. "button",
  115. "cabbage",
  116. "cake",
  117. "camera",
  118. "camp",
  119. "candle",
  120. "candy",
  121. "canvas",
  122. "car",
  123. "card",
  124. "carrot",
  125. "cart",
  126. "case",
  127. "cat",
  128. "chain",
  129. "chair",
  130. "chalk",
  131. "chance",
  132. "change",
  133. "channel",
  134. "character",
  135. "charge",
  136. "charm",
  137. "chart",
  138. "check",
  139. "cheek",
  140. "cheese",
  141. "chef",
  142. "cherry",
  143. "chicken",
  144. "child",
  145. "church",
  146. "circle",
  147. "class",
  148. "clay",
  149. "click",
  150. "clock",
  151. "cloth",
  152. "cloud",
  153. "clove",
  154. "club",
  155. "coach",
  156. "coal",
  157. "coast",
  158. "coat",
  159. "cod",
  160. "coffee",
  161. "collar",
  162. "color",
  163. "comb",
  164. "comfort",
  165. "comic",
  166. "committee",
  167. "community",
  168. "company",
  169. "comparison",
  170. "competition",
  171. "condition",
  172. "connection",
  173. "control",
  174. "cook",
  175. "copper",
  176. "copy",
  177. "corn",
  178. "cough",
  179. "country",
  180. "cover",
  181. "crate",
  182. "crayon",
  183. "cream",
  184. "creator",
  185. "crew",
  186. "crown",
  187. "current",
  188. "curtain",
  189. "curve",
  190. "cushion",
  191. "dad",
  192. "daughter",
  193. "day",
  194. "death",
  195. "debt",
  196. "decision",
  197. "deer",
  198. "degree",
  199. "design",
  200. "desire",
  201. "desk",
  202. "detail",
  203. "development",
  204. "digestion",
  205. "dime",
  206. "dinner",
  207. "direction",
  208. "dirt",
  209. "discovery",
  210. "discussion",
  211. "disease",
  212. "disgust",
  213. "distance",
  214. "distribution",
  215. "division",
  216. "doctor",
  217. "dog",
  218. "door",
  219. "drain",
  220. "drawer",
  221. "dress",
  222. "drink",
  223. "driving",
  224. "dust",
  225. "ear",
  226. "earth",
  227. "edge",
  228. "education",
  229. "effect",
  230. "egg",
  231. "end",
  232. "energy",
  233. "engine",
  234. "error",
  235. "event",
  236. "example",
  237. "exchange",
  238. "existence",
  239. "expansion",
  240. "experience",
  241. "expert",
  242. "eye",
  243. "face",
  244. "fact",
  245. "fall",
  246. "family",
  247. "farm",
  248. "father",
  249. "fear",
  250. "feeling",
  251. "field",
  252. "finger",
  253. "fire",
  254. "fish",
  255. "flag",
  256. "flight",
  257. "floor",
  258. "flower",
  259. "fold",
  260. "food",
  261. "football",
  262. "force",
  263. "form",
  264. "frame",
  265. "friend",
  266. "frog",
  267. "fruit",
  268. "fuel",
  269. "furniture",
  270. "game",
  271. "garden",
  272. "gate",
  273. "girl",
  274. "glass",
  275. "glove",
  276. "goat",
  277. "gold",
  278. "government",
  279. "grade",
  280. "grain",
  281. "grass",
  282. "green",
  283. "grip",
  284. "group",
  285. "growth",
  286. "guide",
  287. "guitar",
  288. "hair",
  289. "hall",
  290. "hand",
  291. "harbor",
  292. "harmony",
  293. "hat",
  294. "head",
  295. "health",
  296. "heart",
  297. "heat",
  298. "hill",
  299. "history",
  300. "hobbies",
  301. "hole",
  302. "hope",
  303. "horn",
  304. "horse",
  305. "hospital",
  306. "hour",
  307. "house",
  308. "humor",
  309. "idea",
  310. "impulse",
  311. "income",
  312. "increase",
  313. "industry",
  314. "ink",
  315. "insect",
  316. "instrument",
  317. "insurance",
  318. "interest",
  319. "invention",
  320. "iron",
  321. "island",
  322. "jelly",
  323. "jet",
  324. "jewel",
  325. "join",
  326. "judge",
  327. "juice",
  328. "jump",
  329. "kettle",
  330. "key",
  331. "kick",
  332. "kiss",
  333. "kitten",
  334. "knee",
  335. "knife",
  336. "knowledge",
  337. "land",
  338. "language",
  339. "laugh",
  340. "law",
  341. "lead",
  342. "learning",
  343. "leather",
  344. "leg",
  345. "lettuce",
  346. "level",
  347. "library",
  348. "lift",
  349. "light",
  350. "limit",
  351. "line",
  352. "linen",
  353. "lip",
  354. "liquid",
  355. "list",
  356. "look",
  357. "loss",
  358. "love",
  359. "lunch",
  360. "machine",
  361. "man",
  362. "manager",
  363. "map",
  364. "marble",
  365. "mark",
  366. "market",
  367. "mass",
  368. "match",
  369. "meal",
  370. "measure",
  371. "meat",
  372. "meeting",
  373. "memory",
  374. "metal",
  375. "middle",
  376. "milk",
  377. "mind",
  378. "mine",
  379. "minute",
  380. "mist",
  381. "mitten",
  382. "mom",
  383. "money",
  384. "monkey",
  385. "month",
  386. "moon",
  387. "morning",
  388. "mother",
  389. "motion",
  390. "mountain",
  391. "mouth",
  392. "muscle",
  393. "music",
  394. "nail",
  395. "name",
  396. "nation",
  397. "neck",
  398. "need",
  399. "news",
  400. "night",
  401. "noise",
  402. "note",
  403. "number",
  404. "nut",
  405. "observation",
  406. "offer",
  407. "oil",
  408. "operation",
  409. "opinion",
  410. "orange",
  411. "order",
  412. "organization",
  413. "ornament",
  414. "oven",
  415. "page",
  416. "pail",
  417. "pain",
  418. "paint",
  419. "pan",
  420. "pancake",
  421. "paper",
  422. "parcel",
  423. "parent",
  424. "part",
  425. "passenger",
  426. "paste",
  427. "payment",
  428. "peace",
  429. "pear",
  430. "pen",
  431. "pencil",
  432. "person",
  433. "pest",
  434. "pet",
  435. "picture",
  436. "pie",
  437. "pin",
  438. "pipe",
  439. "pizza",
  440. "place",
  441. "plane",
  442. "plant",
  443. "plastic",
  444. "plate",
  445. "play",
  446. "pleasure",
  447. "plot",
  448. "plough",
  449. "pocket",
  450. "point",
  451. "poison",
  452. "police",
  453. "pollution",
  454. "popcorn",
  455. "porter",
  456. "position",
  457. "pot",
  458. "potato",
  459. "powder",
  460. "power",
  461. "price",
  462. "print",
  463. "process",
  464. "produce",
  465. "product",
  466. "profit",
  467. "property",
  468. "prose",
  469. "protest",
  470. "pull",
  471. "pump",
  472. "punishment",
  473. "purpose",
  474. "push",
  475. "quarter",
  476. "question",
  477. "quiet",
  478. "quill",
  479. "quilt",
  480. "quince",
  481. "rabbit",
  482. "rail",
  483. "rain",
  484. "range",
  485. "rat",
  486. "rate",
  487. "ray",
  488. "reaction",
  489. "reading",
  490. "reason",
  491. "record",
  492. "regret",
  493. "relation",
  494. "religion",
  495. "representative",
  496. "request",
  497. "respect",
  498. "rest",
  499. "reward",
  500. "rhythm",
  501. "rice",
  502. "river",
  503. "road",
  504. "roll",
  505. "room",
  506. "root",
  507. "rose",
  508. "route",
  509. "rub",
  510. "rule",
  511. "run",
  512. "sack",
  513. "sail",
  514. "salt",
  515. "sand",
  516. "scale",
  517. "scarecrow",
  518. "scarf",
  519. "scene",
  520. "scent",
  521. "school",
  522. "science",
  523. "scissors",
  524. "screw",
  525. "sea",
  526. "seat",
  527. "secretary",
  528. "seed",
  529. "selection",
  530. "self",
  531. "sense",
  532. "servant",
  533. "shade",
  534. "shake",
  535. "shame",
  536. "shape",
  537. "sheep",
  538. "sheet",
  539. "shelf",
  540. "ship",
  541. "shirt",
  542. "shock",
  543. "shoe",
  544. "shop",
  545. "show",
  546. "side",
  547. "sign",
  548. "silk",
  549. "sink",
  550. "sister",
  551. "size",
  552. "sky",
  553. "sleep",
  554. "smash",
  555. "smell",
  556. "smile",
  557. "smoke",
  558. "snail",
  559. "snake",
  560. "sneeze",
  561. "snow",
  562. "soap",
  563. "society",
  564. "sock",
  565. "soda",
  566. "sofa",
  567. "son",
  568. "song",
  569. "sort",
  570. "sound",
  571. "soup",
  572. "space",
  573. "spark",
  574. "speed",
  575. "sponge",
  576. "spoon",
  577. "spray",
  578. "spring",
  579. "spy",
  580. "square",
  581. "stamp",
  582. "star",
  583. "start",
  584. "statement",
  585. "station",
  586. "steam",
  587. "steel",
  588. "stem",
  589. "step",
  590. "stew",
  591. "stick",
  592. "stitch",
  593. "stocking",
  594. "stomach",
  595. "stone",
  596. "stop",
  597. "store",
  598. "story",
  599. "stove",
  600. "stranger",
  601. "straw",
  602. "stream",
  603. "street",
  604. "stretch",
  605. "string",
  606. "structure",
  607. "substance",
  608. "sugar",
  609. "suggestion",
  610. "suit",
  611. "summer",
  612. "sun",
  613. "support",
  614. "surprise",
  615. "sweater",
  616. "swim",
  617. "system",
  618. "table",
  619. "tail",
  620. "talk",
  621. "tank",
  622. "taste",
  623. "tax",
  624. "tea",
  625. "teaching",
  626. "team",
  627. "tendency",
  628. "test",
  629. "texture",
  630. "theory",
  631. "thing",
  632. "thought",
  633. "thread",
  634. "throat",
  635. "thumb",
  636. "thunder",
  637. "ticket",
  638. "time",
  639. "tin",
  640. "title",
  641. "toad",
  642. "toe",
  643. "tooth",
  644. "toothpaste",
  645. "touch",
  646. "town",
  647. "toy",
  648. "trade",
  649. "train",
  650. "transport",
  651. "tray",
  652. "treatment",
  653. "tree",
  654. "trick",
  655. "trip",
  656. "trouble",
  657. "trousers",
  658. "truck",
  659. "tub",
  660. "turkey",
  661. "turn",
  662. "twist",
  663. "umbrella",
  664. "uncle",
  665. "underwear",
  666. "unit",
  667. "use",
  668. "vacation",
  669. "value",
  670. "van",
  671. "vase",
  672. "vegetable",
  673. "veil",
  674. "vein",
  675. "verse",
  676. "vessel",
  677. "view",
  678. "visitor",
  679. "voice",
  680. "volcano",
  681. "walk",
  682. "wall",
  683. "war",
  684. "wash",
  685. "waste",
  686. "watch",
  687. "water",
  688. "wave",
  689. "wax",
  690. "way",
  691. "wealth",
  692. "weather",
  693. "week",
  694. "weight",
  695. "wheel",
  696. "whip",
  697. "whistle",
  698. "window",
  699. "wine",
  700. "wing",
  701. "winter",
  702. "wire",
  703. "wish",
  704. "woman",
  705. "wood",
  706. "wool",
  707. "word",
  708. "work",
  709. "worm",
  710. "wound",
  711. "wrist",
  712. "writer",
  713. "yard",
  714. "yoke",
  715. "zebra",
  716. "zinc",
  717. "zipper",
  718. "zone",
  719. ];
  720. /**
  721. * Generate a random name.
  722. * @returns {string} A random name.
  723. */
  724. function randomName() {
  725. const adjective = adjectives[Math.floor(Math.random() * adjectives.length)];
  726. const noun = nouns[Math.floor(Math.random() * nouns.length)];
  727. const number = Math.floor(Math.random() * 100);
  728. return `${adjective}-${noun}-${number}`;
  729. }