don't generate redundant words at the end of session & clear input when generating output