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

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

function export.make_irregulars(forma, zona)
	local radical = forma.inf:gsub("ure$", "")
	
	forma.ger[1][1] = radical .. "vint"
	
	forma.part[1]["m-s"] = radical .. "scut"
	forma.part[1]["f-s"] = radical .. "scuda"
	forma.part[1]["m-p"] = radical .. "scuts"
	forma.part[1]["f-p"] = radical .. "scudes"
	
	forma["pres-ind"][1][1] = radical .. "sc"
	forma["pres-ind"][1][4] = radical .. "vim"
	forma["pres-ind"][1][5] = radical .. "viu"
	
	forma["imperf-ind"][1][1] = radical .. "via"
	forma["imperf-ind"][1][2] = radical .. "vies"
	forma["imperf-ind"][1][3] = radical .. "via"
	forma["imperf-ind"][1][4] = radical .. "víem"
	forma["imperf-ind"][1][5] = radical .. "víeu"
	forma["imperf-ind"][1][6] = radical .. "vien"
	
	forma.pass[1][1] = radical .. "squí"
	forma.pass[1][2] = radical .. "squeres"
	forma.pass[1][3] = radical .. "squé"
	forma.pass[1][4] = radical .. "squérem"
	forma.pass[1][5] = radical .. "squéreu"
	forma.pass[1][6] = radical .. "squeren"
	
	forma["pres-subj"][1][1] = radical .. "squi"
	forma["pres-subj"][1][2] = radical .. "squis"
	forma["pres-subj"][1][3] = radical .. "squi"
	forma["pres-subj"][1][4] = radical .. "squem"
	forma["pres-subj"][1][5] = radical .. "squeu"
	forma["pres-subj"][1][6] = radical .. "squin"
	
	forma["pres-subj"][2][1] = radical .. "sca"
	forma["pres-subj"][2][2] = radical .. "sques"
	forma["pres-subj"][2][3] = radical .. "sca"
	forma["pres-subj"][2][6] = radical .. "squen"
	
	forma["imperf-subj"][1][1] = radical .. "squés"
	forma["imperf-subj"][1][2] = radical .. "squessis"
	forma["imperf-subj"][1][3] = radical .. "squés"
	forma["imperf-subj"][1][4] = radical .. "squéssim"
	forma["imperf-subj"][1][5] = radical .. "squéssiu"
	forma["imperf-subj"][1][6] = radical .. "squessin"
	
	forma["imperf-subj"][2][2] = radical .. "squesses"
	forma["imperf-subj"][2][4] = radical .. "squéssem"
	forma["imperf-subj"][2][5] = radical .. "squésseu"
	forma["imperf-subj"][2][6] = radical .. "squessen"
	
	forma["imperf-subj"][3][1] = radical .. "squera"
	forma["imperf-subj"][3][2] = radical .. "squeres"
	forma["imperf-subj"][3][3] = radical .. "squera"
	forma["imperf-subj"][3][4] = radical .. "squérem"
	forma["imperf-subj"][3][5] = radical .. "squéreu"
	forma["imperf-subj"][3][6] = radical .. "squeren"
	
	forma["imp"][1][3] = radical .. "squi"
	forma["imp"][1][4] = radical .. "squem"
	forma["imp"][1][5] = radical .. "viu"
	forma["imp"][1][6] = radical .. "squin"
	
	forma["imp"][2][3] = radical .. "sca"
	forma["imp"][2][6] = radical .. "squen"
	
	if zona.alt then
		forma["no-ger"] = radical .. "squent"
		
		forma["no-pres-ind"] = {}
		forma["no-pres-ind"][1] = {}
		forma["no-pres-ind"][1][1] = radical .. "sco"
		forma["no-pres-ind"][1]["nota"] = "centr, n-occ"
		
		if zona.alg then
			forma["no-pres-ind"][2] = {}
			forma["no-pres-ind"][2][1] = radical .. "v"
			forma["no-pres-ind"][2]["nota"] = "alg"
		end
		
		forma["no-imperf-ind"] = {}
		forma["no-imperf-ind"][1] = {}
		forma["no-imperf-ind"][1][1] = radical .. "viva"
		forma["no-imperf-ind"][1][2] = radical .. "vives"
		forma["no-imperf-ind"][1][3] = radical .. "viva"
		forma["no-imperf-ind"][1][4] = radical .. "vívem"
		forma["no-imperf-ind"][1][5] = radical .. "víveu"
		forma["no-imperf-ind"][1][6] = radical .. "viven"
		forma["no-imperf-ind"][1]["nota"] = "n-occ, alg"
		
		forma["no-pres-subj"][1][2] = radical .. "scos"
		forma["no-pres-subj"][1][3] = radical .. "sco"
		forma["no-pres-subj"][1]["nota"] = "n-occ"
		
		forma["no-pres-subj"][2][4] = radical .. "scam"
		forma["no-pres-subj"][2][5] = radical .. "scau"
		
		if zona.alg then
			forma["no-pres-subj"][3] = {}
			forma["no-pres-subj"][3][1] = radical .. "vi"
			forma["no-pres-subj"][3][2] = radical .. "vis"
			forma["no-pres-subj"][3][3] = radical .. "vi"
			forma["no-pres-subj"][3][4] = radical .. "vim"
			forma["no-pres-subj"][3][5] = radical .. "viu"
			forma["no-pres-subj"][3][6] = radical .. "vin"
			forma["no-pres-subj"][3]["nota"] = "alg"
		end
		
		forma["no-imperf-subj"][1][1] = radical .. "vís"
		forma["no-imperf-subj"][1][2] = radical .. "visses"
		forma["no-imperf-subj"][1][3] = radical .. "vís"
		forma["no-imperf-subj"][1][4] = radical .. "víssem"
		forma["no-imperf-subj"][1][5] = radical .. "vísseu"
		forma["no-imperf-subj"][1][6] = radical .. "vissen"
		forma["no-imperf-subj"][1]["nota"] = "centr, n-occ"
		
		forma["no-imperf-subj"][2] = nil
		if zona.alg then
			forma["no-imperf-subj"][2] = {}
			forma["no-imperf-subj"][2][1] = radical .. "vissi"
			forma["no-imperf-subj"][2][2] = radical .. "vissis"
			forma["no-imperf-subj"][2][3] = radical .. "vissi"
			forma["no-imperf-subj"][2][4] = radical .. "víssim"
			forma["no-imperf-subj"][2][5] = radical .. "víssiu"
			forma["no-imperf-subj"][2][6] = radical .. "vissin"
			forma["no-imperf-subj"][2]["nota"] = "alg"
		end
		
		forma["no-imperf-subj"][3] = nil
	end
	
	return forma
end

return export