Module:kilta-headword: Difference between revisions

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

Navigation menu