Module:qhv-headword: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 110: Line 110:
table.insert(data.categories, "High Valyrian " .. gender_names[args[1]] .. " " .. data.pos_category)
table.insert(data.categories, "High Valyrian " .. gender_names[args[1]] .. " " .. data.pos_category)
if not args["nopl"] then
args["gen"] = generate_gen_sg()
args["gen"] = generate_gen_sg()
for i, form in ipairs(args["gen"]) do
for i, form in ipairs(args["gen"]) do
args["gen"][i] = {term = form}
args["gen"][i] = {term = form}
end
args["gen"].label = "genitive"
table.insert(data.inflections, args["gen"])
if data.pos_category == "nouns" or not args["nopl"] then
args["pl"] = generate_nom_pl()
for i, form in ipairs(args["pl"]) do
args["pl"][i] = {term = form}
end
end
args["gen"].label = "genitive"
args["pl"].label = "plural"
table.insert(data.inflections, args["gen"])
table.insert(data.inflections, args["pl"])
end
end
end
end