Module:qhv-headword: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 53: Line 53:
end
end


local function generate_gen_sg(word)
local function generate_gen_sg()
local genitive = {}
local genitive = {}
for alt in gmatch(word, "[^,]+") do
for alt in gmatch(require("Module:qhv-noun/head").pass_to_module("gen_sg"), "[^,]+") do
table.insert(genitive, alt)
table.insert(genitive, alt)
end
end
Line 61: Line 61:
end
end


local function generate_nom_pl(word)
local function generate_nom_pl()
local plural = {}
local plural = {}
for alt in gmatch(word, "[^,]+") do
for alt in gmatch(require("Module:qhv-noun/head").pass_to_module("nom_pl"), "[^,]+") do
table.insert(plural, alt)
table.insert(plural, alt)
end
end