Text this: Foundations of constraint satisfaction/