Text this: Automatic functions, linear time and learning