Module:qay-verb: Difference between revisions
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 20: | Line 20: | ||
if word:match("a$") then | if word:match("a$") then | ||
return "a", {word} | return "a", {word} | ||
elseif word:match("[eiou]$") or word:match("[aeiou]y") then | elseif word:match("[eiou]$") or word:match("[aeiou]y$") then | ||
return "v", {word} | return "v", {word} | ||
elseif word:match("[ptkbdgmncvshrlj][sv]") then | elseif word:match("[ptkbdgmncvshrlj][sv]$") or word:match("ng$") then | ||
return "c", {word} | return "c", {word} | ||
elseif word:match("[ptkbdgmncvshrlj][ptkbdgmncvshrlj]") then | elseif word:match("[ptkbdgmncvshrlj][ptkbdgmncvshrlj]$") then | ||
return "2c", {word} | return "2c", {word} | ||
else | else | ||