Module:qhv-headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 119: Line 119:
if not args["noinf"] then
if not args["noinf"] then
if args["gen"] then
local genitive = args["gen"] and {args["gen"]} or generate_gen_sg(args[2])
args["gen"] = {args["gen"]}
else
args["gen"] = generate_gen_sg(args[2])
end
for i, form in ipairs(args["gen"]) do
for i, form in ipairs(genitive) do
args["gen"][i] = {term = form}
genitive[i] = {term = form}
end
end
args["gen"].label = "genitive"
args["gen"].label = "genitive"
table.insert(data.inflections, args["gen"])
table.insert(data.inflections, genitive)
end
end

Navigation menu