UNPKG

@xaroth8088/random-names

Version:

A random name generator for all kinds of things

315 lines (313 loc) 13.5 kB
import { sample } from 'lodash-es'; export default function roegadyns() { let names; const type = Math.random() > 0.5 ? 0 : 1; const nm1 = [ ['Abar', 'Lone'], ['Aerg', 'Ambitious'], ['Aerm', 'Poor'], ['Aerst', 'First'], ['Agat', 'Amber'], ['Ahld', 'Old'], ['Awyr', 'Absent'], ['Bara', 'Bare'], ['Bhald', 'Brave'], ['Blan', 'Dark'], ['Blau', 'Lead'], ['Blei', 'Pale'], ['Bloe', 'Blue'], ['Blyn', 'Blind'], ['Broen', 'Brown'], ['Caepf', 'Slate'], ['Caer', 'Sad'], ['Dani', 'Narrow'], ['Denn', 'Thin'], ['Doer', 'Dry'], ['Does', 'Two'], ['Eifa', 'Bitter'], ['Elil', 'Foreign'], ['Erna', 'Earnest'], ['Eyn', 'One'], ['Eyri', 'Wandering'], ['Faez', 'Fat'], ['Fhil', 'Yellow'], ['Fhruh', 'Early'], ['Flaz', 'Flat'], ['Flekk', 'Spotted'], ['Frae', 'Free'], ['Fryd', 'Peaceful'], ['Fyril', 'Lost'], ['Ganz', 'Perfect'], ['Ghim', 'Modest'], ['Glaz', 'Glass'], ['Greh', 'Calm'], ['Grein', 'Bronze'], ['Grym', 'Cruel'], ['Gryne', 'Green'], ['Guht', 'Good'], ['Guld', 'Gold'], ['Guol', 'Glorious'], ['Hael', 'Healthy'], ['Haer', 'Grand'], ['Hald', 'Kind'], ['Hart', 'Hard'], ['Hast', 'Hazel'], ['Helb', 'Half'], ['Herl', 'Elder'], ['Hezz', 'Hot'], ['Holas', 'Bald'], ['Holl', 'Hollow'], ['Holsk', 'Fast'], ['Horsk', 'Obedient'], ['Iyrn', 'Iron'], ['Jungh', 'Young'], ['Keim', 'Violet'], ['Kelt', 'Cold'], ['Keten', 'Chained'], ['Klyn', 'Small'], ['Kryd', 'Chalk'], ['Kryst', 'Crystal'], ['Kupf', 'Copper'], ['Kympf', 'Champion'], ['Lamm', 'Injured'], ['Loet', 'Loud'], ['Loetr', 'Pure'], ['Loez', 'Short'], ['Lydir', 'Leather'], ['Lyna', 'Linen'], ['Lyng', 'Long'], ['Maeti', 'Mighty'], ['Marm', 'Marble'], ['Myte', 'Middle'], ['Nedyr', 'Low'], ['Ofan', 'Clear'], ['Pfar', 'Walking'], ['Rhen', 'Clean'], ['Rheti', 'Lawful'], ['Rhit', 'Right'], ['Rhot', 'Red'], ['Roeh', 'Rough'], ['Rostn', 'Rusty'], ['Skaen', 'Beautiful'], ['Skarn', 'Horrible'], ['Skoen', 'Shining'], ['Slae', 'Dull'], ['Slaf', 'Sleeping'], ['Slett', 'Plain'], ['Solk', 'Blessed'], ['Sterr', 'Strong'], ['Swar', 'Black'], ['Swoz', 'Sweet'], ['Swyg', 'Silent'], ['Swyn', 'Round'], ['Swyr', 'Big'], ['Syhr', 'Fearless'], ['Sylb', 'Silver'], ['Syngi', 'Singing'], ['Syzn', 'Sitting'], ['Thor', 'Torn'], ['Thosin', 'Grey'], ['Thubyr', 'Magic'], ['Toeg', 'Secret'], ['Toff', 'Deep'], ['Trachyn', 'Dragon'], ['Tragg', 'Slow'], ['Trahg', 'Lazy'], ['Troe', 'Confused'], ['Tymb', 'Dumb'], ['Ubyl', 'Evil'], ['Unsyn', 'Innocent'], ['Unta', 'Other'], ['Usyn', 'Ashen'], ['Waem', 'Warm'], ['Wakk', 'Woken'], ['Wann', 'Empty'], ['Wast', 'Sharp'], ['Webb', 'Silk'], ['Whei', 'Soft'], ['Wilt', 'Wild'], ['Wuot', 'Berserk'], ['Wyss', 'Wise'], ['Wyzn', 'White'], ['Ybolg', 'Enraged'], ['Zirn', 'Furious'], ['Zwyn', 'Twin'], ]; const nm2 = [ ['abyl', 'Rage'], ['aent', 'Duck'], ['agynn', 'Beginning'], ['ahct', 'River'], ['ahl', 'Eel'], ['ahr', 'Eagle'], ['ahrm', 'Arm'], ['ahtyn', 'Judge'], ['ais', 'Ice'], ['alyr', 'Alder'], ['anka', 'Anchor'], ['ansa', 'Scythe'], ['aren', 'Harvest'], ['ask', 'Ash'], ['baen', 'Bone'], ['benn', 'Leg'], ['bera', 'Berry'], ['berk', 'Mountain'], ['bhar', 'Bear'], ['bhir', 'Ale'], ['bhrat', 'Meat'], ['blaet', 'Blood'], ['bluom', 'Flower'], ['blyss', 'Blossom'], ['born', 'Boar'], ['brem', 'Bramble'], ['bryn', 'Spring'], ['bylda', 'Maker'], ['byrm', 'Tree'], ['byrt', 'Axe'], ['ceig', 'Sail'], ['daeg', 'Soldier'], ['dhem', 'Dusk'], ['doen', 'Thunder'], ['dornn', 'Thorn'], ['draga', 'Carrier'], ['eidin', 'Oath'], ['elak', 'Elk'], ['ent', 'End'], ['eyha', 'Oak'], ['eyhil', 'Acorn'], ['falk', 'Falcon'], ['farr', 'Bull'], ['fedar', 'Feather'], ['fhis', 'Fish'], ['fohc', 'Fox'], ['folg', 'Bird'], ['fryd', 'Peace'], ['fryn', 'Friend'], ['fyr', 'Fire'], ['fyst', 'Fist'], ['geiss', 'Ghost'], ['glac', 'Bell'], ['gybal', 'Skull'], ['gybet', 'Prayer'], ['haemr', 'Hammer'], ['haerz', 'Heart'], ['hanth', 'Hand'], ['harr', 'Hair'], ['himal', 'Sky'], ['hort', 'Treasure'], ['hund', 'Dog'], ['hwab', 'Hawk'], ['hyrt', 'Autumn'], ['ingil', 'Angel'], ['itar', 'Knight'], ['jarr', 'Year'], ['khra', 'Crane'], ['kirz', 'Candle'], ['klyng', 'Brook'], ['krepf', 'Claw'], ['kympf', 'Champion'], ['lahz', 'Salmon'], ['laent', 'Land'], ['leita', 'Bringer'], ['liht', 'Light'], ['loef', 'Leaf'], ['lorh', 'Rabbit'], ['merl', 'Sea'], ['mhar', 'Horse'], ['mhas', 'Scar'], ['mhus', 'Mouse'], ['moen', 'Moon'], ['moth', 'Mind'], ['myna', 'Love'], ['myrgan', 'Morning'], ['nagl', 'Nail'], ['nahct', 'Night'], ['nebb', 'Fog'], ['nyst', 'Nest'], ['oeya', 'Eye'], ['opyl', 'Apple'], ['orn', 'Maple'], ['pfef', 'Pepper'], ['pfrew', 'Joy'], ['ramm', 'Ram'], ['ruht', 'Smoke'], ['rymm', 'Frost'], ['ryss', 'Giant'], ['saelb', 'Sage'], ['sald', 'Luck'], ['sath', 'Knife'], ['satz', 'Dance'], ['skaet', 'Shadow'], ['skapf', 'Sheep'], ['skylt', 'Shield'], ['smyd', 'Smith'], ['snoe', 'Snow'], ['some', 'Summer'], ['spaer', 'Sparrow'], ['spyr', 'Spear'], ['stral', 'Arrow'], ['stymm', 'Voice'], ['styr', 'Star'], ['styrm', 'Storm'], ['sunn', 'Sun'], ['swerd', 'Sword'], ['sygg', 'Victory'], ['syng', 'Song'], ['synt', 'Sand'], ['thuba', 'Mage'], ['thubyr', 'Magic'], ['thuv', 'Dove'], ['toum', 'Dream'], ['trach', 'Dragon'], ['troeg', 'Monster'], ['tu', 'Dew'], ['twyr', 'Dwarf'], ['ulm', 'Elm'], ['und', 'Wave'], ['uwil', 'Owl'], ['waek', 'Battle'], ['waen', 'Wind'], ['waht', 'Guard'], ['ward', 'Watch'], ['wilf', 'Wolf'], ['wint', 'Winter'], ['wolk', 'Cloud'], ['wurt', 'Herb'], ['wyrka', 'Worker'], ['wyrn', 'Snake'], ['wyta', 'Water'], ['zant', 'Tooth'], ['zedy', 'Cedar'], ['zirn', 'Fury'], ['zwyn', 'Twin'], ]; const nm3 = [ ['swys', 'Sister'], ['thota', 'Daughter'], ['wyda', 'Willow'], ['geim', 'Jewel'], ['wyb', 'Woman'], ['rael', 'Doe'], ['lona', 'Gatherer'], ['bryda', 'Bride'], ]; const nm4 = ['Active', 'Adept', 'Admired', 'Adored', 'Ages', 'Aggressive', 'Agile', 'Alert', 'Amazing', 'Amused', 'Amusing', 'Ancient', 'Angry', 'Anxious', 'Arctic', 'Austere', 'Aware', 'Awesome', 'Awkward', 'Bad', 'Bare', 'Basic', 'Beautiful', 'Beloved', 'Big', 'Bitter', 'Black', 'Blue', 'Bold', 'Brave', 'Bright', 'Brilliant', 'Broken', 'Bronze', 'Busy', 'Calm', 'Careful', 'Careless', 'Cheerful', 'Cleaan', 'Clever', 'Clumsy', 'Cold', 'Colossal', 'Complex', 'Composed', 'Crafty', 'Cruel', 'Damaged', 'Dangerous', 'Dapper', 'Daring', 'Dark', 'Defiant', 'Dependable', 'Devoted', 'Difficult', 'Diligent', 'Dirt', 'Distant', 'Dull', 'Eager', 'Earnest', 'Elderly', 'Enchanted', 'Enormous', 'Enraged', 'Exalted', 'Excellent', 'Excited', 'Exotic', 'Expert', 'Faithful', 'Famous', 'Fancy', 'Fast', 'Fatal', 'Fearless', 'Firm', 'Fixed', 'Flawed', 'Flawless', 'Forsaken', 'Free', 'Friendly', 'Frozen', 'Gentle', 'Giant', 'Gifted', 'Giving', 'Glamorous', 'Glorious', 'Golden', 'Graceful', 'Gracious', 'Grand', 'Grateful', 'Gray', 'Great', 'Grim', 'Harmless', 'Hasty', 'Heavy', 'Helpful', 'Hidden', 'Hollow', 'Honest', 'Honorable', 'Humble', 'Hungry', 'Joyful', 'Keen', 'Kind', 'Large', 'Lazy', 'Light', 'Little', 'Lone', 'Loud', 'Loyal', 'Lucky', 'Majestic', 'Major', 'Massive', 'Mellow', 'Mild', 'Minor', 'Modest', 'Nervous', 'Nifty', 'Nimble', 'Obedient', 'Odd', 'Old', 'Orange', 'Ordinary', 'Ornate', 'Pale', 'Perfect', 'Plain', 'Pleasant', 'Powerful', 'Prime', 'Pristine', 'Proud', 'Pure', 'Quick', 'Quiet', 'Rapid', 'Rare', 'Reckless', 'Red', 'Regular', 'Rough', 'Scary', 'Second', 'Secret', 'Serene', 'Serious', 'Sharp', 'Shiny', 'Shy', 'Silent', 'Silver', 'Simple', 'Skinny', 'Sleepy', 'Slow', 'Small', 'Smart', 'Sneaky', 'Spotted', 'Stable', 'Stark', 'Strange', 'Strong', 'Sturdy', 'Subtle', 'Surprised', 'Swift', 'Tall', 'Tame', 'Thin', 'Tough', 'Useful', 'Vibrant', 'Vicious', 'Warm', 'Weak', 'Weird', 'White', 'Wide', 'Wild', 'Wise', 'Witty', 'Worthy', 'Yellow', 'Young', 'Youthful']; const nm5 = ['Air', 'Ant', 'Autumn', 'Badger', 'Bat', 'Horizon', 'Bear', 'Beetle', 'Bird', 'Bison', 'Blade', 'Blizzard', 'Boar', 'Bog', 'Boulder', 'Brood', 'Brook', 'Bush', 'Buzzard', 'Cave', 'Cavern', 'Claw', 'Cliff', 'Cloud', 'Cougar', 'Coyote', 'Cricket', 'Crow', 'Deer', 'Desert', 'Dingo', 'Dune', 'Eagle', 'Earth', 'Elk', 'Emu', 'Falcon', 'Field', 'Fir', 'Flower', 'Forest', 'Fox', 'Frog', 'Fungus', 'Gale', 'Glacier', 'Grass', 'Hare', 'Hawk', 'Hedgehog', 'Hill', 'Hog', 'Hollow', 'Ice', 'Iron', 'Island', 'Isle', 'Jasper', 'Juniper', 'Kelp', 'Lake', 'Lava', 'Lichen', 'Lion', 'Magma', 'Mane', 'Mantle', 'Maple', 'Moon', 'Moose', 'Mountain', 'Mouse', 'Mushroom', 'Nest', 'Nettle', 'Oak', 'Ocen', 'Ore', 'Owl', 'Park', 'Peak', 'Pine', 'Pinnacle', 'Plant', 'Raccoon', 'Rain', 'Raven', 'River', 'Roach', 'Rock', 'Salmon', 'Sand', 'Sea', 'Serpent', 'Shrub', 'Snake', 'Snow', 'Stag', 'Stone', 'Storm', 'Summit', 'Sun', 'Talon', 'Thunder', 'Tide', 'Tiger', 'Toad', 'Torrent', 'Tortoise', 'Track', 'Tree', 'Turtle', 'Typhoon', 'Valley', 'Wasp', 'Water', 'Waterfall', 'Wave', 'Weasel', 'Willow', 'Wind', 'Wolf', 'Wombat', 'Wood', 'Yew']; const nm6 = ['Active', 'Adept', 'Admired', 'Adorable', 'Adored', 'Aged', 'Agile', 'Amused', 'Amusing', 'Angelic', 'Aromatic', 'Attractive', 'Average', 'Awkward', 'Beautiful', 'Beloved', 'Black', 'Blissful', 'Blue', 'Blushing', 'Bold', 'Bouncy', 'Brave', 'Bright', 'Brilliant', 'Bronze', 'Brown', 'Bubbly', 'Carefree', 'Careful', 'Careless', 'Caring', 'Charming', 'Cheerful', 'Cheery', 'Clever', 'Cloudy', 'Clumsy', 'Creative', 'Cuddly', 'Curly', 'Cute', 'Darling', 'Delightful', 'Dependable', 'Devoted', 'Eager', 'Elderly', 'Elegant', 'Emotional', 'Enchanted', 'Energetic', 'Euphoric', 'Excited', 'Fair', 'Faithful', 'Fancy', 'Fearless', 'Feline', 'Flawed', 'Flawless', 'Flustered', 'Frail', 'Frozen', 'Funny', 'Fuzzy', 'Generous', 'Gentle', 'Gifted', 'Giving', 'Glittering', 'Golden', 'Gorgeous', 'Graceful', 'Gracious', 'Gray', 'Green', 'Grim', 'Grumpy', 'Happy', 'Harmless', 'Heavenly', 'Helpful', 'Helpless', 'Hidden', 'Hollow', 'Honest', 'Honored', 'Hopeful', 'Humble', 'Idle', 'Innocent', 'Jealous', 'Jolly', 'Joyful', 'Joyous', 'Keen', 'Kind', 'Lavish', 'Lazy', 'Lean', 'Light', 'Likable', 'Little', 'Lively', 'Lone', 'Lonely', 'Lost', 'Loud', 'Lovable', 'Lovely', 'Loving', 'Mad', 'Majestic', 'Mellow', 'Merry', 'Mild', 'Minor', 'Misty', 'Motherly', 'Mysterious', 'Naive', 'Naughty', 'Nervous', 'Nimble', 'Obedient', 'Odd', 'Old', 'Optimistic', 'Orange', 'Ordinary', 'Pale', 'Peaceful', 'Perfect', 'Pink', 'Plain', 'Playful', 'Pleasant', 'Pleased', 'Pleasing', 'Powerful', 'Precious', 'Pretty', 'Pristine', 'Proud', 'Pure', 'Purple', 'Quick', 'Quiet', 'Quirky', 'Rare', 'Reckless', 'Scared', 'Scary', 'Secret', 'Serene', 'Serious', 'Short', 'Shy', 'Silent', 'Silly', 'Silver', 'Simple', 'Skinny', 'Sleepy', 'Slim', 'Slow', 'Small', 'Smart', 'Sneaky', 'Soft', 'Strange', 'Striped', 'Surprised', 'Sweet', 'Swift', 'Tall', 'Terrific', 'Thick', 'Thin', 'Tidy', 'Tiny', 'Tough', 'Trusting', 'Trusty', 'Twin', 'Warm', 'Watchful', 'Weak', 'Weird', 'Whimsical', 'White', 'Wicked', 'Wild', 'Wise', 'Worried', 'Yellow', 'Young', 'Youthful']; const nm7 = ['Air', 'Allium', 'Alyssum', 'Amarath', 'Amazon', 'Anemone', 'Apple', 'Aura', 'Aurora', 'Autumn', 'Bee', 'Bell', 'Berry', 'Bird', 'Bloom', 'Blossom', 'Bunny', 'Bush', 'Butterfly', 'Cherry', 'Chive', 'Clematis', 'Cloud', 'Clover', 'Cosmos', 'Crocus', 'Daffodil', 'Daisy', 'Dandelion', 'Deer', 'Dew', 'Dill', 'Dove', 'Dream', 'Droplet', 'Earth', 'Eclipse', 'Feather', 'Flower', 'Fog', 'Forest', 'Frost', 'Fruit', 'Fuchsia', 'Fur', 'Gilly', 'Ginger', 'Grain', 'Grass', 'Heliconia', 'Hibiscus', 'Holly', 'Horizon', 'Hyacinth', 'Ice', 'Iris', 'Juniper', 'Lavender', 'Leaf', 'Lilac', 'Lily', 'Locust', 'Lotus', 'Magnolia', 'Mantle', 'Maple', 'Marigold', 'Mist', 'Moon', 'Moss', 'Mouse', 'Mushroom', 'Myrtle', 'Narcissus', 'Oleander', 'Orchid', 'Pad', 'Pea', 'Peach', 'Peony', 'Petal', 'Petunia', 'Plume', 'Poinsetta', 'Poppy', 'Rabbit', 'Rain', 'Robin', 'Root', 'Rose', 'Safflower', 'Sage', 'Sapling', 'Sheep', 'Snow', 'Snowflake', 'Sparrow', 'Spring', 'Sprout', 'Star', 'Summer', 'Sun', 'Sunflower', 'Tulip', 'Vapor', 'Vine', 'Willow', 'Winter']; const i = Math.floor(Math.random() * 10); { if (type === 1) { if (i < 5) { names = `${sample(nm1)[0] + sample(nm3)[0]} (${sample(nm1)[1]} ${sample(nm3)[1]})`; } else { names = `${sample(nm6)} ${sample(nm7)}`; } } else if (i < 5) { names = `${sample(nm1)[0] + sample(nm2)[0]} (${sample(nm1)[1]} ${sample(nm2)[1]})`; } else { names = `${sample(nm4)} ${sample(nm5)}`; } return names; } }