Text this: Identifying chaotic dynamics in nonuniformly dissipative and conservative dynamical systems from the varying divergence