Added code to predict future text and handle unknown words