Text this: Optimality theory