Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 39: | Line 39: | ||
local function detect_quality(word, stressed) | local function detect_quality(word, stressed) | ||
local n = syll_count(word) | local n = syll_count(word) | ||
if match(stressed, vowels .. vowels .. vowels .. "?") or match(mw.ustring.toNFD(stressed), HOOK) or n>=3 then | stressed = dedigraphicize(stressed) | ||
if (match(stressed, vowels .. vowels .. vowels .. "?") or match(mw.ustring.toNFD(stressed), HOOK)) or n>=3 then | |||
return "w" -- weak nouns | return "w" -- weak nouns | ||
elseif (match(stressed, vowels .. vowels .. vowels .. "?") or match(mw.ustring.toNFD(stressed), HOOK)) and n<3 then | elseif (match(stressed, vowels .. vowels .. vowels .. "?") or match(mw.ustring.toNFD(stressed), HOOK)) and n<3 then | ||