You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
227 lines
7.8 KiB
JavaScript
227 lines
7.8 KiB
JavaScript
var nm1 = [
|
|
["Tír", "Land"],
|
|
["Mag", "Plain"],
|
|
["Réimse", "Realm"],
|
|
["Domhan", "World"]
|
|
];
|
|
|
|
function nameGen() {
|
|
var nm2 = [
|
|
["an Adhradh", "Adoration"],
|
|
["an Aigéan", "the Ocean"],
|
|
["an Aisling", "the Dream"],
|
|
["an Aisteachas", "Strangeness"],
|
|
["an Aoibhnis", "Delight"],
|
|
["an Athbhreith", "Rebirth"],
|
|
["an Beithíoch", "the Beast"],
|
|
["an Bháisteach Shíoraí", "Eternal Rain"],
|
|
["an Bháisteach", "Rain"],
|
|
["an Bia", "Food"],
|
|
["an Breithiúnas", "Judgment"],
|
|
["an Bronntanas", "the Gift"],
|
|
["an Bás", "Death"],
|
|
["an Cheartais", "Justice "],
|
|
["an Chroabh", "the Champion"],
|
|
["an Chumhacht", "Might"],
|
|
["an Chéile", "Harmony"],
|
|
["an Cineáltas", "Kindness"],
|
|
["an Cróga", "the Brave"],
|
|
["an Dath", "Color"],
|
|
["an Deatach", "Smoke"],
|
|
["an Draíocht", "Enchantment"],
|
|
["an Draíochta", "Magic"],
|
|
["na nDúil", "Desire"],
|
|
["an Eachtra", "Adventure"],
|
|
["an Eagna", "Wisdom"],
|
|
["an Earraigh", "Spring"],
|
|
["an Fhionnachtain", "Discovery"],
|
|
["an Fhortún", "Fortune"],
|
|
["an Fhuascailt", "Redemption"],
|
|
["an Fhásach", "Wilderness"],
|
|
["an Fhómhair", "Autumn"],
|
|
["an Filleadh", "the Return"],
|
|
["an Fiosracht", "Curiosity"],
|
|
["an Fiáin", "the Wild"],
|
|
["an Fás", "Growth"],
|
|
["an Ghairdín", "the Garden"],
|
|
["an Ghealach Síoraí", "the Eternal Moon"],
|
|
["an Ghealach", "the Moon"],
|
|
["an Gheimhridh", "Winter"],
|
|
["an Ghrian Síoraí", "the Eternal Sun"],
|
|
["an Grá", "Love"],
|
|
["an Gáire", "Laughter"],
|
|
["an Lae Amárach", "Tomorrow"],
|
|
["an Lá Síoraí", "Eternal Day"],
|
|
["an Mhealladh", "Attraction"],
|
|
["an Misneach", "Courage"],
|
|
["an Nádúr Maighdean", "Virgin Nature"],
|
|
["an Nádúr", "Nature"],
|
|
["an Onóir", "Honor"],
|
|
["an Oíche Shíoraí", "Eternal Night"],
|
|
["an Oíche", "the Night"],
|
|
["an Pheirspictíocht", "Perspective"],
|
|
["an Poitéinseal", "Potential"],
|
|
["an Rince", "Dance"],
|
|
["an Rúndiamhair", "Mystery"],
|
|
["an Saibhreas", "Riches"],
|
|
["an Saol Eile", "Other Life"],
|
|
["an Saol Nua", "New Life"],
|
|
["an Saol", "Life"],
|
|
["an Scáth", "Shadow"],
|
|
["an Siamsa", "Amusement"],
|
|
["an Sneachta", "Snow"],
|
|
["an Solas", "Light"],
|
|
["an Sonas", "Happiness"],
|
|
["an Strainséir", "the Stranger"],
|
|
["an Sásamh", "Satisfaction"],
|
|
["an Síoraí", "the Eternal"],
|
|
["an Teas", "Warmth"],
|
|
["an Tsíoraíocht", "Eternity"],
|
|
["an Tús", "the Beginning"],
|
|
["an Uisce", "Water"],
|
|
["an t-Airgead", "Silver"],
|
|
["an t-Amhrán", "Song"],
|
|
["an t-Athrú", "Change"],
|
|
["an t-Eolas", "Knowledge"],
|
|
["an t-Oighear", "Ice"],
|
|
["an t-Ádh", "Luck"],
|
|
["an t-Áthas", "Joy"],
|
|
["an t-Ór", "Gold"],
|
|
["an tSamhlaíocht", "Imagination"],
|
|
["an tSamhraidh", "Summer"],
|
|
["an Áilleacht Shíoraí", "Eternal Beauty"],
|
|
["an Áilleacht", "Beauty"],
|
|
["an Éiginnteacht", "Uncertainty"],
|
|
["na Beithigh", "Beasts"],
|
|
["na Bláthanna", "Flowers"],
|
|
["na Boladh", "Scents"],
|
|
["na Brionglóidó", "Dreams"],
|
|
["na Bronntanais", "Gifts"],
|
|
["na Ceisteanna", "Questions"],
|
|
["na Crainn", "Trees"],
|
|
["na Cuimhní", "Memories"],
|
|
["na Filíochta", "Poetry"],
|
|
["na Foighne", "Patience"],
|
|
["na Féidearthachtaí", "Possibilities"],
|
|
["na Gairdíní", "Gardens"],
|
|
["na Gréine", "the Sun"],
|
|
["na Guthanna", "Voices"],
|
|
["na Haibhneacha", "Rivers"],
|
|
["na Haigéin", "Oceans"],
|
|
["na Miongháire", "Smiles"],
|
|
["na Nathracha", "Snakes"],
|
|
["na Pléisiúir", "Pleasures"],
|
|
["na Páistí", "the Children"],
|
|
["na Rúin", "Secrets"],
|
|
["na Rúndiamhra", "Mysteries"],
|
|
["na Saoirse", "Freedom"],
|
|
["na Scáthanna", "Shadows"],
|
|
["na Seaimpíní", "Champions"],
|
|
["na Sleachta", "Passages"],
|
|
["na Sláinte", "Health"],
|
|
["na Sléibhte", "Mountains"],
|
|
["na Soilse", "Lights"],
|
|
["na Spioraid", "Spirits"],
|
|
["na Stoirmeacha Báistí", "Rainstorms"],
|
|
["na Strainséirí", "Strangers"],
|
|
["na Turais", "Voyages"],
|
|
["na n-Iontas", "Wonder"],
|
|
[""]
|
|
];
|
|
var nm3 = [
|
|
["Airgid", "Silver"],
|
|
["Aisteach", "Bizarre"],
|
|
["Aisteach", "Curious"],
|
|
["Aonair", "Lone"],
|
|
["Ardaithe", "Exalted"],
|
|
["Artach", "Arctic"],
|
|
["Beoga", "Vivid"],
|
|
["Briste", "Broken"],
|
|
["Bríomhar", "Vibrant"],
|
|
["Bunaidh", "Original"],
|
|
["Caillte", "Lost"],
|
|
["Ceilte", "Hidden"],
|
|
["Cheart", "Righteous"],
|
|
["Chian", "Faraway"],
|
|
["Chiúin", "Quiet"],
|
|
["Cineálta", "Kind"],
|
|
["Cogarnach", "Whispering"],
|
|
["Coiteann", "Common"],
|
|
["Cosanta", "Guarded"],
|
|
["Cuasach", "Hollow"],
|
|
["Cumhra", "Fragrant"],
|
|
["Cumhraithe", "Perfumed"],
|
|
["Dinimiciúil", "Dynamic"],
|
|
["Dodhéanta", "Impossible"],
|
|
["Dofheicthe", "Invisible"],
|
|
["Fathach", "Giant"],
|
|
["Fiáin", "Wild"],
|
|
["Flúirseach", "Abundant"],
|
|
["Foirge", "Perfect"],
|
|
["Fuar", "Cold"],
|
|
["Fánaidh", "Wandering"],
|
|
["Gan Deireadh", "Ceaseless"],
|
|
["Gan Smál", "Flawless"],
|
|
["Geal", "Bright"],
|
|
["Glioscarnach", "Glittering"],
|
|
["Gruama", "Grim"],
|
|
["Grásta", "Graceful"],
|
|
["Iontach", "Brilliant"],
|
|
["Leochaileach", "Fragile"],
|
|
["Luachmhar", "Bountiful"],
|
|
["Luachmhar", "Precious"],
|
|
["Maighdean", "Virgin"],
|
|
["Maorga", "Majestic"],
|
|
["Marbh", "Dead"],
|
|
["Mheabhair", "Mad"],
|
|
["Mhín", "Gentle"],
|
|
["Mhór", "Grandiose"],
|
|
["Mistéireach", "Mysterious"],
|
|
["Méanfach", "Yawning"],
|
|
["Naomhtha", "Hallowed"],
|
|
["Neamhbhalbh", "Aberrant"],
|
|
["Neamhschríofa", "Unwritten"],
|
|
["Reoite", "Frozen"],
|
|
["Ríoga", "Regal"],
|
|
["Rúnda", "Secret"],
|
|
["Samhailteach", "Imaginary"],
|
|
["Scáthach", "Shadowy"],
|
|
["Shíochánta", "Peaceful"],
|
|
["Stoirmeach", "Stormy"],
|
|
["Suaimhnis", "Tranquil"],
|
|
["Suaite", "Turbulent"],
|
|
["Síoraí", "Eternal"],
|
|
["Síorghlas", "Evergreen"],
|
|
["Taitneamhach", "Pleasant"],
|
|
["Thorthúil", "Fertile"],
|
|
["Uaighe", "Grave"],
|
|
["Uaigneach", "Lonely"],
|
|
["Ársa", "Ancient"],
|
|
["Óg", "Juvenile"],
|
|
["Órga", "Golden"]
|
|
];
|
|
var br = "";
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
for (i = 0; i < 10; i++) {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
nTp = Math.random() * 2 | 0;
|
|
if (nTp === 0) {
|
|
rnd2 = Math.random() * nm2.length | 0;
|
|
names = nm1[rnd][0] + " " + nm2[rnd2][0] + " (" + nm1[rnd][1] + " of " + nm2[rnd2][1] + ")";
|
|
nm2.splice(rnd2, 1);
|
|
} else {
|
|
rnd2 = Math.random() * nm3.length | 0;
|
|
names = nm1[rnd][0] + " " + nm3[rnd2][0] + " (The " + nm3[rnd2][1] + " " + nm1[rnd][1] + ")";
|
|
nm3.splice(rnd2, 1);
|
|
}
|
|
br = document.createElement('br');
|
|
element.appendChild(document.createTextNode(names));
|
|
element.appendChild(br);
|
|
}
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|