Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 45: | Line 45: | ||
local function detect_quality(word) | local function detect_quality(word) | ||
local stressed, n = syll_count(word) | local stressed, n = syll_count(word) | ||
if | if gmatch(stressed, vowels .. vowels .. vowels .. "?") or gmatch(stressed, "ː") or n>=3 then | ||
return "w" -- weak nouns | return "w" -- weak nouns | ||
else return "s" -- strong nouns | else return "s" -- strong nouns | ||