Module:qay-verb: Difference between revisions
No edit summary Tag: Reverted |
No edit summary |
||
| (2 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]") 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 | ||
| Line 88: | Line 88: | ||
local function tooltip(gender) | local function tooltip(gender) | ||
return require('Module: | return require('Module:gender and number').format_list({gender}) | ||
end | end | ||
| Line 116: | Line 116: | ||
local function repl(param) | local function repl(param) | ||
if param == "decl_type" then | if param == "decl_type" then | ||
return | return data.decl_type | ||
elseif param == "pagename" and NAMESPACE == "Template" then | elseif param == "pagename" and NAMESPACE == "Template" then | ||
return "no-" | return "no-" | ||