Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 35: | Line 35: | ||
term = gsub(term, "[ˌˈ]", "") | term = gsub(term, "[ˌˈ]", "") | ||
local xc = "[mnɲŋpbtdcɟkɡvðsɕzʑxɣhrlɬjw⁽ʰ⁾ʔː̥͡"..UNRELEASED.."]" | local xc = "[mnɲŋpbtdcɟkɡvðsɕzʑxɣhrlɬjw⁽ʰ⁾ʔː̥͡"..UNRELEASED.."]" | ||
local pattern = "(" .. xc .. "?" .. vowels .. "+ː? | local pattern = "(" .. xc .. "?" .. vowels .. "+ː?" .. xc .. "*)" | ||
return gsub(term, pattern, "%1") | return gsub(term, pattern, "%1") | ||
| Line 41: | Line 41: | ||
local function detect_quality(word) | local function detect_quality(word) | ||
local | local stressed, n = syll_count(word) | ||
if find(stressed, vowels .. vowels .. vowels .. "?") or find(stressed, "ː") or n>=3 then | if find(stressed, vowels .. vowels .. vowels .. "?") or find(stressed, "ː") or n>=3 then | ||
return "w" -- weak nouns | return "w" -- weak nouns | ||