swWookieNames.js (6556B)
1 var nm1 = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "b", "bl", "c", "ch", "chr", "d", "drrl", "dr", "drl", "f", "fr", "g", "gr", "grr", "grrw", "gw", "h", "hr", "j", "k", "kh", "kk", "kr", "krr", "krrs", "l", "m", "mr", "n", "q", "r", "rh", "rr", "s", "sh", "sn", "snr", "snrr", "snrl", "sp", "st", "t", "tr", "tvr", "tvrr", "trr", "v", "vr", "w", "wh", "wr", "wrh", "wrrl", "wrr", "z", "zh"]; 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", "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", "aaa", "ae", "ai", "ao", "aoa", "au", "ay", "ayy", "ee", "eee", "eeo", "eo", "eu", "ia", "iaa", "ie", "ii", "ioe", "iya", "iyy", "oa", "oo", "ooa", "ooo", "ou", "oua", "ua", "uaa", "uu", "uy", "y", "ya", "yi", "yy", "yyy"]; 3 var nm3 = ["b", "bb", "br", "c", "cc", "ch", "d", "dd", "f", "ff", "fr", "g", "gg", "ggl", "gh", "ghr", "gr", "h", "hnch", "hr", "j", "jj", "k", "kch", "kk", "kt", "l", "lb", "lgh", "lghr", "ll", "llffw", "lm", "ln", "lp", "lrr", "lw", "m", "mb", "mc", "mgr", "mm", "mn", "mp", "n", "nch", "nd", "ng", "nh", "nl", "nn", "nnk", "ns", "nt", "p", "pp", "r", "rb", "rc", "rch", "rd", "rdr", "rf", "rff", "rfh", "rg", "rk", "rkk", "rl", "rr", "rrf", "rrfh", "rrr", "rrw", "rt", "rv", "rw", "rww", "s", "sch", "sh", "sht", "sn", "ssh", "st", "t", "tb", "tc", "tch", "th", "thk", "thr", "thrr", "thrrr", "tt", "tw", "v", "vg", "vv", "w", "wb", "wd", "whhr", "whr", "wk", "wr", "wrr", "wrrh", "ww", "y", "zn", "zz"]; 4 var nm4 = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "c", "ch", "ck", "drr", "drrl", "h", "hn", "hr", "hrr", "k", "kk", "kk", "kkk", "l", "ll", "m", "n", "nch", "nk", "r", "rd", "rk", "rl", "rm", "rph", "rr", "rrr", "s", "sch", "sh", "shk", "ss", "st", "t", "v", "vv", "w", "wk", "wl", "wn", "wr"]; 5 var nm5 = ["", "", "", "", "", "", "", "", "", "", "", "b", "br", "bh", "c", "d", "dr", "dh", "dhr", "f", "fr", "g", "gch", "ghr", "gr", "gw", "h", "hw", "hwr", "j", "k", "kr", "kh", "l", "m", "n", "p", "r", "rr", "rh", "rhr", "s", "shr", "t", "w", "wh", "wr", "whr"]; 6 var nm6 = ["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", "ie", "ia", "oe", "ay", "ayy", "ua", "aaa", "aa", "y", "ay", "yo", "ae", "aa", "yy", "eu", "oo"]; 7 var nm7 = ["b", "bb", "bh", "c", "cc", "ch", "d", "dd", "g", "gg", "gh", "ghr", "h", "hl", "hb", "hlb", "ht", "k", "kk", "kh", "kl", "l", "lr", "lg", "ld", "ll", "lm", "ln", "m", "mb", "mc", "mm", "mn", "n", "nch", "ng", "ngl", "nb", "nm", "nn", "p", "pr", "r", "rc", "rgl", "rr", "rrl", "rrr", "rrs", "s", "sst", "st", "t", "thn", "tm", "tt", "v", "vv", "w", "wl", "wr"]; 8 var nm8 = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "ck", "gn", "gnh", "k", "kk", "l", "ll", "m", "n", "nh", "r", "rl", "rr", "rrl", "s", "sh", "shk", "w"]; 9 var br = ""; 10 11 function nameGen(type) { 12 var tp = type; 13 $('#placeholder').css('textTransform', 'capitalize'); 14 var element = document.createElement("div"); 15 element.setAttribute("id", "result"); 16 for (i = 0; i < 10; i++) { 17 if (tp === 1) { 18 rnd = Math.floor(Math.random() * nm5.length); 19 rnd2 = Math.floor(Math.random() * nm6.length); 20 rnd5 = Math.floor(Math.random() * nm8.length); 21 rnd3 = Math.floor(Math.random() * nm7.length); 22 rnd4 = Math.floor(Math.random() * nm6.length); 23 if (i < 4) { 24 names = nm5[rnd] + nm6[rnd2] + nm7[rnd3] + nm6[rnd4] + nm8[rnd5]; 25 } else if (i < 7) { 26 rnd7 = Math.floor(Math.random() * nm7.length); 27 rnd6 = Math.floor(Math.random() * nm6.length); 28 names = nm5[rnd] + nm6[rnd2] + nm7[rnd3] + nm6[rnd4] + nm7[rnd7] + nm6[rnd6] + nm8[rnd5]; 29 } else { 30 rnd7 = Math.floor(Math.random() * nm7.length); 31 rnd6 = Math.floor(Math.random() * nm6.length); 32 rnd8 = Math.floor(Math.random() * nm7.length); 33 rnd9 = Math.floor(Math.random() * nm6.length); 34 names = nm5[rnd] + nm6[rnd2] + nm7[rnd3] + nm6[rnd4] + nm7[rnd7] + nm6[rnd6] + nm7[rnd8] + nm6[rnd9] + nm8[rnd5]; 35 } 36 } else { 37 rnd = Math.floor(Math.random() * nm1.length); 38 rnd2 = Math.floor(Math.random() * nm2.length); 39 rnd5 = Math.floor(Math.random() * nm4.length); 40 if (i < 2) { 41 while (rnd < 15) { 42 rnd = Math.floor(Math.random() * nm1.length); 43 } 44 while (rnd5 < 15) { 45 rnd5 = Math.floor(Math.random() * nm4.length); 46 } 47 names = nm1[rnd] + nm2[rnd2] + nm4[rnd5]; 48 } else if (i < 5) { 49 rnd3 = Math.floor(Math.random() * nm3.length); 50 rnd4 = Math.floor(Math.random() * nm2.length); 51 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd5]; 52 } else if (i < 8) { 53 rnd3 = Math.floor(Math.random() * nm3.length); 54 rnd4 = Math.floor(Math.random() * nm2.length); 55 rnd7 = Math.floor(Math.random() * nm3.length); 56 rnd6 = Math.floor(Math.random() * nm2.length); 57 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm3[rnd7] + nm2[rnd6] + nm4[rnd5]; 58 } else { 59 rnd3 = Math.floor(Math.random() * nm3.length); 60 rnd4 = Math.floor(Math.random() * nm2.length); 61 rnd7 = Math.floor(Math.random() * nm3.length); 62 rnd6 = Math.floor(Math.random() * nm2.length); 63 rnd8 = Math.floor(Math.random() * nm3.length); 64 rnd9 = Math.floor(Math.random() * nm2.length); 65 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm3[rnd7] + nm2[rnd6] + nm3[rnd8] + nm2[rnd9] + nm4[rnd5]; 66 } 67 } 68 br = document.createElement('br'); 69 element.appendChild(document.createTextNode(names)); 70 element.appendChild(br); 71 } 72 if (document.getElementById("result")) { 73 document.getElementById("placeholder").removeChild(document.getElementById("result")); 74 } 75 document.getElementById("placeholder").appendChild(element); 76 }