allModules[g1,g2]

BifusionAlgebra[{g1,g2},ZZ/.#]&/@rules