45,660
edits
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
} | } | ||
local | local gender_key = { | ||
[" | ["i"] = "in", | ||
[" | ["a"] = "an", | ||
} | } | ||
Line 68: | Line 68: | ||
data.heads = {args["head"]} | data.heads = {args["head"]} | ||
table.insert(data.genders, args[1] | table.insert(data.genders, gender_key[args[1]] or args[1]) | ||
if args[2] then table.insert(data.genders, args[2] | if args[2] then table.insert(data.genders, gender_key[args[2]] or args[2]) end | ||
data.inflections[1] = args.m | data.inflections[1] = args.m |