Added very minimal handling of unknown words.