It gives positive reward to subgoals fulfilled and gives negative reward for unbound entities, unmet semantic constraints, sentence length, and ambiguous entities.
the best sentence for a given goal is the shortest unambiguous sentence which fulfills the communicative goal and all semantic constraints.