Module:qay-verb: Difference between revisions

no edit summary
(Undo revision 436257 by Sware (talk))
Tag: Undo
No edit summary
 
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]") or word:match("ng$") 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