Text this: Bidirectional optimality theory