Module:kilta-headword: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 20: Line 20:
if word:match("[kh]wa$") or word:match("a$") then
if word:match("[kh]wa$") or word:match("a$") then
pl = {term = sub(word, 1, -1) .. "úr"}
pl = {sub(word, 1, -1) .. "úr"}
elseif word:match("ës$") or word:match("uin$") or word:match("[str]$") then
elseif word:match("ës$") or word:match("uin$") or word:match("[str]$") then
pl = {term = word .. "á"}
pl = {word .. "á"}
elseif word:match("[nml]$") then
elseif word:match("[nml]$") then
pl = {term = word .. "ur"}
pl = {word .. "ur"}
end
end