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.

301 lines
16 KiB
JavaScript

var nm1 = ["", "", "", "b", "d", "g", "h", "l", "m", "n", "th", "v", "z"];
var nm2 = ["a", "i", "a", "i", "o", "u", "a", "i", "a", "i", "o", "u", "e"];
var nm3 = ["bl", "ch", "d", "dr", "g", "gg", "gr", "gh", "l", "ll", "ld", "lm", "ln", "lr", "m", "md", "n", "nn", "nd", "ng", "nv", "r", "rd", "rb", "rv", "rc", "rch"];
var nm4 = ["o", "o", "o", "o", "o", "a", "e", "a", "e", "o", "o", "o", "o", "o", "a", "e", "a", "e", "a", "e", "a", "e", "eo"];
var nm5 = ["d", "l", "m", "n", "th"];
var nm6 = ["", "", "", "", "b", "br", "c", "ch", "cr", "dr", "g", "gh", "gv", "k", "kh", "kr", "kv", "l", "s", "sk", "t", "th", "v", "vr", "z"];
var nm7 = ["a", "e", "i", "o", "u"];
var nm8 = ["cr", "dr", "dv", "g", "gg", "gr", "kr", "ncr", "ngr", "nv", "r", "rg", "rk", "rr", "rv", "v", "y", "yd"];
var nm9 = ["a", "i", "o", "a", "i", "o", "a", "i", "o", "e", "u", "a", "i", "o", "ii"];
var nm10 = ["h", "m", "nh", "r", "v", "w"];
var nm11 = ["", "d", "l", "m", "n", "r", "tch"];
var nm12 = ["", "", "c", "h", "k", "l", "m", "n", "r", "s", "t", "v", "z"];
var nm13 = ["a", "e", "i", "o"];
var nm14 = ["c", "ch", "dr", "dh", "fr", "m", "mr", "mk", "mkh", "mm", "n", "nn", "nk", "nkr", "nch", "r", "rtr", "rth", "rkh", "rv", "sk", "skh", "st", "str", "th", "thr", "tk"];
var nm15 = ["a", "e", "i", "a", "e", "i", "a", "e", "i", "o"];
var nm16 = ["ch", "j", "jh", "kh", "l", "lr", "nt", "nth", "sh", "th", "v"];
var nm17 = ["", "l", "n", "r", "t"];
var nm18 = ["", "", "b", "d", "g", "h", "r", "rh", "sk", "str", "t", "v", "z"];
var nm19 = ["a", "e", "i", "o"];
var nm20 = ["g", "gd", "h", "hn", "hr", "hl", "l", "ll", "lg", "ldr", "lm", "n", "ng", "ngk", "r", "v"];
var nm21 = ["a", "e", "i", "o"];
var nm22 = ["l", "m", "mh", "n", "nh", "r", "s", "v"];
var nm23 = ["", "d", "n", "r", "s", "th"];
var nm24 = ["", "", "c", "d", "f", "h", "j", "l", "m", "n", "v", "z"];
var nm25 = ["a", "e", "o", "a", "e", "o", "a", "e", "o", "i", "u"];
var nm26 = ["d", "dr", "dd", "h", "hl", "mn", "ml", "mr", "mh", "n", "nn", "nr", "rr", "rh", "rl", "rs", "sr"];
var nm27 = ["a", "i", "o"];
var nm28 = ["h", "l", "ll", "m", "mm", "n", "nn", "r", "rr", "v"];
var nm29 = ["", "d", "l", "ln", "m", "n", "rn", "th"];
var nm30 = ["", "", "b", "br", "d", "g", "gn", "h", "kn", "kr", "m", "n", "s", "v", "z"];
var nm31 = ["a", "e", "i", "a", "e", "i", "a", "e", "i", "a", "e", "i", "o", "u"];
var nm32 = ["cc", "cn", "cr", "d'r", "dr", "dv", "dd", "g", "gr", "g'r", "g'd", "gl", "gv", "gs", "ld", "lg", "ln", "ld'r", "lm", "m", "mm", "nd", "ndr", "nr", "nv", "rd", "r'd", "rg", "rc", "rs", "s", "sg", "sd", "v", "yd"];
var nm33 = ["a", "i", "o", "e", "u", "a", "i", "o", "e", "u", "a", "i", "o", "e", "u", "a", "i", "o", "e", "u", "ee", "oo", "ia"];
var nm34 = ["l", "m", "n", "nm", "r", "v", "x"];
var nm35 = ["", "c", "d", "hn", "l", "m", "n", "r", "s"];
var nm36 = ["c", "d", "f", "h", "hs", "m", "n", "r", "rh", "s", "v"];
var nm37 = ["a", "i", "o", "a", "i", "o", "a", "i", "o", "a", "i", "o", "aa", "e"];
var nm38 = ["ch", "ct", "dh", "ft", "gt", "gg", "k", "kt", "kr", "lk", "lkr", "nk", "nt", "r", "rk", "rth", "t", "tr", "th"];
var nm39 = ["a", "e", "i", "a", "e", "i", "a", "e", "i", "a", "e", "i", "o", "ea"];
var nm40 = ["c", "k", "l", "ll", "n", "th"];
var nm41 = ["", "", "f", "h", "l", "m", "n", "r", "rh", "s", "sh", "v", "z", "zh"];
var nm42 = ["a", "e", "i", "u"];
var nm43 = ["gh", "h", "hn", "hl", "l", "lg", "ll", "lkh", "m", "mm", "n", "nn", "s", "sh", "ss", "t", "th", "v", "z"];
var nm44 = ["a", "e", "i", "o"];
var nm45 = ["lm", "ln", "ll", "m", "mm", "mh", "mn", "n", "ndr", "nn", "nth", "r", "rn", "rt", "s", "ss", "th"];
var nm46 = ["", "d", "l", "n", "r", "s", "th"];
var nm47 = ["", "", "d", "f", "g", "h", "m", "n", "r", "v", "z"];
var nm48 = ["a", "e", "i"];
var nm49 = ["c", "cd", "cn", "ct", "dr", "dn", "g", "gt", "gr", "gg", "k", "kt", "kr", "kdr", "l", "lk", "ld", "ldr", "lg", "lgr", "m", "mm", "mn", "n", "nnq", "ndr", "r", "rd", "rbr", "rdr", "rg", "rr"];
var nm50 = ["a", "e", "i", "u", "a", "e", "i", "a", "e", "i", "u", "a", "e", "i", "a", "e", "i", "ia"];
var nm51 = ["d", "h", "l", "m", "n", "nt", "nth", "s", "sh", "th", "v", "z"];
var nm52 = ["", "d", "g", "k", "m", "n", "s", "ss", "sh", "t"];
var nm53 = ["all", "autumn", "bank", "barren", "battle", "bitter", "black", "blaze", "bleak", "bog", "bold", "border", "brass", "brave", "bright", "cliff", "cloud", "cold", "copper", "craven", "crimson", "cross", "crown", "dagger", "dark", "dawn", "dead", "deep", "doom", "dragon", "dual", "dull", "dust", "east", "ebon", "end", "even", "ever", "fang", "fire", "first", "flame", "flock", "fog", "free", "frost", "ghost", "giant", "gold", "grand", "green", "grim", "hammer", "hel", "hell", "high", "hollow", "honor", "horn", "hunger", "iron", "keen", "last", "light", "lone", "lost", "lumber", "marble", "mist", "moon", "mourn", "murk", "narrow", "night", "north", "pride", "rain", "red", "river", "ruin", "sea", "serpent", "shadow", "silent", "silver", "smoke", "snow", "somber", "sorrow", "soul", "south", "spell", "spirit", "spring", "star", "steel", "still", "storm", "stout", "summer", "sun", "throne", "thunder", "torn", "tower", "twin", "twist", "victory", "warm", "water", "web", "west", "whistle", "wicked", "wild", "wind", "winter", "wonder", "wood"];
var nm54 = ["crest", "cross", "dale", "denn", "fall", "fell", "ford", "fork", "front", "gate", "guard", "hawk", "heart", "hearth", "helm", "hold", "hollow", "horn", "keep", "light", "march", "mond", "more", "pass", "path", "peak", "point", "post", "reach", "rest", "ridge", "rock", "rose", "run", "rush", "shore", "spire", "star", "strom", "view", "watch", "well", "wind", "wood", "woods"];
var br = "";
function nameGen(type) {
var tp = type;
$('#placeholder').css('textTransform', 'capitalize');
var element = document.createElement("div");
element.setAttribute("id", "result");
for (i = 0; i < 10; i++) {
if (tp === 1) {
nameFem();
while (nMs === "") {
nameFem();
}
} else {
nameMas();
while (nMs === "") {
nameMas();
}
}
br = document.createElement('br');
element.appendChild(document.createTextNode(nMs));
element.appendChild(br);
}
if (document.getElementById("result")) {
document.getElementById("placeholder").removeChild(document.getElementById("result"));
}
document.getElementById("placeholder").appendChild(element);
}
function nameMas() {
if (i < 2) {
rnd = Math.random() * nm53.length | 0;
rnd2 = Math.random() * nm54.length | 0;
while (nm53[rnd] === nm54[rnd2]) {
rnd2 = Math.random() * nm54.length | 0;
}
nMs = nm53[rnd] + nm54[rnd2];
} else if (i < 4) {
rnd = Math.random() * nm1.length | 0;
rnd2 = Math.random() * nm2.length | 0;
rnd3 = Math.random() * nm3.length | 0;
rnd4 = Math.random() * nm4.length | 0;
rnd5 = Math.random() * nm5.length | 0;
while (nm3[rnd3] === nm1[rnd] || nm3[rnd3] === nm5[rnd5]) {
rnd3 = Math.random() * nm3.length | 0;
}
nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm4[rnd4] + nm5[rnd5];
} else if (i < 6) {
nTp = Math.random() * 3 | 0;
rnd = Math.random() * nm6.length | 0;
rnd2 = Math.random() * nm7.length | 0;
rnd3 = Math.random() * nm8.length | 0;
rnd4 = Math.random() * nm9.length | 0;
rnd5 = Math.random() * nm11.length | 0;
while (nm6[rnd] === nm11[rnd5]) {
rnd5 = Math.random() * nm11.length | 0;
}
while (nm8[rnd3] === nm6[rnd] || nm8[rnd3] === nm11[rnd5]) {
rnd3 = Math.random() * nm8.length | 0;
}
if (nTp === 0) {
nMs = nm6[rnd] + nm7[rnd2] + nm8[rnd3] + nm9[rnd4] + nm11[rnd5];
} else if (nTp === 1) {
rnd6 = Math.random() * nm7.length | 0;
rnd7 = Math.random() * nm10.length | 0;
nMs = nm6[rnd] + nm7[rnd2] + nm8[rnd3] + nm7[rnd6] + nm10[rnd7] + nm9[rnd4] + nm11[rnd5];
} else {
rnd8 = Math.random() * nm6.length | 0;
rnd9 = Math.random() * nm7.length | 0;
rnd10 = Math.random() * nm11.length | 0;
while (nm6[rnd8] === nm11[rnd10]) {
rnd10 = Math.random() * nm11.length | 0;
}
nMs = nm6[rnd] + nm7[rnd2] + nm8[rnd3] + nm9[rnd4] + nm11[rnd5] + " " + nm6[rnd8] + nm7[rnd9] + nm11[rnd10];
}
} else if (i < 8) {
nTp = Math.random() * 3 | 0;
rnd = Math.random() * nm12.length | 0;
rnd2 = Math.random() * nm13.length | 0;
rnd3 = Math.random() * nm14.length | 0;
rnd4 = Math.random() * nm15.length | 0;
rnd5 = Math.random() * nm17.length | 0;
while (nm12[rnd] === nm17[rnd5]) {
rnd5 = Math.random() * nm17.length | 0;
}
while (nm14[rnd3] === nm12[rnd] || nm14[rnd3] === nm17[rnd5]) {
rnd3 = Math.random() * nm14.length | 0;
}
if (nTp === 0) {
nMs = nm12[rnd] + nm13[rnd2] + nm14[rnd3] + nm15[rnd4] + nm17[rnd5];
} else if (nTp === 1) {
rnd6 = Math.random() * nm13.length | 0;
rnd7 = Math.random() * nm16.length | 0;
nMs = nm12[rnd] + nm13[rnd2] + nm14[rnd3] + nm13[rnd6] + nm16[rnd7] + nm15[rnd4] + nm17[rnd5];
} else {
rnd8 = Math.random() * nm12.length | 0;
rnd9 = Math.random() * nm13.length | 0;
rnd10 = Math.random() * nm17.length | 0;
while (nm12[rnd8] === nm17[rnd10]) {
rnd10 = Math.random() * nm17.length | 0;
}
nMs = nm12[rnd] + nm13[rnd2] + nm14[rnd3] + nm15[rnd4] + nm17[rnd5] + " " + nm12[rnd8] + nm13[rnd9] + nm17[rnd10];
}
} else {
nTp = Math.random() * 2 | 0;
rnd = Math.random() * nm18.length | 0;
rnd2 = Math.random() * nm19.length | 0;
rnd3 = Math.random() * nm20.length | 0;
rnd4 = Math.random() * nm21.length | 0;
rnd5 = Math.random() * nm23.length | 0;
while (nm18[rnd] === nm23[rnd5]) {
rnd5 = Math.random() * nm23.length | 0;
}
while (nm20[rnd3] === nm18[rnd] || nm20[rnd3] === nm23[rnd5]) {
rnd3 = Math.random() * nm20.length | 0;
}
if (nTp === 0) {
nMs = nm18[rnd] + nm19[rnd2] + nm20[rnd3] + nm21[rnd4] + nm23[rnd5];
} else {
rnd6 = Math.random() * nm19.length | 0;
rnd7 = Math.random() * nm22.length | 0;
nMs = nm18[rnd] + nm19[rnd2] + nm20[rnd3] + nm19[rnd6] + nm22[rnd7] + nm21[rnd4] + nm23[rnd5];
}
}
testSwear(nMs);
}
function nameFem() {
if (i < 2) {
nTp = Math.random() * 3 | 0;
rnd = Math.random() * nm24.length | 0;
rnd2 = Math.random() * nm25.length | 0;
rnd3 = Math.random() * nm26.length | 0;
rnd4 = Math.random() * nm27.length | 0;
rnd5 = Math.random() * nm29.length | 0;
while (nm24[rnd] === nm29[rnd5]) {
rnd5 = Math.random() * nm29.length | 0;
}
while (nm26[rnd3] === nm24[rnd] || nm26[rnd3] === nm29[rnd5]) {
rnd3 = Math.random() * nm26.length | 0;
}
if (nTp === 0) {
nMs = nm24[rnd] + nm25[rnd2] + nm26[rnd3] + nm27[rnd4] + nm29[rnd5];
} else {
rnd6 = Math.random() * nm25.length | 0;
rnd7 = Math.random() * nm28.length | 0;
if (nTp === 1) {
nMs = nm24[rnd] + nm25[rnd2] + nm26[rnd3] + nm25[rnd6] + nm28[rnd7] + nm27[rnd4] + nm29[rnd5];
} else {
rnd8 = Math.random() * nm24.length | 0;
rnd9 = Math.random() * nm25.length | 0;
rnd10 = Math.random() * nm29.length | 0;
while (nm24[rnd8] === nm29[rnd10]) {
rnd10 = Math.random() * nm29.length | 0;
}
nMs = nm24[rnd] + nm25[rnd2] + nm26[rnd3] + nm25[rnd6] + nm28[rnd7] + nm27[rnd4] + nm29[rnd5] + " " + nm24[rnd] + nm25[rnd] + nm29[rnd10];
}
}
} else if (i < 4) {
nTp = Math.random() * 3 | 0;
rnd = Math.random() * nm30.length | 0;
rnd2 = Math.random() * nm31.length | 0;
rnd3 = Math.random() * nm32.length | 0;
rnd4 = Math.random() * nm33.length | 0;
rnd5 = Math.random() * nm35.length | 0;
while (nm30[rnd] === nm35[rnd5]) {
rnd5 = Math.random() * nm35.length | 0;
}
while (nm32[rnd3] === nm30[rnd] || nm32[rnd3] === nm35[rnd5]) {
rnd3 = Math.random() * nm32.length | 0;
}
if (nTp === 0) {
nMs = nm30[rnd] + nm31[rnd2] + nm32[rnd3] + nm33[rnd4] + nm35[rnd5];
} else if (nTp === 1) {
rnd6 = Math.random() * nm31.length | 0;
rnd7 = Math.random() * nm34.length | 0;
nMs = nm30[rnd] + nm31[rnd2] + nm32[rnd3] + nm31[rnd6] + nm34[rnd7] + nm33[rnd4] + nm35[rnd5];
} else {
rnd8 = Math.random() * nm30.length | 0;
rnd9 = Math.random() * nm31.length | 0;
rnd10 = Math.random() * nm35.length | 0;
while (nm30[rnd8] === nm35[rnd10]) {
rnd10 = Math.random() * nm35.length | 0;
}
nMs = nm30[rnd] + nm31[rnd2] + nm32[rnd3] + nm33[rnd4] + nm35[rnd5] + " " + nm30[rnd] + nm31[rnd9] + nm35[rnd10];
}
} else if (i < 6) {
rnd = Math.random() * nm36.length | 0;
rnd2 = Math.random() * nm37.length | 0;
rnd3 = Math.random() * nm38.length | 0;
rnd4 = Math.random() * nm39.length | 0;
rnd5 = Math.random() * nm40.length | 0;
while (nm38[rnd3] === nm36[rnd] || nm38[rnd3] === nm40[rnd5]) {
rnd3 = Math.random() * nm38.length | 0;
}
nMs = nm36[rnd] + nm37[rnd2] + nm38[rnd3] + nm39[rnd4] + nm40[rnd5];
} else if (i < 8) {
nTp = Math.random() * 3 | 0;
rnd = Math.random() * nm41.length | 0;
rnd2 = Math.random() * nm42.length | 0;
rnd3 = Math.random() * nm43.length | 0;
rnd4 = Math.random() * nm44.length | 0;
rnd5 = Math.random() * nm46.length | 0;
while (nm41[rnd] === nm46[rnd5]) {
rnd5 = Math.random() * nm46.length | 0;
}
while (nm43[rnd3] === nm41[rnd] || nm43[rnd3] === nm46[rnd5]) {
rnd3 = Math.random() * nm43.length | 0;
}
if (nTp === 0) {
nMs = nm41[rnd] + nm42[rnd2] + nm43[rnd3] + nm44[rnd4] + nm46[rnd5];
} else if (nTp === 1) {
rnd6 = Math.random() * nm42.length | 0;
rnd7 = Math.random() * nm45.length | 0;
nMs = nm41[rnd] + nm42[rnd2] + nm43[rnd3] + nm42[rnd6] + nm45[rnd7] + nm44[rnd4] + nm46[rnd5];
} else {
rnd8 = Math.random() * nm41.length | 0;
rnd9 = Math.random() * nm42.length | 0;
rnd10 = Math.random() * nm46.length | 0;
while (nm41[rnd8] === nm46[rnd10]) {
rnd10 = Math.random() * nm46.length | 0;
}
nMs = nm41[rnd] + nm42[rnd2] + nm43[rnd3] + nm44[rnd4] + nm46[rnd5] + " " + nm41[rnd8] + nm42[rnd9] + nm46[rnd10];
}
} else {
nTp = Math.random() * 2 | 0;
rnd = Math.random() * nm47.length | 0;
rnd2 = Math.random() * nm48.length | 0;
rnd3 = Math.random() * nm49.length | 0;
rnd4 = Math.random() * nm50.length | 0;
rnd5 = Math.random() * nm52.length | 0;
while (nm47[rnd] === nm52[rnd5]) {
rnd5 = Math.random() * nm52.length | 0;
}
while (nm49[rnd3] === nm47[rnd] || nm49[rnd3] === nm52[rnd5]) {
rnd3 = Math.random() * nm49.length | 0;
}
if (nTp === 0) {
nMs = nm47[rnd] + nm48[rnd2] + nm49[rnd3] + nm50[rnd4] + nm52[rnd5];
} else {
rnd6 = Math.random() * nm48.length | 0;
rnd7 = Math.random() * nm51.length | 0;
nMs = nm47[rnd] + nm48[rnd2] + nm49[rnd3] + nm48[rnd6] + nm51[rnd7] + nm50[rnd4] + nm52[rnd5];
}
}
}