Methods, systems, and apparatus, including computer programs language encoded on a computer storage medium for a language modification system whereby input jargon language is modified to plain language using a reinforcement learning system with a real-time reward grammar engine. The actions of an agent are limited by three different methods: an operational window that defines the grammatical boundary or states that an agent can perform actions within an environment, state groups that specify that actions must be performed to all states belonging to a state group, and the length of the environment or input sentence. The reinforcement learning agent learns a policy of edits and modifications to a sentence such that the output sentence is grammatical and retains the intended meaning.
Reinforcement Learning Approach to Modify Sentences Using State Groups