"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.normalizeName=normalizeName;exports.generateName=generateName;var _lodash=require("lodash");

var _enAdjectives=_interopRequireDefault(require("./en-adjectives.json"));
var _enNouns=_interopRequireDefault(require("./en-nouns.json"));

function normalizeName(name){
return(0,_lodash.deburr)(name).
toLowerCase().
split(/[^a-z0-9]+/gim).
filter(s=>s.length>0).
join("-");
}

function generateName(){
function getRandomInt(min,max){
return Math.floor(Math.random()*(max-min))+min;
}

return(
_enAdjectives.default[getRandomInt(0,_enAdjectives.default.length+1)]+
"-"+
_enNouns.default[getRandomInt(0,_enNouns.default.length+1)]+
"-"+
getRandomInt(1,99));

}