Module:siwa-noun: Difference between revisions

No edit summary
No edit summary
Line 41: Line 41:
stressed = dedigraphicize(stressed)
stressed = dedigraphicize(stressed)
if (match(stressed, vowels .. vowels .. vowels .. "?") or match(mw.ustring.toNFD(stressed), HOOK)) and n<3 then
if (match(stressed, vowels .. vowels .. vowels .. "?") or match(mw.ustring.toNFD(stressed), HOOK) or match(stressed, "õu")) and n<3 then
return "l" -- long nouns  
return "l" -- long nouns  
elseif (match(stressed, vowels .. vowels .. vowels .. "?") or match(mw.ustring.toNFD(stressed), HOOK)) or n>=3 then
elseif (match(stressed, vowels .. vowels .. vowels .. "?") or match(mw.ustring.toNFD(stressed), HOOK) or match(stressed, "õu")) or n>=3 then
return "w" -- weak nouns
return "w" -- weak nouns
else return "s" -- strong nouns
else return "s" -- strong nouns