Input: Sentence 1: Tommy smiled at them encouragingly. Sentence 2: Tommy offered an encouraging grin.
Output: 

 yes