swDathomirianNames.js (5394B)
1 var nm1 = ["Aberrant", "Abhorrent", "Agonizing", "Agony", "Animal", "Antipathy", "Archaic", "Atrocious", "Barbaric", "Barbarous", "Beast", "Beastial", "Beastly", "Berserk", "Berserker", "Bestial", "Bloodthirsty", "Brutal", "Brute", "Brutish", "Bully", "Coarse", "Crazed", "Crude", "Cruel", "Cruelty", "Curse", "Cursed", "Damned", "Death", "Demon", "Demoniac", "Devil", "Devilish", "Diabolical", "Dread", "Dreadful", "Enmity", "Enraged", "Evil", "Fell", "Feral", "Ferine", "Ferocious", "Fiend", "Fiendish", "Fierce", "Fiery", "Flagrant", "Foul", "Frantic", "Fume", "Fuming", "Ghastly", "Ghoul", "Ghoulish", "Grave", "Grim", "Grisly", "Grotesque", "Gruesome", "Haggard", "Harsh", "Hateful", "Hatred", "Heartless", "Heinous", "Hell", "Hellion", "Hellish", "Hideous", "Horrid", "Horror", "Hysterical", "Imp", "Impetuous", "Infernal", "Inflamed", "Infuriated", "Intense", "Ire", "Loathe", "Loathing", "Loathsome", "Lupine", "Macabre", "Mad", "Maddened", "Malevolence", "Malevolent", "Malice", "Malicious", "Malign", "Maniac", "Maniacal", "Merciless", "Monster", "Monstrosity", "Monstrous", "Morbid", "Mortuary", "Murder", "Murderous", "Nasty", "Nefarious", "Odious", "Ominous", "Pest", "Pitiless", "Rabid", "Rage", "Raging", "Rancor", "Ravening", "Relentless", "Riot", "Riotous", "Rough", "Ruthless", "Sadist", "Sadistic", "Sanguinary", "Savage", "Spite", "Storm", "Temper", "Terrible", "Tough", "Turbulent", "Unmerciful", "Unrelenting", "Unrestrained", "Untamed", "Vehement", "Vengeance", "Vengeful", "Venom", "Vex", "Vicious", "Vile", "Villain", "Villainous", "Violence", "Violent", "Wild", "Wraith", "Wrath"]; 2 var nm2 = ["", "", "", "", "ch", "h", "j", "l", "n", "r", "s", "sh", "t", "th", "tr", "y", "z"]; 3 var nm3 = ["a", "e", "u", "a", "e", "u", "a", "e", "u", "a", "e", "u", "o", "i", "i", "a", "e", "u", "a", "e", "u", "ie", "ei", "ue", "ui"]; 4 var nm4 = ["ch", "hj", "hs", "hv", "g", "j", "jh", "l", "ln", "lm", "ls", "lz", "mj", "mz", "ns", "nj", "nz", "rj", "rv", "rs", "rz", "s"]; 5 var nm5 = ["a", "i", "a", "i", "a", "i", "a", "i", "a", "i", "e", "u", "a", "i", "a", "i", "a", "i", "a", "i", "a", "i", "e", "e", "u", "u", "ie", "ee", "ua", "ea", "ai", "ia", "ii"]; 6 var nm6 = ["c", "ch", "j", "l", "ls", "lsh", "lz", "n", "ns", "nj", "nz", "s", "ss", "sh", "z", "zz", "zh", "zs"]; 7 var nm7 = ["", "", "", "", "", "d", "g", "j", "jj", "m", "n", "nn", "s", "sh", "v", "z"]; 8 var nm8 = ["", "", "", "ch", "dj", "g", "j", "k", "n", "r", "v", "y", "z"]; 9 var nm9 = ["a", "e", "o", "a", "e", "o", "a", "e", "o", "a", "e", "o", "i", "i", "u"]; 10 var nm10 = ["d", "dd", "dr", "g", "gr", "ggr", "k", "kr", "l", "ll", "ls", "lr", "ld", "lz", "nt", "nr", "nv", "nz", "ns", "nsh", "ntr", "pr", "tr", "v", "vv", "vr", "z", "zs", "zr", "zd"]; 11 var nm11 = ["", "", "", "", "", "d", "j", "l", "q", "s", "sh", "ss", "t", "z", "zz"]; 12 var br = ""; 13 14 function nameGen(type) { 15 var tp = type; 16 $('#placeholder').css('textTransform', 'capitalize'); 17 var element = document.createElement("div"); 18 element.setAttribute("id", "result"); 19 for (i = 0; i < 10; i++) { 20 nameSur(); 21 while (nSr === "") { 22 nameSur(); 23 } 24 if (tp === 1) { 25 nameFem(); 26 while (nMs === "") { 27 nameFem(); 28 } 29 } else { 30 rnd = Math.random() * nm1.length | 0; 31 nMs = nm1[rnd]; 32 nm1.splice(rnd, 0); 33 } 34 names = nMs + " " + nSr; 35 br = document.createElement('br'); 36 element.appendChild(document.createTextNode(names)); 37 element.appendChild(br); 38 } 39 if (document.getElementById("result")) { 40 document.getElementById("placeholder").removeChild(document.getElementById("result")); 41 } 42 document.getElementById("placeholder").appendChild(element); 43 } 44 45 function nameFem() { 46 rnd = Math.random() * nm2.length | 0; 47 rnd2 = Math.random() * nm3.length | 0; 48 rnd3 = Math.random() * nm7.length | 0; 49 if (i < 3) { 50 while (nm2[rnd] === "") { 51 rnd = Math.random() * nm2.length | 0; 52 } 53 while (nm7[rnd3] === nm2[rnd] || nm7[rnd3] === "") { 54 rnd3 = Math.random() * nm7.length | 0; 55 } 56 nMs = nm2[rnd] + nm3[rnd2] + nm7[rnd3]; 57 } else { 58 rnd5 = Math.random() * nm4.length | 0; 59 rnd6 = Math.random() * nm5.length | 0; 60 while (nm4[rnd5] === nm2[rnd] || nm4[rnd5] === nm7[rnd3]) { 61 rnd5 = Math.random() * nm4.length | 0; 62 } 63 if (i < 7) { 64 nMs = nm2[rnd] + nm3[rnd2] + nm4[rnd5] + nm5[rnd6] + nm7[rnd3]; 65 } else { 66 rnd7 = Math.random() * nm6.length | 0; 67 rnd8 = Math.random() * nm5.length | 0; 68 while (nm6[rnd7] === nm7[rnd3] || nm6[rnd7] === nm4[rnd5]) { 69 rnd7 = Math.random() * nm6.length | 0; 70 } 71 nMs = nm2[rnd] + nm3[rnd2] + nm4[rnd5] + nm5[rnd6] + nm6[rnd7] + nm5[rnd8] + nm7[rnd3]; 72 } 73 } 74 testSwear(nMs); 75 } 76 77 function nameSur() { 78 rnd = Math.random() * nm8.length | 0; 79 rnd2 = Math.random() * nm9.length | 0; 80 rnd3 = Math.random() * nm10.length | 0; 81 rnd4 = Math.random() * nm9.length | 0; 82 rnd5 = Math.random() * nm11.length | 0; 83 while (nm10[rnd3] === nm8[rnd] || nm10[rnd3] === nm11[rnd5]) { 84 rnd3 = Math.random() * nm10.length | 0; 85 } 86 nSr = nm8[rnd] + nm9[rnd2] + nm10[rnd3] + nm9[rnd4] + nm11[rnd5]; 87 testSwear(nSr); 88 }