offline-fantasy-name-generators

Offline version of www.fantasynamegenerators.com
git clone https://git.neptards.moe/neptards/offline-fantasy-name-generators.git
Log | Files | Refs | README

drWhoSlitheenNames.js (3782B)


      1 var nm1 = ["B", "Bl", "Br", "D", "Dr", "Gr", "G", "Gl", "J", "K", "Kr", "L", "S", "Sr", "Sl", "Tr", "Tl"];
      2 var nm2 = ["a", "e", "i", "o", "u", "ee", "oo", "aa"];
      3 var nm3 = ["cra", "ckt", "ckto", "f", "ft", "ll", "lm", "ln", "m", "n", "ne", "p", "rm", "rn", "rs", "rst", "st", "s", "ss", "sp", "x", "xa"];
      4 var nm4 = ["B", "D", "F", "G", "K", "L", "M", "N", "R", "T", "V"];
      5 var nm5 = ["a", "e", "i", "o", "u", "y"];
      6 var nm6 = ["d", "f", "g", "gg", "l", "ll", "m", "mm", "ng", "nn", "r", "rr", "rm", "rn", "s", "ss", "x", "ze", "z"];
      7 var nm7 = ["B", "Bl", "D", "Dr", "F", "Fl", "G", "Gr", "Gl", "Kl", "L", "M", "N", "T"];
      8 var nm8 = ["bs", "dd", "gg", "gs", "ln", "lm", "ls", "n", "ng", "rn", "rm", "rt", "tch", "sh", "ze"];
      9 var nm9 = ["B", "D", "G", "H", "K", "L", "M", "N", "P", "R", "S", "Sh"];
     10 var nm10 = ["a", "e", "i", "o", "u"];
     11 var nm11 = ["bb", "bl", "gl", "gr", "gg", "kr", "kl", "kk", "lm", "ln", "lr", "ll", "pp", "pr", "pl", "rr", "rl", "ss", "t", "tl"];
     12 var nm12 = ["d", "l", "m", "n", "s", "v"];
     13 var nm13 = ["eer", "en", "een"];
     14 var nm14 = ["B", "Bl", "D", "G", "Gl", "Gr", "Pl", "P", "Pr", "R", "S", "Sl", "T", "Tr"];
     15 var nm15 = ["f", "l", "m", "n", "r", "s", "y"];
     16 var nm16 = ["B", "Bl", "C", "Ch", "F", "Fl", "Gl", "G", "H", "K", "L", "M", "N", "P", "R", "Sl", "S"];
     17 var nm17 = ["ck", "dr", "ff", "g", "gr", "kk", "l", "ll", "m", "n", "pp", "rl", "st", "str", "tt", "th", "v", "z"];
     18 var nm18 = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "ar", "er", "et", "ez", "at", "az", "oz", "el", "al", "es", "as"];
     19 var nm19 = ["een", "ene"];
     20 
     21 function nameGen() {
     22     $('#placeholder').css('textTransform', 'capitalize');
     23     var br = "";
     24     var element = document.createElement("div");
     25     element.setAttribute("id", "result");
     26     for (i = 0; i < 10; i++) {
     27         rnd = Math.floor(Math.random() * nm1.length);
     28         rnd2 = Math.floor(Math.random() * nm2.length);
     29         rnd3 = Math.floor(Math.random() * nm3.length);
     30         rnd4 = Math.floor(Math.random() * nm4.length);
     31         rnd5 = Math.floor(Math.random() * nm5.length);
     32         rnd6 = Math.floor(Math.random() * nm6.length);
     33         rnd7 = Math.floor(Math.random() * nm7.length);
     34         rnd8 = Math.floor(Math.random() * nm10.length);
     35         rnd9 = Math.floor(Math.random() * nm8.length);
     36         rnd10 = Math.floor(Math.random() * nm9.length);
     37         rnd11 = Math.floor(Math.random() * nm10.length);
     38         rnd12 = Math.floor(Math.random() * nm11.length);
     39         rnd13 = Math.floor(Math.random() * nm10.length);
     40         rnd14 = Math.floor(Math.random() * nm12.length);
     41         rnd15 = Math.floor(Math.random() * nm13.length);
     42         rnd16 = Math.floor(Math.random() * nm14.length);
     43         rnd17 = Math.floor(Math.random() * nm10.length);
     44         rnd18 = Math.floor(Math.random() * nm15.length);
     45         rnd19 = Math.floor(Math.random() * nm16.length);
     46         rnd20 = Math.floor(Math.random() * nm10.length);
     47         rnd21 = Math.floor(Math.random() * nm17.length);
     48         rnd22 = Math.floor(Math.random() * nm18.length);
     49         rnd23 = Math.floor(Math.random() * nm19.length);
     50         names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + " " + nm4[rnd4] + nm5[rnd5] + nm6[rnd6] + " " + nm7[rnd7] + nm10[rnd8] + nm8[rnd9] + " " + nm9[rnd10] + nm10[rnd11] + nm11[rnd12] + nm10[rnd13] + nm12[rnd14] + nm13[rnd15] + "-" + nm14[rnd16] + nm10[rnd17] + nm15[rnd18] + " " + nm16[rnd19] + nm10[rnd20] + nm17[rnd21] + nm18[rnd22] + nm19[rnd23];
     51         br = document.createElement('br');
     52         element.appendChild(document.createTextNode(names));
     53         element.appendChild(br);
     54     }
     55     if (document.getElementById("result")) {
     56         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     57     }
     58     document.getElementById("placeholder").appendChild(element);
     59 }