48,355
edits
No edit summary |
No edit summary |
||
| Line 72: | Line 72: | ||
local nucleus = match(stressed_syllable, "^" .. consonants .. "*į?(" .. vowels .. "+)") | local nucleus = match(stressed_syllable, "^" .. consonants .. "*į?(" .. vowels .. "+)") | ||
local last_vowel = match(last_syllable, "į?(" .. vowels .. "+)$") -- nil if consonant-final | local last_vowel = match(last_syllable, "į?(" .. vowels .. "+)$") -- nil if consonant-final | ||
if syll_count == 1 then | |||
nucleus = sub | nucleus = not front[nucleus] and not back[nucleus] and sub(nucleus, 1, 1) or nucleus | ||
if last_vowel then | if last_vowel then | ||
last_vowel = sub(last_vowel, -1, -1) | last_vowel = not front[last_vowel] and not back[last_vowel] and sub(last_vowel, -1, -1) or last_vowel | ||
end | end | ||
end | end | ||
local polarity = {front, back} | local polarity = {front, back} | ||