Module:qhv-headword: Difference between revisions
No edit summary |
No edit summary |
||
| Line 59: | Line 59: | ||
local function generate_gen_sg(word, rc, rp) | local function generate_gen_sg(word, rc, rp) | ||
local genitive = {} | local genitive = {} | ||
for alt in gmatch(require("Module:qhv-noun/head").pass_to_module((rc and " | local r = rc and "gen_co" | ||
for alt in gmatch(require("Module:qhv-noun/head").pass_to_module((rc and "gen_co" or rp and "gen_pa" or "gen_sg"), word), "[^,]+") do | |||
table.insert(genitive, alt) | table.insert(genitive, alt) | ||
end | end | ||