@xaroth8088/random-names
Version:
A random name generator for all kinds of things
1,001 lines (999 loc) • 12.3 kB
JavaScript
import { sample } from 'lodash-es';
export default function dinosaurs() {
let names;
const nm1 = [
[
['Nigri'],
['Black'],
],
[
['Cyano'],
['Blue'],
],
[
['Chloro'],
['Green'],
],
[
['Leuco'],
['White'],
],
[
['Xantho'],
['Yellow'],
],
[
['Acro'],
['High'],
],
[
['Alectro'],
['Eagle'],
],
[
['Amygdalo'],
['Almond'],
],
[
['Ankylo'],
['Stiff'],
],
[
['Apato'],
['Deceptive'],
],
[
['Archaeo'],
['Ancient'],
],
[
['Avi'],
['Bird'],
],
[
['Baga'],
['Small'],
],
[
['Baro'],
['Heavy'],
],
[
['Bellu'],
['Fine'],
],
[
['Brachy'],
['Short'],
],
[
['Callio'],
['Beautiful'],
],
[
['Campto'],
['Bent'],
],
[
['Centro'],
['Sharp Pointed'],
],
[
['Cerato'],
['Horned'],
],
[
['Coelo'],
['Hollow'],
],
[
['Colosso'],
['Gigantic'],
],
[
['Cyrto'],
['Curved'],
],
[
['Gampso'],
['Curved'],
],
[
['Cerato'],
['Horn'],
],
[
['Cyclo'],
['Round'],
],
[
['Gyro'],
['Round'],
],
[
['Gymno'],
['Bare'],
],
[
['Trachy'],
['Rough'],
],
[
['Acantho'],
['Spiny'],
],
[
['Rugos'],
['Wrinkled'],
],
[
['Di'],
['Two'],
],
[
['Macro'],
['Large'],
],
[
['Mega'],
['Large'],
],
[
['Aepy'],
['Tall'],
],
[
['Decan'],
['Pointed'],
],
[
['Deino'],
['Terrible'],
],
[
['Di'],
['Two'],
],
[
['Dicraeo'],
['Forked'],
],
[
['Dilipho'],
['Two Ridged'],
],
[
['Draco'],
['Dragon'],
],
[
['Elaphro'],
['Fleet'],
],
[
['Eu'],
['Well'],
],
[
['Gorgo'],
['Fierce'],
],
[
['Hadro'],
['Big'],
],
[
['Haplo'],
['Simple'],
],
[
['Hetero'],
['Different'],
],
[
['Homo'],
['Same'],
],
[
['Kentro'],
['Spiky'],
],
[
['Krito'],
['Noble'],
],
[
['Lepto'],
['Slim'],
],
[
['Lurdu'],
['Heavy'],
],
[
['Masso'],
['Massive'],
],
[
['Megalo'],
['Big'],
],
[
['Metria'],
['Moderately'],
],
[
['Micro'],
['Tiny'],
],
[
['Nano'],
['Tiny'],
],
[
['Neo'],
['New'],
],
[
['Pachy'],
['Thick'],
],
[
['Pano'],
['Fully'],
],
[
['Peloro'],
['Monstrous'],
],
[
['Plateo'],
['Flat'],
],
[
['Platy'],
['Flat'],
],
[
['Preno'],
['Sloping'],
],
[
['Rhab'],
['Rod'],
],
[
['Spino'],
['Thorn'],
],
[
['Steno'],
['Narrow'],
],
[
['Styraco'],
['Spiked'],
],
[
['Super'],
['Super'],
],
[
['Theco'],
['Socket'],
],
[
['Therizino'],
['Scythe'],
],
[
['Thescelo'],
['Wonderful'],
],
[
['Toro'],
['Bull'],
],
[
['Torvo'],
['Savage'],
],
];
const nm2 = [
[
['rhyncho'],
['Beak'],
],
[
['chelo'],
['Claw'],
],
[
['podo'],
['Foot'],
],
[
['cerco'],
['Tail'],
],
[
['canto'],
['Spined'],
],
[
['cephalo'],
['Headed'],
],
[
['donto'],
['Teeth'],
],
[
['don'],
['Tooth'],
],
[
['lopho'],
['Crested'],
],
[
['ploce'],
['Armored'],
],
[
['plo'],
['Armored'],
],
[
['rhino'],
['Nosed'],
],
[
['trachelo'],
['Necked'],
],
];
const nm3 = [
[
['bator'],
['Hero'],
],
[
['ceratops'],
['Horned Face'],
],
[
['draco'],
['Dragon'],
],
[
['dromeus'],
['Runner'],
],
[
['gryphus'],
['Griffin'],
],
[
['lestes'],
['Stealer'],
],
[
['mimus'],
['Mimic'],
],
[
['moloch'],
['Demon'],
],
[
['raptor'],
['Plunderer'],
],
[
['rex'],
['King'],
],
[
['sauropteryx'],
['\'Winged Lizard\''],
],
[
['saurus'],
['Lizard'],
],
[
['saura'],
['Lizard'],
],
[
['sornis'],
['Bird'],
],
[
['titan'],
['Giant'],
],
[
['tyrannus'],
['Tyrant'],
],
[
['venator'],
['Hunter'],
],
];
const nm4 = [
[
['Acantho'],
['Spiny'],
],
[
['Acro'],
['High'],
],
[
['Aegypto'],
['Egyptian'],
],
[
['Aepy'],
['Tall'],
],
[
['Afro'],
['African'],
],
[
['Agili'],
['Agile'],
],
[
['Alectro'],
['Eagle'],
],
[
['Ammo'],
['Sand'],
],
[
['Anchi'],
['Near'],
],
[
['Ankylo'],
['Stiff'],
],
[
['Antarcto'],
['Antarctic'],
],
[
['Apato'],
['Deceptive'],
],
[
['Archaeo'],
['Ancient'],
],
[
['Arrhino'],
['Without Nose'],
],
[
['Austro'],
['South'],
],
[
['Avi'],
['Bird'],
],
[
['Baga'],
['Small'],
],
[
['Baro'],
['Heavy'],
],
[
['Bellu'],
['Fine'],
],
[
['Brachio'],
['Arm'],
],
[
['Brachy'],
['Short'],
],
[
['Callio'],
['Beautiful'],
],
[
['Campto'],
['Bent'],
],
[
['Carno'],
['Carnivorous'],
],
[
['Cerato'],
['Horned'],
],
[
['Chloro'],
['Green'],
],
[
['Coelo'],
['Hollow'],
],
[
['Colosso'],
['Giant'],
],
[
['Cyano'],
['Blue'],
],
[
['Cyclo'],
['Round'],
],
[
['Cyrto'],
['Curved'],
],
[
['Daspleto'],
['Frightful'],
],
[
['Deino'],
['Terrible'],
],
[
['Di'],
['Two'],
],
[
['Dicraeo'],
['Forked'],
],
[
['Dilipho'],
['Two Ridged'],
],
[
['Draco'],
['Dragon'],
],
[
['Dromaeo'],
['Runnning'],
],
[
['Drypto'],
['Tearing'],
],
[
['Echino'],
['Spiny'],
],
[
['Elaphro'],
['Fleet'],
],
[
['Eo'],
['Dawn'],
],
[
['Eu'],
['Well'],
],
[
['Gampso'],
['Curved'],
],
[
['Gorgo'],
['Fierce'],
],
[
['Gymno'],
['Bare'],
],
[
['Gyro'],
['Round'],
],
[
['Hadro'],
['Big'],
],
[
['Haplo'],
['Simple'],
],
[
['Hespero'],
['Western'],
],
[
['Hetero'],
['Different'],
],
[
['Hylaeo'],
['Woodland'],
],
[
['Kentro'],
['Spiky'],
],
[
['Krito'],
['Noble'],
],
[
['Lasio'],
['Hairy'],
],
[
['Lepto'],
['Slim'],
],
[
['Leuco'],
['White'],
],
[
['Lopho'],
['Crested'],
],
[
['Lurdu'],
['Heavy'],
],
[
['Macro'],
['Large'],
],
[
['Masso'],
['Massive'],
],
[
['Mega'],
['Large'],
],
[
['Megalo'],
['Big'],
],
[
['Metria'],
['Moderately'],
],
[
['Micro'],
['Tiny'],
],
[
['Mono'],
['Single'],
],
[
['Nano'],
['Dwarf'],
],
[
['Nano'],
['Tiny'],
],
[
['Neo'],
['New'],
],
[
['Nigri'],
['Black'],
],
[
['Oro'],
['Mountain'],
],
[
['Orycto'],
['Digging'],
],
[
['Ovi'],
['Egg'],
],
[
['Pachy'],
['Thick'],
],
[
['Parali'],
['Tidal'],
],
[
['Peloro'],
['Monstrous'],
],
[
['Plateo'],
['Flat'],
],
[
['Platy'],
['Flat'],
],
[
['Pogono'],
['Bearded'],
],
[
['Preno'],
['Sloping'],
],
[
['Prenoce'],
['Sloping'],
],
[
['Pro'],
['Before'],
],
[
['Proto'],
['Before'],
],
[
['Rhab'],
['Rod'],
],
[
['Rugos'],
['Wrinkled'],
],
[
['Salto'],
['Hopping'],
],
[
['Sarco'],
['Flesh'],
],
[
['Segno'],
['Slow'],
],
[
['Silvi'],
['Forest'],
],
[
['Sino'],
['Chinese'],
],
[
['Spino'],
['Thorn'],
],
[
['Stego'],
['Roof'],
],
[
['Steno'],
['Narrow'],
],
[
['Styraco'],
['Spiked'],
],
[
['Super'],
['Super'],
],
[
['Theco'],
['Socket'],
],
[
['Therizino'],
['Scythe'],
],
[
['Thescelo'],
['Wonderful'],
],
[
['Toro'],
['Bull'],
],
[
['Torvo'],
['Savage'],
],
[
['Trachy'],
['Rough'],
],
[
['Trichodo'],
['Hairy'],
],
[
['Troo'],
['Wounding'],
],
[
['Tyloce'],
['Swelling'],
],
[
['Tyranno'],
['Tyrant'],
],
[
['Veloci'],
['Quick'],
],
[
['Xantho'],
['Yellow'],
],
];
const nm5 = [
[
['don'],
['Tooth'],
],
[
['bator'],
['Hero'],
],
[
['canthus'],
['Spine'],
],
[
['ceras'],
['Roof'],
],
[
['ceratops'],
['Horned Face'],
],
[
['docus'],
['Neck'],
],
[
['draco'],
['Dragon'],
],
[
['dromeus'],
['Runner'],
],
[
['gryphus'],
['Griffin'],
],
[
['lestes'],
['Stealer'],
],
[
['lodon'],
['Tooth'],
],
[
['mimus'],
['Mimic'],
],
[
['moloch'],
['Demon'],
],
[
['nychus'],
['Claw'],
],
[
['pelix'],
['Pelvis'],
],
[
['pelta'],
['Shield'],
],
[
['cephalus'],
['Head'],
],
[
['pteryx'],
['Wing'],
],
[
['pus'],
['Foot'],
],
[
['raptor'],
['Plunderer'],
],
[
['rex'],
['King'],
],
[
['rhinus'],
['Snout'],
],
[
['rhothon'],
['Nose'],
],
[
['sauropteryx'],
['\'Winged Lizard\''],
],
[
['saurus'],
['Lizard'],
],
[
['saura'],
['Lizard'],
],
[
['sornis'],
['Bird'],
],
[
['spondylus'],
['Vertebrae'],
],
[
['suchus'],
['Crocodile'],
],
[
['tholus'],
['Dome'],
],
[
['titan'],
['Giant'],
],
[
['tyrannus'],
['Tyrant'],
],
[
['venator'],
['Hunter'],
],
];
const i = Math.floor(Math.random() * 10);
{
if (i < 5) {
names = `${sample(nm4)[0] + sample(nm5)[0]} (${sample(nm4)[1]} ${sample(nm5)[1]})`;
} else {
names = `${sample(nm1)[0] + sample(nm2)[0] + sample(nm3)[0]} (${sample(nm1)[1]} ${sample(nm2)[1]} ${sample(nm3)[1]})`;
}
return names;
}
}