swTrandoshanNames.js (5740B)
1 var nm1 = ["", "", "", "", "", "", "", "", "", "", "b", "bh", "bl", "br", "c", "ch", "cl", "cr", "d", "dh", "dr", "fr", "g", "gh", "gr", "grr", "gwh", "h", "hr", "hss", "j", "k", "khr", "kl", "kr", "l", "m", "mr", "n", "nr", "nrr", "p", "pr", "q", "r", "s", "sh", "sk", "sl", "ss", "ssk", "sstr", "st", "thr", "t", "tr", "tsh", "tss", "v", "vr", "w", "x", "z"]; 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", "y", "y", "y", "uu", "ee", "aa", "oo", "ai", "ui", "ey"]; 3 var nm3 = ["ch", "cr", "d", "dfr", "dg", "g", "gg", "gr", "hhm", "hs", "k", "khss", "kk", "kr", "ks", "kt", "l", "ld", "lf", "ll", "lt", "m", "mr", "n", "nd", "ng", "nk", "nn", "nt", "nv", "ph", "qz", "r", "rd", "rk", "rn", "rr", "rth", "rtsn", "s", "sd", "sh", "sn", "ss", "sskr", "t", "tl", "tt", "v", "vr", "z", "zzm"]; 4 var nm4 = ["", "", "", "", "", "", "", "", "", "", "b", "c", "d", "ff", "g", "gg", "h", "hk", "hssk", "k", "kk", "kss", "kt", "l", "ll", "mx", "n", "nk", "pp", "q", "r", "rg", "rj", "rk", "rkh", "rq", "rr", "rrng", "rrsk", "rsk", "rssk", "rst", "rt", "rth", "s", "sh", "shk", "sk", "ss", "ssc", "ssh", "ssk", "sskk", "sst", "t", "tch", "tt", "v", "w", "x", "xx", "z"]; 5 var nm5 = ["", "", "", "", "", "", "", "", "", "", "b", "bh", "bl", "cl", "ch", "cr", "dh", "dr", "f", "fr", "fl", "g", "gh", "gr", "h", "hs", "k", "kh", "kl", "kn", "km", "l", "m", "ms", "mss", "mh", "n", "ns", "nh", "p", "pr", "q", "r", "rh", "s", "sh", "ss", "sl", "sm", "st", "t", "th", "tr", "ts", "v", "w", "z"]; 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", "a", "e", "i", "o", "u", "y", "y", "y", "uu", "ee", "aa", "oo", "ai"]; 7 var nm7 = ["ch", "d", "dw", "f", "ff", "g", "gg", "gl", "h", "hh", "hr", "hs", "hss", "k", "ks", "khs", "l", "ls", "lss", "ll", "lf", "lm", "ln", "ld", "m", "ml", "n", "nl", "nd", "nc", "ph", "r", "rs", "rl", "rt", "rth", "rg", "sl", "ss", "sh", "st", "t", "th", "tt", "tl", "v", "z"]; 8 var nm8 = ["", "", "", "", "", "", "", "", "", "", "c", "d", "f", "ff", "h", "k", "kss", "l", "m", "n", "nn", "rkh", "s", "ss", "sh", "ssh", "t", "th"]; 9 var nm9 = ["", "", "", "", "", "", "", "b", "br", "d", "dr", "f", "g", "gr", "h", "hs", "hss", "hsk", "j", "jh", "jhc", "k", "kl", "m", "n", "r", "s", "ss", "sm", "st", "sv", "t", "tr", "ts", "v", "vl", "z"]; 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", "y", "y", "y", "ea", "aa", "oo", "eo", "ee", "au"]; 11 var nm11 = ["br", "b", "cr", "cd", "d", "dg", "dm", "dr", "dr", "g", "gg", "gr", "gs", "gl", "k", "kk", "kr", "ks", "kl", "l", "ll", "ls", "m", "mm", "mr", "ms", "n", "nn", "ns", "nl", "ng", "q", "r", "rs", "rz", "rd", "rr", "s", "ss", "sd", "sl", "sg", "tn", "v", "vv"]; 12 var nm12 = ["", "", "", "", "", "", "", "", "", "", "c", "gg", "gh", "hk", "k", "kt", "l", "n", "r", "rn", "rs", "s", "sss", "st", "ssk", "sch", "ss", "t", "tch", "z"]; 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 % 2 != 0) { 25 while (rnd10 < 7) { 26 rnd10 = Math.floor(Math.random() * nm12.length); 27 } 28 namelast = nm9[rnd7] + nm10[rnd8] + nm12[rnd10]; 29 } else { 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 } 34 if (tp === 1) { 35 rnd = Math.floor(Math.random() * nm5.length); 36 rnd2 = Math.floor(Math.random() * nm6.length); 37 rnd5 = Math.floor(Math.random() * nm8.length); 38 if (i < 3) { 39 while (rnd < 10) { 40 rnd = Math.floor(Math.random() * nm5.length); 41 } 42 names = nm5[rnd] + nm6[rnd2] + nm8[rnd5] + " " + namelast; 43 } else { 44 rnd3 = Math.floor(Math.random() * nm7.length); 45 rnd4 = Math.floor(Math.random() * nm6.length); 46 names = nm5[rnd] + nm6[rnd2] + nm7[rnd3] + nm6[rnd4] + nm8[rnd5] + " " + namelast; 47 } 48 } else { 49 rnd = Math.floor(Math.random() * nm1.length); 50 rnd2 = Math.floor(Math.random() * nm2.length); 51 rnd5 = Math.floor(Math.random() * nm4.length); 52 if (i < 5) { 53 while (rnd5 < 10) { 54 rnd5 = Math.floor(Math.random() * nm4.length); 55 } 56 names = nm1[rnd] + nm2[rnd2] + nm4[rnd5] + " " + namelast; 57 } else { 58 rnd3 = Math.floor(Math.random() * nm3.length); 59 rnd4 = Math.floor(Math.random() * nm2.length); 60 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd5] + " " + namelast; 61 } 62 } 63 br = document.createElement('br'); 64 element.appendChild(document.createTextNode(names)); 65 element.appendChild(br); 66 } 67 if (document.getElementById("result")) { 68 document.getElementById("placeholder").removeChild(document.getElementById("result")); 69 } 70 document.getElementById("placeholder").appendChild(element); 71 }