45,646
edits
No edit summary |
No edit summary |
||
Line 64: | Line 64: | ||
term = term:gsub("%.([tmnlɾs])$", "%1") | term = term:gsub("%.([tmnlɾs])$", "%1") | ||
term = term:gsub("%.(" .. consonants .. ")%.", "%1.") | term = term:gsub("%.(" .. consonants .. ")%.", "%1.") | ||
local syllables = split(term, ".") | |||
table.insert(syllables, #syllables-1, "ˈ") -- penultimate stress | |||
term = table.concat(syllables, "."):gsub("%.ˈ%.","ˈ") | |||
return term | return term |