Module:qhv-headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 113: Line 113:
if args[1][1] ~= "p" then
if args[1][1] ~= "p" then
-- Genitive
-- Genitive
if not args[2][1] then
if #generate_gen_sg(PAGENAME) == 1 then
table.insert(args[2], table.concat(generate_gen_sg(PAGENAME)))
table.insert(args[2], table.concat(generate_gen_sg(PAGENAME)))
end
end
Line 125: Line 125:
-- Plural
-- Plural
if not args[3][1] and data.pos_category == "nouns" then
if #generate_nom_pl(PAGENAME) == 1 and data.pos_category == "nouns" then
table.insert(args[3], table.concat(generate_nom_pl(PAGENAME)))
table.insert(args[3], table.concat(generate_nom_pl(PAGENAME)))
end
end

Navigation menu