Module:siwa-noun: Difference between revisions

No edit summary
No edit summary
Line 52: Line 52:
word = dedigraphicize(word)
word = dedigraphicize(word)
if gender == "a" then return "animate"
if gender == "a" then return "animate"
elseif word:match("[ảẻỉỏủỷởử]$") or word:match("i[rů]$") or word:match("[aeio]u$") or word:match("[aeiouyůử]l") then
elseif word:match("[ảẻỉỏủỷởử]$") or word:match("i[rů]$") or word:match("[aeio]u$") or word:match("[aeiouyůử]l$") then
return "l"
return "l"
elseif match(vowels, sub(word, -1, -1)) then
elseif match(vowels, sub(word, -1, -1)) then