adding pos tags to the words in the input language