La documentació d'ús d'aquest mòdul es pot crear a Mòdul:ca-verb/empènyer/ús

-- Formes irregulars dels verbs -ènyer o -ényer, excepte fènyer.
local export = {}

function export.make_irregulars(forma, zona)
	local radical = mw.ustring.gsub(forma.inf, "[èé]nyer$", "en")
	
	local radical_e = string.sub(radical, 1, -3)
	if radical:find("tren$") then
		forma.part[1]["m-s"] = radical_e .. "et"
		forma.part[1]["f-s"] = radical_e .. "eta"
		forma.part[1]["m-p"] = radical_e .. "ets"
		forma.part[1]["f-p"] = radical_e .. "etes"
	else
		forma.part[1]["m-s"] = radical_e .. "ès"
		forma.part[1]["f-s"] = radical_e .. "esa"
		forma.part[1]["m-p"] = radical_e .. "esos"
		forma.part[1]["f-p"] = radical_e .. "eses"
		if zona.val then
			forma.part[2] = {}
			forma.part[2]["m-s"] = radical_e .. "és"
			forma.part[2]["nota"] = "val"
		end
	end
	
	local fila
	if zona.bal then
		fila = #forma["pres-ind"] + 1
		forma["pres-ind"][fila] = {}
		forma["pres-ind"][fila][1] = radical .. "c"
		forma["pres-ind"][fila]["nota"] = "bal"
	end
	
	forma.pass[2] = {}
	forma.pass[2][1] = radical .. "guí"
	forma.pass[2][2] = radical .. "gueres"
	forma.pass[2][3] = radical .. "gué"
	forma.pass[2][4] = radical .. "guérem"
	forma.pass[2][5] = radical .. "guéreu"
	forma.pass[2][6] = radical .. "gueren"
	
	if zona.occ then
		fila = #forma["pres-subj"]
		forma["pres-subj"][fila]["nota"] = "occ"
	end
	
	if zona.bal then
		fila = #forma["pres-subj"] + 1
		forma["pres-subj"][fila] = {}
		forma["pres-subj"][fila][1] = radical .. "gui"
		forma["pres-subj"][fila][2] = radical .. "guis"
		forma["pres-subj"][fila][3] = radical .. "gui"
		forma["pres-subj"][fila][4] = radical .. "guem"
		forma["pres-subj"][fila][5] = radical .. "gueu"
		forma["pres-subj"][fila][6] = radical .. "guin"
		forma["pres-subj"][fila]["nota"] = "bal"
	end
	
	if zona.bal then
		fila = #forma["imperf-subj"] + 1
		forma["imperf-subj"][fila] = {}
		forma["imperf-subj"][fila][1] = radical .. "gués"
		forma["imperf-subj"][fila][2] = radical .. "guessis"
		forma["imperf-subj"][fila][3] = radical .. "gués"
		forma["imperf-subj"][fila][4] = radical .. "guéssim"
		forma["imperf-subj"][fila][5] = radical .. "guéssiu"
		forma["imperf-subj"][fila][6] = radical .. "guessin"
		forma["imperf-subj"][fila]["nota"] = "bal"
	end
	
	if zona.occ then
		fila = #forma.imp
		forma.imp[fila]["nota"] = "occ"
	end
	
	if zona.bal then
		fila = #forma.imp + 1
		forma.imp[fila] = {}
		forma.imp[fila][3] = radical .. "gui"
		forma.imp[fila][4] = radical .. "guem"
		forma.imp[fila][6] = radical .. "guin"
		forma.imp[fila]["nota"] = "bal"
	end
	
	forma["no-pres-ind"] = nil

	forma["no-imperf-subj"] = nil

	return forma
end

return export