Module:qay-verb: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
 
(One intermediate revision 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 116: Line 116:
local function repl(param)
local function repl(param)
if param == "decl_type" then
if param == "decl_type" then
return data.head --data.decl_type
return data.decl_type
elseif param == "pagename" and NAMESPACE == "Template" then
elseif param == "pagename" and NAMESPACE == "Template" then
return "no-"
return "no-"