45,647
edits
No edit summary |
No edit summary |
||
Line 55: | Line 55: | ||
end | end | ||
local function generate_gen_sg() | local function generate_gen_sg(word) | ||
local genitive = {} | local genitive = {} | ||
for alt in gmatch(require("Module:qhv-noun/head").pass_to_module("gen_sg"), "[^,]+") do | for alt in gmatch(require("Module:qhv-noun/head").pass_to_module("gen_sg", word), "[^,]+") do | ||
table.insert(genitive, alt) | table.insert(genitive, alt) | ||
end | end | ||
Line 63: | Line 63: | ||
end | end | ||
local function generate_nom_pl() | local function generate_nom_pl(word) | ||
local plural = {} | local plural = {} | ||
for alt in gmatch(require("Module:qhv-noun/head").pass_to_module("nom_pl"), "[^,]+") do | for alt in gmatch(require("Module:qhv-noun/head").pass_to_module("nom_pl", word), "[^,]+") do | ||
table.insert(plural, alt) | table.insert(plural, alt) | ||
end | end | ||
Line 102: | Line 102: | ||
local params = { | local params = { | ||
[1] = {default = detect_gender(PAGENAME)}, | [1] = {default = detect_gender(PAGENAME)}, | ||
[2] = {default = PAGENAME}, | |||
["nopl"] = {}, | ["nopl"] = {}, | ||
["noinf"] = {type = "boolean", default = false}, | ["noinf"] = {type = "boolean", default = false}, |