Mòdul:ca-verb/argüir
La documentació d'ús d'aquest mòdul es pot crear a Mòdul:ca-verb/argüir/ús
-- Variacions ortogràfiques dels verbs argüir i redargüir.
local export = {}
function export.make_irregulars(forma)
forma["no-part"] = {}
for k, v in pairs(forma.part[1]) do
forma["no-part"][k] = forma["part"][1][k]
forma.part[1][k] = mw.ustring.gsub(forma.part[1][k], "üi", "uï")
end
forma["no-pres-ind"][2] = forma["no-pres-ind"][1]
forma["no-pres-ind"][1] = {}
forma["no-pres-ind"][1][4] = forma["pres-ind"][1][4]
forma["no-pres-ind"][1][5] = forma["pres-ind"][1][5]
forma["no-pres-ind"][3] = {}
for pers in pairs(forma["pres-ind"][4]) do
forma["no-pres-ind"][3][pers] = forma["pres-ind"][4][pers]
end
forma["no-pres-ind"][4] = {}
for pers in pairs(forma["pres-ind"][5]) do
forma["no-pres-ind"][4][pers] = forma["pres-ind"][5][pers]
end
for fila in ipairs(forma["pres-ind"]) do
for pers in pairs(forma["pres-ind"][fila]) do
forma["pres-ind"][fila][pers] = mw.ustring.gsub(forma["pres-ind"][fila][pers], "üi", "uï")
end
end
forma["no-imperf-ind"][1] = {}
forma["no-imperf-ind"][1][1] = forma["imperf-ind"][1][1]
forma["no-imperf-ind"][1][2] = forma["imperf-ind"][1][2]
forma["no-imperf-ind"][1][3] = forma["imperf-ind"][1][3]
forma["no-imperf-ind"][1][6] = forma["imperf-ind"][1][6]
forma["no-imperf-ind"][1]["nota"] = ""
for pers in ipairs(forma["imperf-ind"][1]) do
forma["imperf-ind"][1][pers] = mw.ustring.gsub(forma["imperf-ind"][1][pers], "üi", "uï")
end
for pers in ipairs(forma["no-imperf-ind"][2]) do
forma["no-imperf-ind"][2][pers] = mw.ustring.gsub(forma["imperf-ind"][1][pers], "([ïí])", "%1v")
end
forma["no-pass"][2] = forma["no-pass"][1]
forma["no-pass"][1] = {}
forma["no-pass"][1][2] = forma["pass"][1][2]
forma["no-pass"][1][6] = forma["pass"][1][6]
for pers in ipairs(forma["pass"][1]) do
forma["pass"][1][pers] = mw.ustring.gsub(forma["pass"][1][pers], "üi", "uï")
end
for fila in ipairs(forma["no-pres-subj"]) do
for pers in ipairs(forma["no-pres-subj"][fila]) do
forma["no-pres-subj"][fila][pers] = mw.ustring.gsub(forma["no-pres-subj"][fila][pers], "üi", "uï")
end
end
forma["no-pres-subj"][5] = forma["no-pres-subj"][3]
forma["no-pres-subj"][4] = forma["no-pres-subj"][2]
forma["no-pres-subj"][3] = forma["no-pres-subj"][1]
forma["no-pres-subj"][1] = {}
forma["no-pres-subj"][1][4] = forma["pres-subj"][1][4]
forma["no-pres-subj"][1][5] = forma["pres-subj"][1][5]
forma["no-pres-subj"][2] = {}
for pers in pairs(forma["pres-subj"][2]) do
forma["no-pres-subj"][2][pers] = forma["pres-subj"][2][pers]
end
for pers = 4, 5 do
forma["no-pres-subj"][3][pers] = mw.ustring.gsub(forma["no-pres-subj"][3][pers], "uï", "üi")
end
for pers in pairs(forma["no-pres-subj"][4]) do
forma["no-pres-subj"][4][pers] = mw.ustring.gsub(forma["no-pres-subj"][4][pers], "üi", "uï")
end
for fila = 1, 2 do
for pers in pairs(forma["pres-subj"][fila]) do
forma["pres-subj"][fila][pers] = mw.ustring.gsub(forma["pres-subj"][fila][pers], "üi", "uï")
end
end
forma["no-imperf-subj"][1] = {}
forma["no-imperf-subj"][1][2] = forma["imperf-subj"][1][2]
forma["no-imperf-subj"][1][6] = forma["imperf-subj"][1][6]
forma["no-imperf-subj"][2] = {}
forma["no-imperf-subj"][2][2] = forma["imperf-subj"][2][2]
forma["no-imperf-subj"][2][6] = forma["imperf-subj"][2][6]
forma["no-imperf-subj"][3][1] = forma["imperf-subj"][3][1]
forma["no-imperf-subj"][3][2] = forma["imperf-subj"][3][2]
forma["no-imperf-subj"][3][3] = forma["imperf-subj"][3][3]
forma["no-imperf-subj"][3][4] = nil
forma["no-imperf-subj"][3][5] = nil
forma["no-imperf-subj"][3][6] = forma["imperf-subj"][3][6]
for fila in ipairs(forma["imperf-subj"]) do
for pers in pairs(forma["imperf-subj"][fila]) do
forma["imperf-subj"][fila][pers] = mw.ustring.gsub(forma["imperf-subj"][fila][pers], "üi", "uï")
end
end
forma["no-imp"] = {}
forma["no-imp"][1] = {}
forma["no-imp"][1][4] = forma["imp"][1][4]
forma["no-imp"][1][5] = forma["imp"][1][5]
forma["no-imp"][2] = {}
forma["no-imp"][2][2] = forma["imp"][3][2]
forma["no-imp"][2][3] = forma["imp"][3][3]
forma["no-imp"][2][6] = forma["imp"][3][6]
forma["no-imp"][2]["nota"] = forma["imp"][3]["nota"]
for fila = 1, 3, 2 do
for pers in pairs(forma["imp"][fila]) do
forma["imp"][fila][pers] = mw.ustring.gsub(forma["imp"][fila][pers], "üi", "uï")
end
end
return forma
end
return export