@xaroth8088/random-names
Version:
A random name generator for all kinds of things
19 lines (17 loc) • 2.89 kB
JavaScript
import { sample } from 'lodash-es';
export default function airplanes() {
let names;
const nm1 = ['Agile', 'Ancient', 'Angry', 'Arid', 'Able', 'Bad', 'Big', 'Bitter', 'Black', 'Blaring', 'Blind', 'Blue', 'Bold', 'Bronze', 'Brown', 'Buzzing', 'Calm', 'Classic', 'Cold', 'Cool', 'Crazy', 'Cruel', 'Dapper', 'Dark', 'Defiant', 'Diligent', 'Double', 'Eager', 'Evil', 'False', 'Fast', 'Fatal', 'Feline', 'Forsaken', 'Free', 'Frozen', 'Gentle', 'Gold', 'Golden', 'Grand', 'Grave', 'Gray', 'Greedy', 'Grim', 'Happy', 'Harsh', 'High', 'Hollow', 'Hot', 'Huge', 'Humming', 'Hungry', 'Idle', 'Infamous', 'Infinite', 'Ironclad', 'Jagged', 'Keen', 'Last', 'Lazy', 'Light', 'Little', 'Livid', 'Lone', 'Long', 'Loud', 'Low', 'Loyal', 'Mad', 'Major', 'Mellow', 'Nervous', 'Numb', 'Old', 'Pale', 'Parallel', 'Prime', 'Proud', 'Quick', 'Quiet', 'Ragged', 'Rapid', 'Rare', 'Reckless', 'Red', 'Regal', 'Rough', 'Round', 'Royal', 'Rude', 'Sharp', 'Shy', 'Silent', 'Silver', 'Slim', 'Small', 'Smooth', 'Subtle', 'Sweet', 'Swift', 'Tiny', 'Tough', 'Vain', 'Vengeful', 'Vicious', 'Vivid', 'Warped', 'White', 'Wicked', 'Wild', 'Wise'];
const nm2 = ['Albatross', 'Freak', 'Banshee', 'Voodoo', 'Arrow', 'Beast', 'Bee', 'Beetle', 'Bird', 'Blimp', 'Bolt', 'Bomb', 'Bomber', 'Boomerang', 'Boy', 'Bullet', 'Buzzard', 'Centurion', 'Chick', 'Cobra', 'Condor', 'Crane', 'Crow', 'Daddy', 'Dart', 'Darter', 'Diver', 'Dragon', 'Dragonfly', 'Ducchess', 'Duck', 'Duke', 'Eagle', 'Falcon', 'Fly', 'Ghost', 'Goose', 'Gryphon', 'Gull', 'Harrier', 'Hawk', 'Hornet', 'Ibis', 'Jet', 'King', 'Legionnaire', 'Lightning', 'Mamba', 'Mommy', 'Mosquito', 'Moth', 'Overcast', 'Owl', 'Pelican', 'Phantom', 'Queen', 'Raven', 'Robin', 'Rocket', 'Serpent', 'Shooter', 'Sparrow', 'Spirit', 'Stork', 'Thunder', 'Torpedo', 'Viper', 'Vulture', 'Widow', 'Woodpecker'];
const nm3 = ['Aerial', 'Agile', 'Air', 'Avian', 'Azure', 'Banshee', 'Brass', 'Bright', 'Chaos', 'Cloud', 'Dark', 'Demon', 'Devil', 'Dragon', 'Dream', 'Drift', 'Ebon', 'Feral', 'Flight', 'Flying', 'Free', 'Frost', 'Ghost', 'Grey', 'Heaven', 'Hell', 'Iron', 'Little', 'Mad', 'Monster', 'Night', 'Nimble', 'Phantom', 'Prime', 'Quick', 'Rapid', 'Rogue', 'Shadow', 'Sky', 'Star', 'Swift', 'Thunder', 'Twin', 'Wild', 'Wrath'];
const nm4 = ['beast', 'blast', 'blaze', 'blitz', 'bolt', 'bomb', 'brute', 'bullet', 'burst', 'charge', 'charm', 'comet', 'core', 'cry', 'eater', 'edge', 'fire', 'flare', 'flight', 'flow', 'flux', 'force', 'freak', 'fury', 'glider', 'hail', 'heat', 'lance', 'light', 'master', 'nova', 'pulse', 'punch', 'pyre', 'rage', 'raid', 'rise', 'roar', 'rush', 'scream', 'shade', 'spark', 'storm', 'strike', 'thunder', 'tooth', 'urge', 'ward', 'wing', 'wrath'];
const i = Math.floor(Math.random() * 10);
{
if (i < 5) {
names = sample(nm3) + sample(nm4);
} else {
names = `${sample(nm1)} ${sample(nm2)}`;
}
return names;
}
}