@xaroth8088/random-names
Version:
A random name generator for all kinds of things
18 lines (16 loc) • 6.45 kB
JavaScript
import { sample } from 'lodash-es';
export default function mutantPlants() {
let names;
const nm1 = ['Aberration', 'Abnormal', 'Agony', 'Anomaly', 'Ashen', 'Bane', 'Belching', 'Black', 'Bleeding', 'Blight', 'Blister', 'Blistering', 'Bloated', 'Bloody', 'Bone', 'Bother', 'Bug', 'Buzzing', 'Cadaver', 'Cannibalistic', 'Carcass', 'Carrion', 'Corpse', 'Creeping', 'Creepy', 'Crypt', 'Curse', 'Cyst', 'Death', 'Demise', 'Doom', 'Ebon', 'Eerie', 'Enigma', 'Evil', 'Fade', 'Fallen', 'Fatal', 'Flaming', 'Flesh Eating', 'Frenzy', 'Fury', 'Germ', 'Ghastly', 'Ghost', 'Glitter', 'Gloom', 'Glow', 'Glowing', 'Grave', 'Grim', 'Infected', 'Infection', 'Killing', 'Lean', 'Lifeless', 'Light', 'Luminus', 'Lustrous', 'Malign', 'Malignant', 'Miasma', 'Mildew', 'Mortal', 'Mortified', 'Necrosis', 'Necrotic', 'Nether', 'Noxious', 'Oblivion', 'Obsidian', 'Odd', 'Pallid', 'Pernicious', 'Pest', 'Pestilential', 'Petrified', 'Phantom', 'Plague', 'Purgatory', 'Reaper', 'Repose', 'Rot', 'Rotting', 'Savage', 'Scalding', 'Scourge', 'Screeching', 'Septic', 'Shadow', 'Singing', 'Sinister', 'Skeletal', 'Skeleton', 'Sleeping', 'Sore', 'Spirit', 'Spite', 'Swelling', 'Swollen', 'Taint', 'Tainted', 'Thorny', 'Tomb', 'Torment', 'Toxic', 'Toxin', 'Tumid', 'Venin', 'Void', 'Wane', 'Weeping', 'Wicked', 'Wither', 'Woe'];
const nm2 = ['Aconite', 'Ambrosia', 'Annie', 'Azolla', 'Bamboo', 'Bean', 'Bearberry', 'Belladonna', 'Berry', 'Betty', 'Bindweed', 'Bite', 'Bittercress', 'Bittersweet', 'Bitterweed', 'Blade', 'Bloom', 'Bower', 'Buxus', 'Boxwood', 'Brier', 'Brittlebush', 'Broadleaf', 'Bush', 'Buttons', 'Cabbage', 'Cane', 'Cap', 'Clove', 'Clover', 'Collard', 'Colwort', 'Coneflower', 'Cornel', 'Cotton', 'Cress', 'Daisy', 'Deadnettle', 'Dewberry', 'Dindle', 'Dogbane', 'Duscle', 'Fairymoss', 'Felonwood', 'Felonwort', 'Fennel', 'Fern', 'Feverfew', 'Fieldcress', 'Fig', 'Flax', 'Flower', 'Fluxroot', 'Fumewort', 'Gallberry', 'Garget', 'Garlic', 'Geranium', 'Gilliflower', 'Ginger', 'Goldenglow', 'Grapevine', 'Grass', 'Groundberry', 'Gutweed', 'Hair', 'Haldi', 'Harlequin', 'Hedge', 'Hellebore', 'Hemp', 'Hibiscus', 'Hogweed', 'Holly', 'Hops', 'Horse Nettle', 'Houseleek', 'Huckleberry', 'Ink Plant', 'Inkberry', 'Itchweed', 'Ivy', 'Jack-in-the-Bush', 'Joy', 'Juniper', 'Laceflower', 'Laurel', 'Lavender', 'Lilac', 'Lily', 'Lotus', 'Milfoil', 'Milkweed', 'Mint', 'Morel', 'Moss', 'Mulberry', 'Needle', 'Nettle', 'Nightshade', 'Parsley', 'Parsnip', 'Pea', 'Pepper', 'Pine', 'Plant', 'Poinsetta', 'Poisonberry', 'Poisonflower', 'Poke', 'Pokeroot', 'Pokeweed', 'Polkweed', 'Poppy', 'Pudina', 'Ragweed', 'Rantipole', 'Raspberry', 'Ribwort', 'Roadweed', 'Rock Fern', 'Root', 'Rose', 'Rosemary', 'Rye', 'Saffron', 'Sage', 'Sanguinary', 'Shadblow', 'Shadbush', 'Silkweed', 'Skunkweed', 'Snakeberry', 'Snowdrop', 'Sorrel', 'Spoolwood', 'Stammerwort', 'Stickweed', 'Sugarcane', 'Sugarplum', 'Sunflower', 'Swallow-wort', 'Swinies', 'Tansy', 'Tassel', 'Tea', 'Thimbleberry', 'Thimbleweed', 'Thistle', 'Thorn', 'Thousand-leaf', 'Thyme', 'Tongue', 'Toothwort', 'Touch-me-not', 'Tulip', 'Tulsi', 'Vine', 'Violet', 'Waybread', 'Weed', 'Wheat', 'Wild Rose', 'Windroot', 'Wineberry', 'Winterberry', 'Wintercress', 'Woodbine', 'Wormwood', 'Woundwort'];
const nm3 = ['Aconaris', 'Aconight', 'Ambrose', 'Ambrosis', 'Azollae', 'Azollite', 'Bambone', 'Bamboon', 'Bane', 'Banedonna', 'Belladoris', 'Bindroot', 'Bite', 'Bitercress', 'Biterweed', 'Bittercrescent', 'Blade', 'Blight', 'Blightcress', 'Blightleaf', 'Blightshade', 'Blightweed', 'Blindweed', 'Bloatweed', 'Bogbane', 'Brainleaf', 'Briaris', 'Brierre', 'Brower', 'Broxwood', 'Bugweed', 'Burry', 'Buxiath', 'Buxuris', 'Cabbane', 'Carcasnip', 'Cloneflower', 'Clothon', 'Clovaris', 'Clovart', 'Cloveris', 'Clovis', 'Collarth', 'Collord', 'Colwart', 'Colwrath', 'Cornellis', 'Crabbage', 'Cressane', 'Crest', 'Croneflower', 'Cronell', 'Crotton', 'Daisis', 'Daisith', 'Dawnberry', 'Daybread', 'Deathnettle', 'Dindellis', 'Dindwell', 'Doom', 'Doomberry', 'Doomnettle', 'Duscellied', 'Duscellin', 'Faceflower', 'Fatalmoss', 'Fatalwood', 'Fatalwort', 'Fayewood', 'Fennelite', 'Feremonewort', 'Fernac', 'Fernellite', 'Fernid', 'Fever', 'Feverfued', 'Fieldcrest', 'Fieltycress', 'Flaxis', 'Flaxith', 'Fluroot', 'Fogbane', 'Fumewart', 'Fumewrath', 'Galberry', 'Gargentis', 'Gargettic', 'Garlicious', 'Garlick', 'Geranis', 'Geranius', 'Germwood', 'Ghost Nettle', 'Ghostglow', 'Ghostvine', 'Ghostweed', 'Gillisflower', 'Gingerm', 'Gloom', 'Gloomberry', 'Gloomglow', 'Grapevenin', 'Graspberry', 'Grastly', 'Graveberry', 'Grimger', 'Gullberry', 'Gutsweed', 'Hair', 'Hairymoss', 'Haldeath', 'Haldie', 'Hammerwort', 'Harlecrypt', 'Harlequinis', 'Hellbore', 'Helleboralis', 'Hempain', 'Hempest', 'Hibiscorpse', 'Hibiscurse', 'Hogberry', 'Hollight', 'Hollupus', 'Huckleberreaper', 'Itchweeds', 'Ivis', 'Ivoid', 'Juniperrish', 'Junipest', 'Kilfoil', 'Killingflower', 'Laurellar', 'Laurellis', 'Lavendeath', 'Lavendemise', 'Lilace', 'Lilacurse', 'Lilife', 'Lilight', 'Lotumid', 'Lotusore', 'Louseleek', 'Maceflower', 'Milfade', 'Mintaint', 'Morellis', 'Morose', 'Mortel', 'Mossore', 'Mouseleek', 'Needellis', 'Nettellis', 'Nightshadow', 'Paine', 'Painsetta', 'Parsleek', 'Parsleep', 'Parsnipe', 'Pepperish', 'Pepperrin', 'Pettle', 'Pike', 'Pikeroot', 'Pineedle', 'Poinseptic', 'Poisonberry', 'Poisonflower', 'Poppallid', 'Poppest', 'Pudinaris', 'Pudinight', 'Rantiboil', 'Rantipolaris', 'Ribwart', 'Roadweed', 'Rosaris', 'Rosemarot', 'Rosemortis', 'Saffrenzy', 'Saffrot', 'Sagerm', 'Sagis', 'Sagweed', 'Sanguinight', 'Sanguinis', 'Scratchweed', 'Shadeblow', 'Shadebush', 'Shadowblow', 'Shadowbush', 'Shallowwart', 'Sickweed', 'Sickwort', 'Slickweed', 'Smokeroot', 'Snowdoom', 'Snowdust', 'Sorellis', 'Sorrellis', 'Stalewood', 'Stammerwart', 'Stink Plant', 'Stinkberry', 'Stoolwood', 'Sugar Bane', 'Sugarcanis', 'Sugarplumid', 'Sugatory', 'Swallowwart', 'Swinight', 'Tansight', 'Tansore', 'Tassavage', 'Tassellis', 'Thistellith', 'Thorne', 'Thornether', 'Thymeout', 'Thymeup', 'Thymiamsa', 'Tongloom', 'Tongrave', 'Toothwart', 'Touch-me-never', 'Tulipse', 'Tulsick', 'Tulsign', 'Tulupis', 'Venom Cap', 'Vineberry', 'Vinether', 'Violent', 'Violettis', 'Virusroot', 'Winterbane', 'Winterberrot', 'Winterbone', 'Wintercrest', 'Witherbush', 'Woodbane', 'Woodbone', 'Woundwart'];
const i = Math.floor(Math.random() * 10);
{
if (i < 5) {
names = `${sample(nm1)} ${sample(nm2)}`;
} else {
names = sample(nm3);
}
return names;
}
}