45,661
edits
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
local declension = decl .. "-" .. class | local declension = decl .. "-" .. class | ||
return declension, {sub(word, 1, -(#endings_reverse[declension] + 1))} | return declension, {sub(word, 1, -(#endings_reverse[declension] + 1))} | ||
else | |||
for ending, declension in pairs(endings) do | |||
if find(word, ending .. "$") then | |||
return declension, {sub(word, 1, -(#ending + 1))} | |||
end | |||
end | end | ||
-- No matches, assume sixth declension. Now check for reanalyzed paucals or collectives | |||
end | end | ||
end | end | ||
return export | return export |