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 match(sub(word, -1, -1), "[ảẻỉỏủỷởử]") or word:match(v .. v .. "$") or "ir$" then
if match(sub(word, -1, -1), "[ảẻỉỏủỷởử]") or word:match(vowels .. vowels .. "$") or "ir$" then
return "l"
return "l"
elseif match(vowels, sub(word, -1, -1)) then
elseif match(vowels, sub(word, -1, -1)) then