@xaroth8088/random-names
Version:
A random name generator for all kinds of things
12 lines (10 loc) • 1.49 kB
JavaScript
import { sample } from 'lodash-es';
export default function harpys() {
let names;
const nm1 = ['Aell', 'Aer', 'Air', 'Ar', 'Av', 'Bel', 'Ber', 'Caell', 'Cal', 'Cec', 'Cel', 'Crel', 'Cyl', 'Der', 'Des', 'Dhon', 'Dhyl', 'Dor', 'Dys', 'Faen', 'Fean', 'Fer', 'Flor', 'Glor', 'God', 'Gwyn', 'Gyl', 'Hell', 'Hem', 'Heph', 'Hyn', 'Hyst', 'Ial', 'Ier', 'Ill', 'Ion', 'Laer', 'Lin', 'Lor', 'Lyn', 'Lyph', 'Lys', 'Lyv', 'Maer', 'Men', 'Mes', 'Mor', 'Myn', 'Nel', 'Nell', 'Neph', 'Ner', 'Nor', 'Nyph', 'Nyr', 'Nys', 'Oc', 'Ocyp', 'Oll', 'Or', 'Orin', 'Pel', 'Per', 'Phel', 'Phlor', 'Phyn', 'Pod', 'Sav', 'Seph', 'Sol', 'Syl', 'Syr', 'Taer', 'Ten', 'Thel', 'Ther', 'Thyl', 'Tyl', 'Typh', 'Tyr', 'Tyv', 'Uem', 'Ur', 'Uv', 'Vael', 'Vel', 'Ver', 'Vol', 'Vyn', 'Xel', 'Xir', 'Xyl', 'Xyn', 'Yen', 'Yes', 'Yor', 'Zean', 'Zel', 'Zeph', 'Zer'];
const nm2 = ['a', 'aene', 'aeno', 'alin', 'alis', 'alle', 'ane', 'aphe', 'aphine', 'ara', 'arge', 'aria', 'ase', 'asha', 'asis', 'ea', 'eano', 'eanor', 'efis', 'elle', 'ena', 'enne', 'eo', 'ephise', 'era', 'erin', 'eris', 'ete', 'ethe', 'evis', 'ia', 'ial', 'ialle', 'iana', 'iane', 'iara', 'ie', 'ielle', 'iene', 'inis', 'inore', 'iphis', 'iris', 'is', 'ise', 'o', 'oah', 'oe', 'oelle', 'oene', 'oinne', 'ola', 'one', 'onia', 'ophine', 'ophis', 'ora', 'orena', 'oris', 'oya', 'ya', 'yana', 'ylia', 'ylis', 'yne', 'ynea', 'ynne', 'ynore', 'yore', 'yphe', 'yre', 'yrea', 'yris', 'ys', 'yth'];
{
names = sample(nm1) + sample(nm2);
return names;
}
}