Module:siwa-noun: Difference between revisions

No edit summary
No edit summary
Line 74: Line 74:
local sv = NAMESPACE == "Template" and "i" or parent_args[2]
local sv = NAMESPACE == "Template" and "i" or parent_args[2]
local decl_type = (parent_args["decl"] == "decl" and detect_decl(word, sv, g)) or parent_args["decl"] or detect_decl(word, sv, g)
local decl_type = (parent_args["decl"] == "decl" and detect_decl(word, sv, g)) or parent_args["decl"] or detect_decl(word, sv, g)
if decl_type == "l" then parent_args["nocoal"] = true end
if g ~= "i" and g ~= "a" then error("Unknown gender: it must be either ‘i’ or ‘a’") end
if g ~= "i" and g ~= "a" then error("Unknown gender: it must be either ‘i’ or ‘a’") end