Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 73: | Line 73: | ||
local sv = nil | local sv = nil | ||
local decl_type = {} | local decl_type = {} | ||
local gender, word = args[1], args[2] | local gender, word = args[1], args[2] | ||
local quality = args[3]~=nil and args[3] or detect_quality(word) | local quality = args[3]~=nil and args[3] or detect_quality(word) | ||
| Line 80: | Line 79: | ||
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 .. "+ː?)" .. xc .. "*" | local pattern = xc .. "?(" .. vowels .. "+ː?)" .. xc .. "*" | ||
x, y, z = gsub(syll_count(word), pattern, "%1", 1) | |||
return x | return x .. "·" .. y .. "·" .. z | ||
end | end | ||
return export | return export | ||