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

-- Formes irregulars dels verbs -veure
local export = {}

function export.make_irregulars(forma, zona)
	local radical = forma.inf:gsub("eure$", "")
	
	forma["pres-ind"][1][1] = radical .. "eig"
	
	if zona.bal then
		forma["pres-ind"][3] = {}
		forma["pres-ind"][3][4] = radical .. "eim"
		forma["pres-ind"][3][5] = radical .. "eis"
		forma["pres-ind"][3]["nota"] = "bal"
	end
	
	forma.pass[1][1] = radical .. "iu"
	forma.pass[1][2] = radical .. "eieres"
	forma.pass[1][3] = radical .. "eié"
	forma.pass[1][4] = radical .. "eiérem"
	forma.pass[1][5] = radical .. "eiéreu"
	forma.pass[1][6] = radical .. "eieren"
	
	if zona.val then
		forma.pass[2] = {}
		forma.pass[2][2] = radical .. "eres"
		forma.pass[2][3] = radical .. "eu"
		forma.pass[2][4] = radical .. "érem"
		forma.pass[2][5] = radical .. "éreu"
		forma.pass[2][6] = radical .. "eren"
		forma.pass[2]["nota"] = "val"
	end
	
	forma["pres-subj"][1][1] = radical .. "egi"
	forma["pres-subj"][1][2] = radical .. "egis"
	forma["pres-subj"][1][3] = radical .. "egi"
	forma["pres-subj"][1][4] = radical .. "egem"
	forma["pres-subj"][1][5] = radical .. "egeu"
	forma["pres-subj"][1][6] = radical .. "egin"
	
	forma["pres-subj"][2][1] = radical .. "eja"
	forma["pres-subj"][2][2] = radical .. "eges"
	forma["pres-subj"][2][3] = radical .. "eja"
	forma["pres-subj"][2][6] = radical .. "egen"
	
	forma["imperf-subj"][1][1] = radical .. "eiés"
	forma["imperf-subj"][1][2] = radical .. "eiessis"
	forma["imperf-subj"][1][3] = radical .. "eiés"
	forma["imperf-subj"][1][4] = radical .. "eiéssim"
	forma["imperf-subj"][1][5] = radical .. "eiéssiu"
	forma["imperf-subj"][1][6] = radical .. "eiessin"
	
	forma["imperf-subj"][2][2] = radical .. "eiesses"
	forma["imperf-subj"][2][4] = radical .. "eiéssem"
	forma["imperf-subj"][2][5] = radical .. "eiésseu"
	forma["imperf-subj"][2][6] = radical .. "eiessen"
	
	forma["imperf-subj"][3][1] = radical .. "era"
	forma["imperf-subj"][3][2] = radical .. "eres"
	forma["imperf-subj"][3][3] = radical .. "era"
	forma["imperf-subj"][3][4] = radical .. "érem"
	forma["imperf-subj"][3][5] = radical .. "éreu"
	forma["imperf-subj"][3][6] = radical .. "eren"
	
	if zona.bal then
		forma["imperf-subj"][4] = {}
		forma["imperf-subj"][4][1] = (radical == "v" and "ves" or radical .. "és")
		forma["imperf-subj"][4][2] = radical .. "essis"
		forma["imperf-subj"][4][3] = (radical == "v" and "ves" or radical .. "és")
		forma["imperf-subj"][4][4] = radical .. "éssim"
		forma["imperf-subj"][4][5] = radical .. "éssiu"
		forma["imperf-subj"][4][6] = radical .. "essin"
		forma["imperf-subj"][4]["nota"] = "bal"
	end
	
	forma["imp"][1][2] = radical .. "eges"
	forma["imp"][1][3] = radical .. "egi"
	forma["imp"][1][4] = radical .. "egem"
	forma["imp"][1][5] = radical .. "egeu"
	forma["imp"][1][6] = radical .. "egin"
	
	forma["imp"][2] = {}
	forma["imp"][2][2] = (radical == "v" and "ves" or radical .. "és")
	forma["imp"][2][5] = radical .. "eieu"
	forma["imp"][2]["nota"] = nil
	
	forma["imp"][3] = {}
	forma["imp"][3][5] = radical .. "eis"
	forma["imp"][3]["nota"] = "bal"
	
	if zona.val then
		forma["imp"][4] = {}
		forma["imp"][4][3] = radical .. "eja"
		forma["imp"][4][5] = radical .. "eeu"
		forma["imp"][4][6] = radical .. "egen"
		forma["imp"][4]["nota"] = "val"
	end
	
	if radical == "v" then
		forma["imp"][5] = {}
		forma["imp"][5][2] = radical .. "e"
		forma["imp"][5]["nota"] = "(1)"
	end
	
	if zona.alt then
		forma["no-part"] = nil
		
		if radical == "v" or radical == "rev" or radical == "malv" then
			forma["no-fut"] = {}
			forma["no-fut"][1] = {}
			forma["no-fut"][1][1] = radical .. "oré"
			forma["no-fut"][1][2] = radical .. "oràs"
			forma["no-fut"][1][3] = radical .. "orà"
			forma["no-fut"][1][4] = radical .. "orem"
			forma["no-fut"][1][5] = radical .. "oreu"
			forma["no-fut"][1][6] = radical .. "oran"
			forma["no-fut"][1]["nota"] = "centr, bal, val"
			
			forma["no-cond"][2] = {}
			forma["no-cond"][2][1] = radical .. "oria"
			forma["no-cond"][2][2] = radical .. "ories"
			forma["no-cond"][2][3] = radical .. "oria"
			forma["no-cond"][2][4] = radical .. "oríem"
			forma["no-cond"][2][5] = radical .. "oríeu"
			forma["no-cond"][2][6] = radical .. "orien"
			forma["no-cond"][2]["nota"] = "centr, bal, val"
		end
		
		forma["no-pres-subj"][2][4] = radical .. "ejam"
		forma["no-pres-subj"][2][5] = radical .. "ejau"
		forma["no-pres-subj"][2]["nota"] = "val"
		
		forma["no-imperf-subj"][1][1] = radical .. "egés"
		forma["no-imperf-subj"][1][2] = radical .. "egesses"
		forma["no-imperf-subj"][1][3] = radical .. "egés"
		forma["no-imperf-subj"][1][4] = radical .. "egéssem"
		forma["no-imperf-subj"][1][5] = radical .. "egésseu"
		forma["no-imperf-subj"][1][6] = radical .. "egessen"
		forma["no-imperf-subj"][1]["nota"] = "or"
		
		forma["no-imperf-subj"][2][1] = radical .. "egessa"
		forma["no-imperf-subj"][2][4] = nil
		forma["no-imperf-subj"][2][5] = nil
	
		forma["no-imperf-subj"][3][1] = radical .. "egessi"
		forma["no-imperf-subj"][3][3] = radical .. "egessi"
		
		if radical == "v" then
			forma["no-imp"] = {}
			forma["no-imp"][1] = {}
			forma["no-imp"][1][2] = "vet"
			forma["no-imp"][1][5] = "veu"
			
			forma["no-imp"][2] = {}
			forma["no-imp"][2][2] = "ve"
			forma["no-imp"][2]["nota"] = "(2)"
			
			forma["nota"] = "Nota 1: «veu-hi» i «veieu-hi» són formes de l'imperatiu de veure-hi.<br />"
			forma["nota"] = forma["nota"] .. "Nota 2: «ve» és una forma proclítica de l'imperatiu."
		end
	end
	
	return forma
end

return export