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

-- Formes d'haver com a verb auxiliar
local export = {}

function export.make_irregulars(forma)
	
	forma.part[1]["m-s"] = "hagut"
	forma.part[1]["f-s"] = "haguda"
	forma.part[1]["m-p"] = "haguts"
	forma.part[1]["f-p"] = "hagudes"
	
	forma["pres-ind"][1][1] = "he"
	forma["pres-ind"][1][2] = "has"
	forma["pres-ind"][1][3] = "ha"
	forma["pres-ind"][1][4] = "hem"
	forma["pres-ind"][1][5] = "heu"
	forma["pres-ind"][1][6] = "han"
	
	forma["pres-ind"][2] = {}
	forma["pres-ind"][2][1] = "haig"

	forma["pres-ind"][3] = {}
	forma["pres-ind"][3][4] = "havem"
	forma["pres-ind"][3][5] = "haveu"

	forma.pass[1][1] = "haguí"
	forma.pass[1][2] = "hagueres"
	forma.pass[1][3] = "hagué"
	forma.pass[1][4] = "haguérem"
	forma.pass[1][5] = "haguéreu"
	forma.pass[1][6] = "hagueren"
	
	forma.fut[1][1] = "hauré"
	forma.fut[1][2] = "hauràs"
	forma.fut[1][3] = "haurà"
	forma.fut[1][4] = "haurem"
	forma.fut[1][5] = "haureu"
	forma.fut[1][6] = "hauran"
	
	forma.cond[1][1] = "hauria"
	forma.cond[1][2] = "hauries"
	forma.cond[1][3] = "hauria"
	forma.cond[1][4] = "hauríem"
	forma.cond[1][5] = "hauríeu"
	forma.cond[1][6] = "haurien"
	
	forma.cond[2] = {}
	forma.cond[2][1] = "haguera"
	forma.cond[2][2] = "hagueres"
	forma.cond[2][3] = "haguera"
	forma.cond[2][4] = "haguérem"
	forma.cond[2][5] = "haguéreu"
	forma.cond[2][6] = "hagueren"
	
	forma["pres-subj"][1][1] = "hagi"
	forma["pres-subj"][1][2] = "hagis"
	forma["pres-subj"][1][3] = "hagi"
	forma["pres-subj"][1][4] = "hàgim"
	forma["pres-subj"][1][5] = "hàgiu"
	forma["pres-subj"][1][6] = "hagin"
	
	forma["pres-subj"][2][1] = "haja"
	forma["pres-subj"][2][2] = "hages"
	forma["pres-subj"][2][3] = "haja"
	forma["pres-subj"][2][4] = "hàgem"
	forma["pres-subj"][2][5] = "hàgeu"
	forma["pres-subj"][2][6] = "hagen"
	forma["pres-subj"][2]["nota"] = nil
	
	forma["imperf-subj"][1][1] = "hagués"
	forma["imperf-subj"][1][2] = "haguessis"
	forma["imperf-subj"][1][3] = "hagués"
	forma["imperf-subj"][1][4] = "haguéssim"
	forma["imperf-subj"][1][5] = "haguéssiu"
	forma["imperf-subj"][1][6] = "haguessin"
	
	forma["imperf-subj"][2][2] = "haguesses"
	forma["imperf-subj"][2][4] = "haguéssem"
	forma["imperf-subj"][2][5] = "haguésseu"
	forma["imperf-subj"][2][6] = "haguessen"

	forma["imperf-subj"][3][1] = "haguera"
	forma["imperf-subj"][3][2] = "hagueres"
	forma["imperf-subj"][3][3] = "haguera"
	forma["imperf-subj"][3][4] = "haguérem"
	forma["imperf-subj"][3][5] = "haguéreu"
	forma["imperf-subj"][3][6] = "hagueren"
	
	forma["imp"][1][2] = "-"
	forma["imp"][1][3] = "-"
	forma["imp"][1][4] = "-"
	forma["imp"][1][5] = "-"
	forma["imp"][1][6] = "-"
	
	forma["imp"][2] = nil

	forma["no-ger"] = "haguent"
	
	forma["no-pres-ind"] = nil

	forma["no-imperf-ind"] = nil
	
	forma["no-pres-subj"][1] = {}
	forma["no-pres-subj"][1][4] = "haguem"
	forma["no-pres-subj"][1][5] = "hagueu"
	
	forma["no-pres-subj"][2] = {}
	forma["no-pres-subj"][2][1] = "haiga"
	forma["no-pres-subj"][2][2] = "haiguis"
	forma["no-pres-subj"][2][3] = "haigui"
	forma["no-pres-subj"][2][4] = "haiguem"
	forma["no-pres-subj"][2][5] = "haigueu"
	forma["no-pres-subj"][2][6] = "haiguin"
	forma["no-pres-subj"][2]["nota"] = "sept, bal"
	
	forma["no-pres-subj"][3] = {}
	forma["no-pres-subj"][3][4] = "haguivem"
	forma["no-pres-subj"][3][5] = "haguiveu"
	forma["no-pres-subj"][3]["nota"] = "alg"
	
	forma["no-imperf-subj"][1]["nota"] = "alg"
	
	forma["no-imperf-subj"][2][1] = "haguessa"
	forma["no-imperf-subj"][2][4] = "haguéssom"
	forma["no-imperf-subj"][2][5] = "haguéssou"
	forma["no-imperf-subj"][2]["nota"] = "n-occ"
	
	forma["no-imperf-subj"][3][1] = "havés"
	forma["no-imperf-subj"][3][2] = "havesses"
	forma["no-imperf-subj"][3][3] = "havés"
	forma["no-imperf-subj"][3][4] = "havéssem"
	forma["no-imperf-subj"][3][5] = "havésseu"
	forma["no-imperf-subj"][3][6] = "havessen"
	forma["no-imperf-subj"][3]["nota"] = "n-occ, bal"
	
	return forma
end

return export