Module:siwa-noun: Difference between revisions

No edit summary
No edit summary
Line 51: Line 51:
local function detect_decl(word, stressed)
local function detect_decl(word, stressed)
word = dedigraphicize(word)
word = dedigraphicize(word)
if word:match(sub(word, -1, -1), "[ảẻỉỏủỷởử]") then
if match(sub(word, -1, -1), "[ảẻỉỏủỷởử]") then
return "l"
return "l"
elseif word:match(vowels, sub(word, -1, -1)) then
elseif match(vowels, sub(word, -1, -1)) then
return m_com.stressed_vowels[stressed]
return m_com.stressed_vowels[stressed]
else
else