Text this: An algebraic characterization of affine manifolds with g-structure satisfying a homogeneity condition