Text this: Foundations of Rule Learning