extracting words from the text