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 w[n]:match("[kh]wa$") or w[n]:match("a$") then
--[[if w[n]:match("[kh]wa$") or w[n]:match("a$") then
w[n] = sub(w[n], 1, -1) .. "úr"
w[n] = sub(w[n], 1, -1) .. "úr"
elseif w[n]:match("ës$") or w[n]:match("uin$") or w[n]:match("[str]$") then
elseif w[n]:match("ës$") or w[n]:match("uin$") or w[n]:match("[str]$") then
Line 26: Line 26:
elseif w[n]:match("[nml]$") then
elseif w[n]:match("[nml]$") then
w[n] = w[n] .. "ur"
w[n] = w[n] .. "ur"
end
end]]
return {label = "plural", table.concat(w, " ")}
return {label = "plural", table.concat(w, " ")}
Line 59: Line 59:
table.insert(data.inflections, pl)
table.insert(data.inflections, pl)
else
else
table.insert(data.inflections, plural(word, 3))
table.insert(data.inflections, plural(word, args.n))
end
end
end
end

Navigation menu