45,625
edits
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
end | end | ||
local function plural(word | local function plural(word) | ||
local pl = {} | local pl = {} | ||
if word:match("[kh]wa$") or word:match("a$") then | |||
pl = {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 | ||
Line 54: | Line 53: | ||
if pos == "adv" then table.insert(data.categories, lang:getCanonicalName() .. " comparative " .. deabb[pos]) end ]=] | if pos == "adv" then table.insert(data.categories, lang:getCanonicalName() .. " comparative " .. deabb[pos]) end ]=] | ||
else | else | ||
table.insert(data.inflections, plural(word | table.insert(data.inflections, pl or plural(word)) | ||
end | end | ||