implementing pos tagging and fixing errors in the dictionary