Some logic how to get the word.