swMonCalamariNames.js (6652B)
1 var nm1 = ["", "", "", "", "", "b", "br", "c", "ch", "cr", "d", "dr", "f", "g", "gh", "gr", "h", "j", "jh", "k", "kr", "l", "m", "mx", "n", "p", "q", "r", "s", "sh", "t", "tr", "v", "vc", "vr", "y"]; 2 var nm2 = ["a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "aa", "oo", "ee", "oe", "io", "ua", "ae", "oa", "ie", "ai", "uu", "ea"]; 3 var nm3 = ["b", "br", "c", "ck", "ckd", "ckl", "ckr", "dr", "fw", "g", "ggr", "h", "hd", "j", "k", "kb", "kk", "kl", "km", "l", "lb", "lbr", "ld", "lk", "lkph", "ll", "lm", "lp", "lsp", "lt", "ly", "m", "mb", "mbr", "mck", "mm", "n", "nd", "ndl", "ng", "nk", "nl", "nq", "ns", "ph", "r", "rb", "rch", "rg", "rl", "rn", "rpf", "rr", "rsh", "rt", "s", "sf", "shn", "ss", "t", "th", "tr", "tt", "vr", "x", "xl", "yg", "z", "zl"]; 4 var nm4 = ["", "", "", "", "", "b", "c", "ck", "ff", "h", "k", "kk", "l", "ll", "ln", "m", "n", "ns", "nt", "r", "rl", "rn", "rt", "rth", "rx", "s", "sh", "ss", "ss", "sz", "t", "th", "x", "z"]; 5 var nm5 = ["", "", "", "", "", "b", "c", "ch", "d", "f", "h", "j", "jh", "k", "kl", "l", "m", "mh", "n", "nh", "r", "s", "sh", "t", "th", "v", "vr", "y"]; 6 var nm6 = ["a", "e", "i", "a", "e", "i", "o", "u", "a", "e", "i", "a", "e", "i", "o", "u", "a", "e", "i", "a", "e", "i", "o", "u", "a", "e", "i", "a", "e", "i", "o", "u", "a", "e", "i", "a", "e", "i", "o", "u", "a", "e", "i", "a", "e", "i", "o", "u", "ea", "ie", "ue", "ee", "ia", "ae"]; 7 var nm7 = ["b", "bt", "d", "dh", "dn", "f", "fw", "fn", "fl", "hl", "hh", "hn", "hm", "hl", "k", "kh", "ky", "kl", "km", "kn", "l", "lb", "lh", "lm", "ln", "ll", "m", "mb", "mn", "md", "n", "nd", "nl", "nh", "nk", "nky", "nm", "nn", "r", "rd", "rg", "rh", "s", "sh", "sm", "so", "w", "y", "z"]; 8 var nm8 = ["", "", "", "", "", "", "", "", "", "", "h", "l", "m", "n", "nt", "r", "s"]; 9 var nm9 = ["", "", "", "", "b", "br", "d", "g", "gh", "gr", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "v", "vr", "w"]; 10 var nm10 = ["a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "ou", "ia", "ua", "ai", "oo", "aa", "ee"]; 11 var nm11 = ["b", "bb", "br", "ch", "ckb", "ckd", "d", "dd", "dl", "dr", "g", "gr", "gb", "h", "hd", "k", "kb", "l", "lb", "lk", "lg", "lgr", "lw", "ld", "m", "mg", "md", "mb", "n", "md", "mb", "ng", "p", "pt", "r", "rc", "rr", "rt", "rg", "rb", "rgr", "s", "spl", "sc", "shc", "sr", "th", "thr", "tr", "tt", "vn", "y"]; 12 var nm12 = ["", "", "", "", "", "", "", "b", "bb", "c", "hb", "hd", "k", "kk", "l", "ll", "ls", "n", "r", "s", "sch", "ss", "x", "xx", "xz"]; 13 var br = ""; 14 15 function nameGen(type) { 16 var tp = type; 17 $('#placeholder').css('textTransform', 'capitalize'); 18 var element = document.createElement("div"); 19 element.setAttribute("id", "result"); 20 for (i = 0; i < 10; i++) { 21 rnd7 = Math.floor(Math.random() * nm9.length); 22 rnd8 = Math.floor(Math.random() * nm10.length); 23 rnd10 = Math.floor(Math.random() * nm12.length); 24 if (i % 3 === 0 && i % 2 != 0) { 25 while (rnd7 < 4) { 26 rnd7 = Math.floor(Math.random() * nm9.length); 27 } 28 namelast = nm9[rnd7] + nm10[rnd8] + nm12[rnd10]; 29 } else if (i % 2 === 0) { 30 rnd9 = Math.floor(Math.random() * nm10.length); 31 rnd11 = Math.floor(Math.random() * nm11.length); 32 namelast = nm9[rnd7] + nm10[rnd8] + nm11[rnd11] + nm10[rnd9] + nm12[rnd10]; 33 } else { 34 rnd9 = Math.floor(Math.random() * nm10.length); 35 rnd11 = Math.floor(Math.random() * nm11.length); 36 rnd12 = Math.floor(Math.random() * nm10.length); 37 rnd13 = Math.floor(Math.random() * nm11.length); 38 namelast = nm9[rnd7] + nm10[rnd8] + nm11[rnd11] + nm10[rnd9] + nm11[rnd13] + nm10[rnd12] + nm12[rnd10]; 39 } 40 if (tp === 1) { 41 rnd = Math.floor(Math.random() * nm5.length); 42 rnd2 = Math.floor(Math.random() * nm6.length); 43 rnd5 = Math.floor(Math.random() * nm8.length); 44 if (i < 4) { 45 while (rnd < 5) { 46 rnd = Math.floor(Math.random() * nm5.length); 47 } 48 names = nm5[rnd] + nm6[rnd2] + nm8[rnd5] + " " + namelast; 49 } else if (i < 8) { 50 rnd3 = Math.floor(Math.random() * nm7.length); 51 rnd4 = Math.floor(Math.random() * nm6.length); 52 names = nm5[rnd] + nm6[rnd2] + nm7[rnd3] + nm6[rnd4] + nm8[rnd5] + " " + namelast; 53 } else { 54 rnd3 = Math.floor(Math.random() * nm7.length); 55 rnd4 = Math.floor(Math.random() * nm6.length); 56 rnd5b = Math.floor(Math.random() * nm7.length); 57 rnd6 = Math.floor(Math.random() * nm6.length); 58 names = nm5[rnd] + nm6[rnd2] + nm7[rnd3] + nm6[rnd4] + nm7[rnd5b] + nm6[rnd6] + nm8[rnd5] + " " + namelast; 59 } 60 } else { 61 rnd = Math.floor(Math.random() * nm1.length); 62 rnd2 = Math.floor(Math.random() * nm2.length); 63 rnd5 = Math.floor(Math.random() * nm4.length); 64 if (i < 3) { 65 while (rnd < 5) { 66 rnd = Math.floor(Math.random() * nm1.length); 67 } 68 while (rnd5 < 5) { 69 rnd5 = Math.floor(Math.random() * nm4.length); 70 } 71 names = nm1[rnd] + nm2[rnd2] + nm4[rnd5] + " " + namelast; 72 } else if (i < 8) { 73 rnd3 = Math.floor(Math.random() * nm3.length); 74 rnd4 = Math.floor(Math.random() * nm2.length); 75 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd5] + " " + namelast; 76 } else { 77 rnd3 = Math.floor(Math.random() * nm3.length); 78 rnd4 = Math.floor(Math.random() * nm2.length); 79 rnd6 = Math.floor(Math.random() * nm3.length); 80 rnd7 = Math.floor(Math.random() * nm2.length); 81 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm3[rnd6] + nm2[rnd7] + nm4[rnd5] + " " + namelast; 82 } 83 } 84 br = document.createElement('br'); 85 element.appendChild(document.createTextNode(names)); 86 element.appendChild(br); 87 } 88 if (document.getElementById("result")) { 89 document.getElementById("placeholder").removeChild(document.getElementById("result")); 90 } 91 document.getElementById("placeholder").appendChild(element); 92 }