Module:Sandbox/User:Teamtoto/NameGenerator/Names

local p = {}

local names = { ['crab'] = { ['old'] = 0, ['prefixes'] = {'ma', 'ha', 'hi', 'bo', 'gi', 'aga', 'aco', 'ca', 'ha', 'ja', 'sa', 'mu', 'te', 'za', 'ba', 'di', 'so', 'y', 'rho'}, ['minprefix'] = 1, ['maxprefix'] = 1, ['infixes']  = {'go', 'mil', 'nni', 'sdru', 'l', 'rtha', 'ggi', 'mpsi', 'bni', 'tra', 'tti', 'ra', 'rca', 'do', 'pho', 'ze', 'sgo'}, ['mininfix'] = 1, ['maxinfix'] = 2, ['postfixes'] = {'crab'}, ['minpostfix'] = 1, ['maxpostfix'] = 1, ['wise'] = {'Wise', 'Great', 'Sage', 'Judicious', 'Giant', 'Dense', 'Thick', 'Ornately-Shelled'}, ['mayor'] = {'king', 'mayor', 'elder'} },

['kingcrab'] = { ['old'] = 1, ['prefixes'] = {"k", "t", "x", "c", "ki", "ti", "ci", "xi"}, ['prefixamt'] = '1d10-1', ['infixes']  = {"cl", "kl", "gi", "gli", "cli", "xi", "xi"}, ['infixamt'] = '1d4', ['postfixes'] = {"kv", "tx", "t", "k", "c", "x", "z"}, ['postfixamt'] = '1d3-1', ['noun'] = ', the ', ['titlenouns'] = {"many-legged", "one-clawed", "massive", "echoing", "frentic", "shell-cracked"}, ['titleseparator'] = ' Eyeless King Crab ', ['titleverbs'] = {"Skuttler", "Lord", "Ancient", "Deepcrawler", "Goliath", "Patriarch"}, ['hyphenationchance'] = 15, ['twonamechance'] = 1 } }

function p.get(tablename) var = names[tablename] if var == nil then error('There was no name generator of that name!') else return var end end

return p