Text this: The Approximability of Learning and Constraint Satisfaction Problems