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

-- Model de conjugació antiga valer
local p = {}

function p.formes(infinitiu)
	local radical = string.sub(infinitiu, 1, -3)
	local forma = {}
	
	forma.ger = {}
	forma.ger[1] = {}
	forma.ger[1][1] = radical .. "ent"
	
	forma.part = {}
	forma.part[1] = {}
	forma.part[1]["m-s"] = radical .. "gut"
	
	forma["pres-ind"] = {}
	forma["pres-ind"][1] = {}
	forma["pres-ind"][2] = {}
	forma["pres-ind"][1][1] = radical .. "c"
	forma["pres-ind"][1][2] = radical .. "s"
	forma["pres-ind"][1][3] = radical
	forma["pres-ind"][1][4] = radical .. "em"
	forma["pres-ind"][1][5] = radical .. "ets"
	forma["pres-ind"][2][5] = radical .. "eu"
	forma["pres-ind"][1][6] = radical .. "en"
	
	forma["imperf-ind"] = {}
	forma["imperf-ind"][1] = {}
	forma["imperf-ind"][2] = {}
	forma["imperf-ind"][1][1] = radical .. "ia"
	forma["imperf-ind"][1][2] = radical .. "ies"
	forma["imperf-ind"][1][3] = radical .. "ia"
	forma["imperf-ind"][1][4] = radical .. "íem"
	forma["imperf-ind"][1][5] = radical .. "íets"
	forma["imperf-ind"][2][5] = radical .. "íeu"
	forma["imperf-ind"][1][6] = radical .. "ien"
	
	forma.pass = {}
	forma.pass[1] = {}
	forma.pass[2] = {}
	forma.pass[3] = {}
	forma.pass[1][1] = radical .. "c"
	forma.pass[2][1] = radical .. "ec"
	forma.pass[3][1] = radical .. "guí"
	forma.pass[1][2] = radical .. "guist"
	forma.pass[2][2] = radical .. "gueres"
	forma.pass[1][3] = radical .. "c"
	forma.pass[2][3] = radical .. "ec"
	forma.pass[3][3] = radical .. "gué"
	forma.pass[1][4] = radical .. "guérem"
	forma.pass[1][5] = radical .. "guérets"
	forma.pass[2][5] = radical .. "guéreu"
	forma.pass[1][6] = radical .. "gren"
	forma.pass[2][6] = radical .. "gueren"
	
	forma.fut = {}
	forma.fut[1] = {}
	forma.fut[2] = {}
	forma.fut[3] = {}
	forma.fut[4] = {}
	forma.fut[1][1] = radical .. "ré"
	forma.fut[2][1] = radical .. "dré"
	forma.fut[1][2] = radical .. "ràs"
	forma.fut[2][2] = radical .. "dràs"
	forma.fut[1][3] = radical .. "rà"
	forma.fut[2][3] = radical .. "drà"
	forma.fut[1][4] = radical .. "rem"
	forma.fut[2][4] = radical .. "drem"
	forma.fut[1][5] = radical .. "rets"
	forma.fut[2][5] = radical .. "reu"
	forma.fut[3][5] = radical .. "drets"
	forma.fut[4][5] = radical .. "dreu"
	forma.fut[1][6] = radical .. "ran"
	forma.fut[2][6] = radical .. "dran"
	
	forma.cond = {}
	forma.cond[1] = {}
	forma.cond[2] = {}
	forma.cond[3] = {}
	forma.cond[4] = {}
	forma.cond[1][1] = radical .. "ria"
	forma.cond[2][1] = radical .. "dria"
	forma.cond[1][2] = radical .. "ries"
	forma.cond[2][2] = radical .. "dries"
	forma.cond[1][3] = radical .. "ria"
	forma.cond[2][3] = radical .. "dria"
	forma.cond[1][4] = radical .. "ríem"
	forma.cond[2][4] = radical .. "dríem"
	forma.cond[1][5] = radical .. "ríets"
	forma.cond[2][5] = radical .. "ríeu"
	forma.cond[3][5] = radical .. "dríets"
	forma.cond[4][5] = radical .. "dríeu"
	forma.cond[1][6] = radical .. "rien"
	forma.cond[2][6] = radical .. "drien"
	
	forma["pres-subj"] = {}
	forma["pres-subj"][1] = {}
	forma["pres-subj"][2] = {}
	forma["pres-subj"][3] = {}
	forma["pres-subj"][4] = {}
	forma["pres-subj"][1][1] = radical .. "la"
	forma["pres-subj"][2][1] = radical .. "a"
	forma["pres-subj"][3][1] = radical .. "ga"
	forma["pres-subj"][4][1] = radical .. "ega"
	forma["pres-subj"][1][2] = radical .. "les"
	forma["pres-subj"][2][2] = radical .. "es"
	forma["pres-subj"][3][2] = radical .. "gues"
	forma["pres-subj"][4][2] = radical .. "egues"
	forma["pres-subj"][1][3] = radical .. "la"
	forma["pres-subj"][2][3] = radical .. "a"
	forma["pres-subj"][3][3] = radical .. "ga"
	forma["pres-subj"][4][3] = radical .. "ega"
	forma["pres-subj"][1][4] = radical .. "lam"
	forma["pres-subj"][2][4] = radical .. "am"
	forma["pres-subj"][3][4] = radical .. "gam"
	forma["pres-subj"][4][4] = radical .. "guem"
	forma["pres-subj"][1][5] = radical .. "lau"
	forma["pres-subj"][2][5] = radical .. "au"
	forma["pres-subj"][3][5] = radical .. "gau"
	forma["pres-subj"][4][5] = radical .. "gueu"
	forma["pres-subj"][1][6] = radical .. "len"
	forma["pres-subj"][2][6] = radical .. "en"
	forma["pres-subj"][3][6] = radical .. "guen"
	forma["pres-subj"][4][6] = radical .. "eguen"
	
	forma["imperf-subj"] = {}
	forma["imperf-subj"][1] = {}
	forma["imperf-subj"][2] = {}
	forma["imperf-subj"][3] = {}
	forma["imperf-subj"][4] = {}
	forma["imperf-subj"][1][1] = radical .. "gra"
	forma["imperf-subj"][2][1] = radical .. "guera"
	forma["imperf-subj"][3][1] = radical .. "gués"
	forma["imperf-subj"][1][2] = radical .. "gres"
	forma["imperf-subj"][2][2] = radical .. "gueres"
	forma["imperf-subj"][3][2] = radical .. "guesses"
	forma["imperf-subj"][1][3] = radical .. "gra"
	forma["imperf-subj"][2][3] = radical .. "guera"
	forma["imperf-subj"][3][3] = radical .. "gués"
	forma["imperf-subj"][1][4] = radical .. "guérem"
	forma["imperf-subj"][2][4] = radical .. "guéssem"
	forma["imperf-subj"][1][5] = radical .. "guérets"
	forma["imperf-subj"][2][5] = radical .. "guéreu"
	forma["imperf-subj"][3][5] = radical .. "guéssets"
	forma["imperf-subj"][4][5] = radical .. "guésseu"
	forma["imperf-subj"][1][6] = radical .. "gren"
	forma["imperf-subj"][2][6] = radical .. "gueren"
	forma["imperf-subj"][3][6] = radical .. "guessen"
	
	local function copyImp(temps, pers_from, pers_to)
		local i = 1
		while forma[temps][i] and forma[temps][i][pers_from] do
			if forma.imp[i] == nil then
				forma.imp[i] = {}
			end
			forma.imp[i][pers_to] = forma[temps][i][pers_from]
			i = i + 1
		end
	end
	
	forma.imp = {}
	copyImp("pres-ind", 3, 2)
	copyImp("pres-subj", 3, 3)
	copyImp("pres-subj", 4, 4)
	copyImp("pres-ind", 5, 5)
	copyImp("pres-subj", 6, 6)
	
	return forma
end

return p