Text this: Formulation and implementation of nonlinear elasticity in advanced constitutive models in geomechanics