Module:qhv-noun: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 36: Line 36:
local decl = number .. "-" .. class
local decl = number .. "-" .. class
return decl, {sub(word, 1, -(#endings_reverse[decl] + 1))}
return decl, {sub(word, 1, -(#endings_reverse[decl] + 1))}
elseif require("Module:qhv-pron").write_stress(word, true) == 1 then
elseif find(word, "[aāiu]?[aāeēoōīūȳ]s$") then
if find(word, "[aāeēoōīūȳ].$") then
if require("Module:qhv-pron").write_stress(word, true) == 1 then
return "3-s-h"
return "5-a"
end
end
return "3-s-h"
else
else
for ending, decl in pairs(endings) do
for ending, decl in pairs(endings) do