Module:siwa-headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 20: Line 20:
}
}


local gender_names = {
local gender_key = {
["in"] = "inanimate",
["i"] = "in",
["an"] = "animate",
["a"] = "an",
}
}


Line 68: Line 68:
data.heads = {args["head"]}
data.heads = {args["head"]}
table.insert(data.genders, args[1] .. "n")
table.insert(data.genders, gender_key[args[1]] or args[1])
if args[2] then table.insert(data.genders, args[2] .. "n") end
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

Navigation menu