Text this: Extracting dynamic adaptations from the context through reinforcement learning