Module:kilta-headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 22: Line 22:
if not n then n = 1 end
if not n then n = 1 end
if w[n]:match("[kh]wa$") or w[n]:match("a$") then
if w[2]:match("[kh]wa$") or w[2]:match("a$") then
w[n] = sub(w[n], 1, -1) .. "úr"
w[2] = sub(w[2], 1, -1) .. "úr"
elseif w[n]:match("ës$") or w[n]:match("uin$") or w[n]:match("[str]$") then
elseif w[2]:match("ës$") or w[2]:match("uin$") or w[2]:match("[str]$") then
w[n] = w[n] .. "á"
w[2] = w[2] .. "á"
elseif w[n]:match("[nml]$") then
elseif w[2]:match("[nml]$") then
w[n] = w[n] .. "ur"
w[2] = w[2] .. "ur"
end
end

Navigation menu