Text this: A generalized dual potential for inelastic Constitutive Artificial Neural Networks