added functionality that tags each word with a part of speech