Text this: A Variational Approach to Fracture and Other Inelastic Phenomena