Module:qhv-verb: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 30: Line 30:
local decl = class
local decl = class
return decl, {sub(root, 1, (sub(root, -2) == ("lj" or "gh") and -3 or -2))}
return decl, {sub(root, 1, (sub(root, -2) == ("lj" or "gh") and -3 or -2))}
elseif m_data.astems[word] then return "a", {sub(root, -2)}
elseif find(root, "[eiou]$") or m_data.astems[word] then return "vowel", {sub(root, 1, -2)}
elseif find(root, "[eiou]$") then return "vowel", {sub(root, 1, -2)}
else
else
for ending, decl in pairs(endings) do
for ending, decl in pairs(endings) do

Navigation menu