Module:qhv-noun: Difference between revisions

no edit summary
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))}
elseif decl == "6" then -- sixth declension
else
if class then
for ending, declension in pairs(endings) do
return "6-" .. class, {sub(word, 1, -2)}
if find(word, ending .. "$") then
else
return declension, {sub(word, 1, -(#ending + 1))}
error("Noun class must be specified for sixth-declension nouns.")
end
end
end
-- No matches, assume sixth declension. Now check for reanalyzed paucals or collectives
end
end
end
end


return export
return export