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

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

function p.formes(infinitiu)
	local radical = string.sub(infinitiu, 1, -5)
	local forma = {}
	
	forma.ger = {}
	forma.ger[1], forma.ger[2], forma.ger[3] = {}, {}, {}
	forma.ger[1][1] = radical .. "odent"
	forma.ger[2][1] = radical .. "oguent"
	forma.ger[3][1] = radical .. "usquent"
	
	forma.part = {}
	forma.part[1], forma.part[2] = {}, {}
	forma.part[1]["m-s"] = radical .. "ogut"
	forma.part[2]["m-s"] = radical .. "uscut"
	
	forma["pres-ind"] = {}
	forma["pres-ind"][1] = {}
	forma["pres-ind"][2] = {}
	forma["pres-ind"][3] = {}
	forma["pres-ind"][1][1] = radical .. "uix"
	forma["pres-ind"][2][1] = radical .. "usc"
	forma["pres-ind"][3][1] = radical .. "uc"
	forma["pres-ind"][1][2] = radical .. "ots"
	forma["pres-ind"][1][3] = radical .. "ot"
	forma["pres-ind"][1][4] = radical .. "odem"
	forma["pres-ind"][1][5] = radical .. "odets"
	forma["pres-ind"][2][5] = radical .. "odeu"
	forma["pres-ind"][1][6] = radical .. "oden"
	
	forma["imperf-ind"] = {}
	forma["imperf-ind"][1] = {}
	forma["imperf-ind"][2] = {}
	forma["imperf-ind"][1][1] = radical .. "odia"
	forma["imperf-ind"][1][2] = radical .. "odies"
	forma["imperf-ind"][1][3] = radical .. "odia"
	forma["imperf-ind"][1][4] = radical .. "odíem"
	forma["imperf-ind"][1][5] = radical .. "odíets"
	forma["imperf-ind"][2][5] = radical .. "odíeu"
	forma["imperf-ind"][1][6] = radical .. "odien"
	
	forma.pass = {}
	forma.pass[1] = {}
	forma.pass[2] = {}
	forma.pass[3] = {}
	forma.pass[4] = {}
	forma.pass[5] = {}
	forma.pass[1][1] = radical .. "oc"
	forma.pass[2][1] = radical .. "oguí"
	forma.pass[3][1] = radical .. "usquí"
	forma.pass[1][2] = radical .. "oguist"
	forma.pass[2][2] = radical .. "ogueres"
	forma.pass[3][2] = radical .. "usqueres"
	forma.pass[1][3] = radical .. "oc"
	forma.pass[2][3] = radical .. "ogué"
	forma.pass[3][3] = radical .. "usqué"
	forma.pass[1][4] = radical .. "oguem"
	forma.pass[2][4] = radical .. "oguérem"
	forma.pass[3][4] = radical .. "usquérem"
	forma.pass[1][5] = radical .. "ogués"
	forma.pass[2][5] = radical .. "oguérets"
	forma.pass[3][5] = radical .. "oguéreu"
	forma.pass[4][5] = radical .. "usquérets"
	forma.pass[5][5] = radical .. "usquéreu"
	forma.pass[1][6] = radical .. "ogren"
	forma.pass[2][6] = radical .. "ogueren"
	forma.pass[3][6] = radical .. "usqueren"
	
	forma.fut = {}
	forma.fut[1] = {}
	forma.fut[2] = {}
	forma.fut[3] = {}
	forma.fut[4] = {}
	forma.fut[1][1] = radical .. "oré"
	forma.fut[2][1] = radical .. "odré"
	forma.fut[1][2] = radical .. "oràs"
	forma.fut[2][2] = radical .. "odràs"
	forma.fut[1][3] = radical .. "orà"
	forma.fut[2][3] = radical .. "odrà"
	forma.fut[1][4] = radical .. "orem"
	forma.fut[2][4] = radical .. "odrem"
	forma.fut[1][5] = radical .. "orets"
	forma.fut[2][5] = radical .. "oreu"
	forma.fut[3][5] = radical .. "odrets"
	forma.fut[4][5] = radical .. "odreu"
	forma.fut[1][6] = radical .. "oran"
	forma.fut[2][6] = radical .. "odran"
	
	forma.cond = {}
	forma.cond[1] = {}
	forma.cond[2] = {}
	forma.cond[3] = {}
	forma.cond[4] = {}
	forma.cond[1][1] = radical .. "oria"
	forma.cond[2][1] = radical .. "odria"
	forma.cond[1][2] = radical .. "ories"
	forma.cond[2][2] = radical .. "odries"
	forma.cond[1][3] = radical .. "oria"
	forma.cond[2][3] = radical .. "odria"
	forma.cond[1][4] = radical .. "oríem"
	forma.cond[2][4] = radical .. "odríem"
	forma.cond[1][5] = radical .. "oríets"
	forma.cond[2][5] = radical .. "oríeu"
	forma.cond[3][5] = radical .. "odríets"
	forma.cond[4][5] = radical .. "odríeu"
	forma.cond[1][6] = radical .. "orien"
	forma.cond[2][6] = radical .. "odrien"
	
	forma["pres-subj"] = {}
	forma["pres-subj"][1] = {}
	forma["pres-subj"][2] = {}
	forma["pres-subj"][3] = {}
	forma["pres-subj"][4] = {}
	forma["pres-subj"][5] = {}
	forma["pres-subj"][6] = {}
	forma["pres-subj"][7] = {}
	forma["pres-subj"][8] = {}
	forma["pres-subj"][9] = {}
	forma["pres-subj"][10] = {}
	forma["pres-subj"][11] = {}
	forma["pres-subj"][12] = {}
	forma["pres-subj"][1][1] = radical .. "uixa"
	forma["pres-subj"][2][1] = radical .. "usca"
	forma["pres-subj"][3][1] = radical .. "uixca"
	forma["pres-subj"][4][1] = radical .. "uga"
	
	forma["pres-subj"][1][2] = radical .. "uixes"
	forma["pres-subj"][2][2] = radical .. "usques"
	forma["pres-subj"][3][2] = radical .. "uixques"
	forma["pres-subj"][4][2] = radical .. "ugues"
	
	forma["pres-subj"][1][3] = radical .. "uixa"
	forma["pres-subj"][2][3] = radical .. "usca"
	forma["pres-subj"][3][3] = radical .. "uixca"
	forma["pres-subj"][4][3] = radical .. "uga"
	
	forma["pres-subj"][1][4] = radical .. "uixam"
	forma["pres-subj"][2][4] = radical .. "uscam"
	forma["pres-subj"][3][4] = radical .. "usquem"
	forma["pres-subj"][4][4] = radical .. "uixcam"
	forma["pres-subj"][5][4] = radical .. "uguem"
	
	forma["pres-subj"][1][5] = radical .. "uixats"
	forma["pres-subj"][2][5] = radical .. "uixau"
	forma["pres-subj"][3][5] = radical .. "uscats"
	forma["pres-subj"][4][5] = radical .. "uscau"
	forma["pres-subj"][5][5] = radical .. "usquets"
	forma["pres-subj"][6][5] = radical .. "usqueu"
	forma["pres-subj"][7][5] = radical .. "uixcats"
	forma["pres-subj"][8][5] = radical .. "uixcau"
	forma["pres-subj"][9][5] = radical .. "ugats"
	forma["pres-subj"][10][5] = radical .. "ugau"
	forma["pres-subj"][11][5] = radical .. "uguets"
	forma["pres-subj"][12][5] = radical .. "ugueu"
	
	forma["pres-subj"][1][6] = radical .. "uixen"
	forma["pres-subj"][2][6] = radical .. "usquen"
	forma["pres-subj"][3][6] = radical .. "uixquen"
	forma["pres-subj"][4][6] = radical .. "uguen"
	
	forma["imperf-subj"] = {}
	forma["imperf-subj"][1] = {}
	forma["imperf-subj"][2] = {}
	forma["imperf-subj"][3] = {}
	forma["imperf-subj"][4] = {}
	forma["imperf-subj"][5] = {}
	forma["imperf-subj"][6] = {}
	forma["imperf-subj"][7] = {}
	forma["imperf-subj"][8] = {}
	forma["imperf-subj"][9] = {}
	forma["imperf-subj"][10] = {}
	forma["imperf-subj"][1][1] = radical .. "ogués"
	forma["imperf-subj"][2][1] = radical .. "ogra"
	forma["imperf-subj"][3][1] = radical .. "oguera"
	forma["imperf-subj"][4][1] = radical .. "usqués"
	forma["imperf-subj"][5][1] = radical .. "usquera"
	
	forma["imperf-subj"][1][2] = radical .. "oguesses"
	forma["imperf-subj"][2][2] = radical .. "ogres"
	forma["imperf-subj"][3][2] = radical .. "ogueres"
	forma["imperf-subj"][4][2] = radical .. "usquesses"
	forma["imperf-subj"][5][2] = radical .. "usqueres"
	
	forma["imperf-subj"][1][3] = radical .. "ogués"
	forma["imperf-subj"][2][3] = radical .. "ogra"
	forma["imperf-subj"][3][3] = radical .. "oguera"
	forma["imperf-subj"][4][3] = radical .. "usqués"
	forma["imperf-subj"][5][3] = radical .. "usquera"
	
	forma["imperf-subj"][1][4] = radical .. "oguéssem"
	forma["imperf-subj"][2][4] = radical .. "ógrem"
	forma["imperf-subj"][3][4] = radical .. "oguérem"
	forma["imperf-subj"][4][4] = radical .. "usquéssem"
	forma["imperf-subj"][5][4] = radical .. "usquérem"
	
	forma["imperf-subj"][1][5] = radical .. "oguéssets"
	forma["imperf-subj"][2][5] = radical .. "oguésseu"
	forma["imperf-subj"][3][5] = radical .. "ógrets"
	forma["imperf-subj"][4][5] = radical .. "ógreu"
	forma["imperf-subj"][5][5] = radical .. "oguérets"
	forma["imperf-subj"][6][5] = radical .. "oguéreu"
	forma["imperf-subj"][7][5] = radical .. "usquéssets"
	forma["imperf-subj"][8][5] = radical .. "usquésseu"
	forma["imperf-subj"][9][5] = radical .. "usquérets"
	forma["imperf-subj"][10][5] = radical .. "usguéreu"
	
	forma["imperf-subj"][1][6] = radical .. "oguessen"
	forma["imperf-subj"][2][6] = radical .. "ogren"
	forma["imperf-subj"][3][6] = radical .. "ogueren"
	forma["imperf-subj"][4][6] = radical .. "usquessen"
	forma["imperf-subj"][5][6] = radical .. "usqueren"
	
	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-subj", 2, 2)
	copyImp("pres-subj", 3, 3)
	copyImp("pres-subj", 4, 4)
	copyImp("pres-subj", 5, 5)
	copyImp("pres-subj", 6, 6)
	
	return forma
end

return p