Text this: Constraint guided gradient descent