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

narniaFauns.js (2641B)


      1 var nm1 = ["", "", "", "d", "f", "h", "l", "m", "n", "ph", "t", "v"];
      2 var nm2 = ["a", "o", "u", "a", "o", "u", "a", "o", "u", "a", "o", "u", "a", "o", "u", "a", "o", "u", "a", "o", "u", "a", "o", "u", "au", "oa", "ua", "aa"];
      3 var nm3 = ["lm", "ln", "ll", "lr", "l", "lb", "mm", "mn", "mr", "mt", "n", "nn", "nt", "nm", "rr", "rn", "rm", "rl", "rv", "r", "s", "ss", "sm", "sl", "st"];
      4 var nm4 = ["ns", "ms", "ls", "s", "s", "s", "s", "s", "s", "s"];
      5 var nm5 = ["ia", "a", "ea", "ia", "ia"];
      6 var check = ["anal", "anus", "arse", "ass", "balls", "bastard", "biatch", "bigot", "bitch", "bollock", "bollok", "boner", "boob", "bugger", "bum", "butt", "clitoris", "cock", "coon", "crap", "cunt", "damn", "dick", "dildo", "dyke", "fag", "feck", "felching", "fellate", "fellatio", "flange", "fuck", "gay", "lust", "goddamn", "homo", "jackass", "jerk", "jizz", "knobend", "labia", "muff", "nigga", "nigger", "penis", "piss", "poop", "prick", "pube", "pussy", "queer", "scrotum", "sex", "shit", "slut", "smegma", "spunk", "tit", "tosser", "turd", "twat", "vagina", "wank", "whore", "wtf"];
      7 var br = "";
      8 
      9 function nameGen(type) {
     10     $('#placeholder').css('textTransform', 'capitalize');
     11     var tp = type;
     12     var element = document.createElement("div");
     13     element.setAttribute("id", "result");
     14     for (i = 0; i < 10; i++) {
     15         rnd = Math.random() * nm1.length | 0;
     16         rnd2 = Math.random() * nm2.length | 0
     17         rnd3 = Math.random() * nm3.length | 0;
     18         if (tp === 1) {
     19             rnd4 = Math.random() * nm5.length | 0;
     20             names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm5[rnd4];
     21             for (j = 0; j < check.length; j++) {
     22                 while (names === check[j]) {
     23                     rnd = Math.floor(Math.random() * nm1.length);
     24                     names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm5[rnd4];
     25                 }
     26             }
     27         } else {
     28             rnd4 = Math.random() * nm4.length | 0;
     29             names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + "u" + nm4[rnd4];
     30             for (j = 0; j < check.length; j++) {
     31                 while (names === check[j]) {
     32                     rnd = Math.floor(Math.random() * nm1.length);
     33                     names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + "u" + nm4[rnd4];
     34                 }
     35             }
     36         }
     37         br = document.createElement('br');
     38         element.appendChild(document.createTextNode(names));
     39         element.appendChild(br);
     40     }
     41     if (document.getElementById("result")) {
     42         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     43     }
     44     document.getElementById("placeholder").appendChild(element);
     45 }