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

pfAzarketi.js (3709B)


      1 var nm1 = ["", "", "", "c", "d", "h", "l", "m", "n", "r", "t", "v", "y", "z"];
      2 var nm2 = ["a", "a", "e", "i", "i", "o", "o", "u"];
      3 var nm3 = ["b", "br", "h", "l", "lm", "lr", "nk", "r", "rk", "rl", "rr", "s", "ss", "st", "t", "th", "y", "z"];
      4 var nm4 = ["a", "e", "i", "o", "u"];
      5 var nm5 = ["h", "l", "ll", "n", "r", "s", "ss", "t", "z"];
      6 var nm6 = ["ua", "ia", "ei", "a", "a", "e", "e", "i", "i", "o", "u", "a", "a", "e", "e", "i", "i", "o", "u", "a", "a", "e", "e", "i", "i", "o", "u", "a", "a", "e", "e", "i", "i", "o", "u"];
      7 var nm7 = ["", "", "", "", "", "h", "l", "n", "s", "t", "y", "z"];
      8 var br = "";
      9 
     10 function nameGen(type) {
     11     var nm8 = ["Abaft", "Aft", "Air", "Alluvial", "Anabranch", "Archipelago", "Arroyo", "Astern", "Atmosphere", "Atoll", "Autumn", "Avalanche", "Barchan", "Barrier", "Basin", "Bay", "Bayou", "Beach", "Bearing", "Bight", "Blizzard", "Bluff", "Bornhardt", "Breeze", "Canyon", "Cape", "Cascade", "Cenote", "Chinook", "Cirrus", "Cliff", "Climate", "Cloud", "Course", "Cove", "Crater", "Crevasse", "Cuesta", "Cumulus", "Current", "Cyclone", "Dell", "Delta", "Desert", "Dew", "Dome", "Draft", "Drift", "Drought", "Dune", "Erg", "Estuary", "Fathom", "Fiddle", "Field", "Fjord", "Flood", "Flurry", "Fog", "Forest", "Fork", "Freeze", "Frost", "Gale", "Genoa", "Geo", "Geyser", "Glacier", "Glen", "Gorge", "Graben", "Grove", "Gulf", "Gully", "Gust", "Guyot", "Hail", "Halo", "Halyard", "Harbor", "Haze", "Hill", "Hull", "Hurricane", "Ice", "Island", "Isle", "Islet", "Isthmus", "Jib", "Karst", "Kedge", "Keel", "Ketch", "Knot", "Lagoon", "Lake", "Leeway", "Lightning", "Loch", "Luff", "Marine", "Marsh", "Meadow", "Meander", "Meridian", "Mesa", "Monsoon", "Moraine", "Mountain", "Nunatak", "Oasis", "Ocean", "Peak", "Plain", "Prairie", "RAvine", "Rain", "Rainbow", "Rapids", "Reef", "Reservoir", "Ria", "Ridge", "Riffle", "Rift", "River", "Sea", "Sleet", "Sloop", "Snow", "Source", "Spring", "Sternway", "Storm", "Strait", "Summer", "Terrace", "Thunder", "Tidal", "Tide", "Tributary", "Tsunami", "Typhoon", "Valley", "Vapor", "Veer", "Volcano", "Wake", "Waterfall", "Wind", "Windward", "Winter"];
     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 (i < 6) {
     18             rnd = Math.random() * nm8.length | 0;
     19             nMs = nm8[rnd];
     20             nm8.splice(rnd, 1);
     21         } else {
     22             nameMas();
     23             while (nMs === "") {
     24                 nameMas();
     25             }
     26         }
     27         br = document.createElement('br');
     28         element.appendChild(document.createTextNode(nMs));
     29         element.appendChild(br);
     30     }
     31     if (document.getElementById("result")) {
     32         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     33     }
     34     document.getElementById("placeholder").appendChild(element);
     35 }
     36 
     37 function nameMas() {
     38     nTp = Math.random() * 6 | 0;
     39     rnd = Math.random() * nm1.length | 0;
     40     rnd2 = Math.random() * nm2.length | 0;
     41     rnd3 = Math.random() * nm3.length | 0;
     42     rnd4 = Math.random() * nm6.length | 0;
     43     rnd7 = Math.random() * nm7.length | 0;
     44     while (rnd2 < 5 && rnd4 < 3) {
     45         rnd2 = Math.random() * nm2.length | 0;
     46     }
     47     if (nTp < 4) {
     48         nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm6[rnd4] + nm7[rnd7];
     49     } else {
     50         rnd5 = Math.random() * nm5.length | 0;
     51         rnd6 = Math.random() * nm4.length | 0;
     52         while (rnd6 < 3 && rnd4 < 3) {
     53             rnd4 = Math.random() * nm6.length | 0;
     54         }
     55         nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm6[rnd4] + nm5[rnd5] + nm6[rnd4] + nm7[rnd7];
     56     }
     57     testSwear(nMs);
     58 }