Module:NameGenerator: Difference between revisions

case insensitivity, probably
m fixed typo
Line 26: Line 26:
local postfixtable = naming[style]['Postfixes']
local postfixtable = naming[style]['Postfixes']
local hyphenationchance = naming[style]['HyphenationChance'] or 0
local hyphenationchance = naming[style]['HyphenationChance'] or 0
local twonameschance = naming[style]['TwoNamesChance'] or 0
local twonamechance = naming[style]['TwoNameChance'] or 0
local namecount
local namecount
if math.random(0, 100) < twonameschance then
if math.random(0, 100) < twonamechance then
  namecount = 2
  namecount = 2
else
else