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

animalNames.js (6249B)


      1 var nm1 = ["Alba", "Alli", "Ana", "Ante", "Arma", "Barra", "Bea", "Buffa", "Cani", "Cari", "Cate", "Coyo", "Cri", "Cro", "Croco", "Drago", "Ele", "Feli", "Fla", "Flami", "Gaze", "Gira", "Hexa", "Hone", "Jagu", "Komo", "Leo", "Locu", "Mana", "Moo", "Pa", "Pea", "Peli", "Phea", "Porcu", "Rhi", "Rhino", "Sala", "Sco", "Sku", "Sna", "Snai", "Spa", "Spi", "Squi", "Sti", "Toa", "Ursa", "Vi", "Wea", "Wha", "Woo"];
      2 var nm2 = ["b", "c", "d", "f", "g", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "z", "b", "c", "d", "f", "g", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "z", "br", "cr", "dr", "gr", "kr", "pr", "sr", "st", "str", "bl", "cl", "fl", "gl", "kl", "pl", "sl", "vl", "cs", "ds", "fs", "gs", "ks", "ls", "ms", "ns", "ps", "rs", "ss", "ts", "bb", "cc", "dd", "ff", "gg", "kk", "ll", "mm", "nn", "pp", "rr", "ss", "tt", "ww", "zz"];
      3 var nm3 = ["a", "o", "i", "e", "u", "aa", "oo", "ee", "au", "ou", "ea", "eo"];
      4 var nm4 = ["", "", "c", "d", "k", "l", "m", "n", "p", "r", "s", "t", "x", "cs", "ks", "ps", "rs", "ts", "st"];
      5 var nm5 = ["", "", "", "", "", "a", "o", "i", "e", "u", "ee", "ea", "eo"];
      6 var nm6 = ["Alb", "All", "Alp", "Ant", "Arach", "Arm", "Bab", "Badg", "Barr", "Beav", "Bis", "Buff", "Cam", "Cat", "Chick", "Cobr", "Coy", "Croc", "Dol", "Don", "Drag", "Eag", "El", "Eleph", "Fal", "Falc", "Fer", "Flam", "Gaz", "Ger", "Gir", "Guin", "Hedg", "Hex", "Hipp", "Hor", "Horn", "Humm", "Hyen", "Jag", "Kang", "Koal", "Kom", "Komod", "Leop", "Lob", "Mag", "Mall", "Mant", "Mon", "Mong", "Mos", "Mosq", "Mul", "Oct", "Ost", "Pan", "Pand", "Parr", "Pel", "Pen", "Peng", "Pon", "Por", "Quad", "Rab", "Rabb", "Rac", "Racc", "Rhin", "Sal", "Sar", "Scor", "Ser", "Serp", "Skun", "Snak", "Spar", "Sparr", "Spid", "Stin", "Sting", "Ter", "Term", "Tetr", "Tuc", "Tur", "Turt", "Vul", "Vult", "Wal", "Wall", "War", "Wart", "Wol", "Wolv", "Wom", "Wor", "Zeb"];
      7 var nm7 = ["abura", "aby", "acle", "acuda", "adger", "adillo", "alo", "amander", "amel", "ander", "anzee", "api", "arak", "aroo", "aros", "atee", "atross", "ecta", "een", "ela", "elope", "ena", "eon", "ephant", "erine", "erpillar", "eton", "ey", "ibia", "ibou", "ican", "ida", "igator", "illa", "ing", "ingale", "ingo", "ish", "itar", "eleon", "ypus", "ite", "ium", "oceros", "oda", "odile", "odo", "onite", "oon", "oose", "opotamus", "opus", "ora", "orb", "os", "osaur", "ossum", "oth", "owary", "oyote", "uar", "uin", "uito", "upine", "utor", "ybara", "yte"];
      8 var nm8 = ["bat", "bil", "boon", "bug", "dine", "fly", "meleon", "guin", "hawk", "hog", "hopper", "key", "king", "ling", "madillo", "mingo", "mite", "nea", "pecker", "phant", "phin", "pie", "pion", "quito", "raffe", "ray", "rilla", "roach", "ron", "sel", "ster", "tile", "topus", "vark", "whale", "wing", "zelle"];
      9 var nm9 = ["b", "c", "d", "f", "g", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "z", "b", "c", "d", "f", "g", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "z", "br", "cr", "dr", "gr", "kr", "pr", "sr", "st", "str", "bl", "cl", "fl", "gl", "kl", "pl", "sl", "vl"];
     10 
     11 function nameGen() {
     12     $('#placeholder').css('textTransform', 'capitalize');
     13     var br = "";
     14     var element = document.createElement("div");
     15     element.setAttribute("id", "result");
     16     for (i = 0; i < 12; i++) {
     17         if (i < 2) {
     18             rnd = Math.floor(Math.random() * nm1.length);
     19             rnd2 = Math.floor(Math.random() * nm2.length);
     20             rnd3 = Math.floor(Math.random() * nm3.length);
     21             rnd4 = Math.floor(Math.random() * nm4.length);
     22             rnd5 = Math.floor(Math.random() * nm5.length);
     23             if (rnd4 < 2) {
     24                 rnd5 = 0;
     25             }
     26             nm = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm4[rnd4] + nm5[rnd5];
     27         } else if (i < 4) {
     28             rnd = Math.floor(Math.random() * nm6.length);
     29             rnd2 = Math.floor(Math.random() * nm3.length);
     30             rnd3 = Math.floor(Math.random() * nm2.length);
     31             rnd4 = Math.floor(Math.random() * nm3.length);
     32             rnd5 = Math.floor(Math.random() * nm4.length);
     33             rnd6 = Math.floor(Math.random() * nm5.length);
     34             if (rnd5 < 2) {
     35                 rnd6 = 0;
     36             }
     37             nm = nm6[rnd] + nm3[rnd2] + nm2[rnd3] + nm3[rnd4] + nm4[rnd5] + nm5[rnd6];
     38         } else if (i < 6) {
     39             rnd = Math.floor(Math.random() * nm9.length);
     40             rnd2 = Math.floor(Math.random() * nm3.length);
     41             rnd3 = Math.floor(Math.random() * nm4.length);
     42             while (rnd3 < 2) {
     43                 rnd3 = Math.floor(Math.random() * nm4.length);
     44             }
     45             rnd4 = Math.floor(Math.random() * nm7.length);
     46             nm = nm9[rnd] + nm3[rnd2] + nm4[rnd3] + nm7[rnd4];
     47         } else if (i < 8) {
     48             rnd = Math.floor(Math.random() * nm9.length);
     49             rnd2 = Math.floor(Math.random() * nm3.length);
     50             rnd3 = Math.floor(Math.random() * nm4.length);
     51             rnd4 = Math.floor(Math.random() * nm5.length);
     52             if (rnd3 < 2) {
     53                 rnd4 = 0;
     54             }
     55             rnd5 = Math.floor(Math.random() * nm8.length);
     56             nm = nm9[rnd] + nm3[rnd2] + nm4[rnd3] + nm5[rnd4] + nm8[rnd5];
     57         } else if (i < 10) {
     58             rnd = Math.floor(Math.random() * nm9.length);
     59             rnd2 = Math.floor(Math.random() * nm3.length);
     60             rnd3 = Math.floor(Math.random() * nm2.length);
     61             rnd4 = Math.floor(Math.random() * nm3.length);
     62             rnd5 = Math.floor(Math.random() * nm4.length);
     63             rnd6 = Math.floor(Math.random() * nm5.length);
     64             if (rnd5 < 2) {
     65                 rnd6 = 0;
     66             }
     67             nm = nm9[rnd] + nm3[rnd2] + nm2[rnd3] + nm3[rnd4] + nm4[rnd5] + nm5[rnd6];
     68         } else {
     69             rnd = Math.floor(Math.random() * nm6.length);
     70             rnd2 = Math.floor(Math.random() * nm7.length);
     71             nm = nm6[rnd] + nm7[rnd2];
     72         }
     73         br = document.createElement('br');
     74         element.appendChild(document.createTextNode(nm));
     75         element.appendChild(br);
     76     }
     77     if (document.getElementById("result")) {
     78         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     79     }
     80     document.getElementById("placeholder").appendChild(element);
     81 }