Module:siwa-noun: Difference between revisions

No edit summary
No edit summary
Line 43: Line 43:
--word = gsub(word, "[ˌˈ]", "")
--word = gsub(word, "[ˌˈ]", "")
local pattern = "(" .. xc .. "?" .. vowels .. "+ː?" .. xc .. "*)"
local pattern = "(" .. xc .. "?" .. vowels .. "+ː?" .. xc .. "*)"
syllable, n = gsub(word, pattern, "%1")
syllable, n = "a", 5
syllable = match(syllable, pattern)
--syllable, n = gsub(word, pattern, "%1")
--syllable = match(syllable, pattern)
return syllable, n, word
return syllable, n, word