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 find(word, "[āēōīūȳ]s$") or (m_pron.write_stress(word, true) == 1) then
return "3-s-h", {sub(word, 1, -2)}
else
else
for ending, decl in pairs(endings) do
for ending, decl in pairs(endings) do
Line 44: Line 42:
end
end
end
end
end
if find(word, "[āēōīūȳ]s$") and (m_pron.write_stress(word, true) == 1) then
return "3-s-h", {sub(word, 1, -2)}
end
end
return "6", {word}
return "6", {word}