Module:qay-verb: Difference between revisions

No edit summary
No edit summary
 
(4 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
Line 88: Line 88:
local function tooltip(gender)
local function tooltip(gender)
return require('Module:getn').format_list({gender})
return require('Module:gender and number').format_list({gender})
end
end