Module:snon-headword: Difference between revisions

No edit summary
No edit summary
Line 194: Line 194:
end
end


-- Gather plurals, handling requests for default plurals.
local has_default_or_hash = false
for _, pl in ipairs(plurals) do
for _, pl in ipairs(plurals) do
if pl.term:find("^%+") or pl.term:find("#") then
if pl.term == "+" then
has_default_or_hash = true
-- make_plural should never return nil
break
pl = make_plural(lemma)
end
end
 
if has_default_or_hash then
for _, pl in ipairs(plurals) do
if pl.term == "+" then
-- make_plural should never return nil
pl = make_plural(lemma)
end
end
end
end
end