Module:pine-noun: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 70: Line 70:
local last_syllable = syllables[syll_count]
local last_syllable = syllables[syll_count]
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
--[[if syll_count == 1 then
nucleus = sub(gsub(nucleus, "į",""), 1, 1)
nucleus = sub(gsub(nucleus, "į",""), 1, 1)
if last_vowel then
if last_vowel then
last_vowel = sub(last_vowel, -1, -1)
last_vowel = sub(last_vowel, -1, -1)
end
end
end
end]]
local polarity = {front, back}
local polarity = {front, back}