Text this: Synthesis with rational environments