Module:snon-headword: Difference between revisions

Undo revision 502339 by Sware (talk)
Tag: Undo
No edit summary
Line 119: Line 119:
local function make_plural(term)
local function make_plural(term)
return {{term .. "arr"}, {term .. "ar", l = "VE"}}
return {{term = term .. "arr"}, {term = term .. "ar", l = "VE"}}
end
end
Line 194: Line 194:
end
end


local new_plurals = {}
for _, pl in ipairs(plurals) do
for _, pl in ipairs(plurals) do
if pl.term == "+" then
if pl.term == "+" then
-- make_plural should never return nil
for _, generated_pl in ipairs(make_plural(lemma)) do
pl = make_plural(lemma)
table.insert(new_plurals, generated_pl)
end
else
table.insert(new_plurals, pl)
end
end
end
end
plurals = new_plurals


insert_noun_inflection(plurals, "plural", "p")
insert_noun_inflection(plurals, "plural", "p")