Module:qhv-headword: Difference between revisions
No edit summary |
No edit summary |
||
| Line 119: | Line 119: | ||
if not args["noinf"] then | if not args["noinf"] then | ||
args["gen"] = generate_gen_sg(args[2]) | |||
for i, form in ipairs( | for i, form in ipairs(args["gen"]) do | ||
args["gen"][i] = {term = form} | |||
end | end | ||
args["gen"].label = "genitive" | |||
table.insert(data.inflections, | table.insert(data.inflections, args["gen"]) | ||
end | end | ||
if data.pos_category == "nouns" and not args["noinf"] then | if data.pos_category == "nouns" and not args["noinf"] then | ||
if not args["nopl"] then | if not args["nopl"] then | ||
args["pl"] = generate_nom_pl(args[2]) | |||
for i, form in ipairs( | for i, form in ipairs(args["pl"]) do | ||
args["pl"][i] = {term = form} | |||
end | end | ||
args["pl"].label = "plural" | |||
table.insert(data. | table.insert(data.inflections, args["pl"]) | ||
end | end | ||
end | end | ||