Part of Speech tagging does exactly what it sounds like, it tags each word in a sentence with the part of speech for that word. This means it labels words as noun, adjective, verb, etc. PoS tagging also covers tenses of the parts of speech.
This is normally quite the challenge, but NLTK makes this pretty darn simple!
sample code: http://pythonprogramming.net
Tweets by Sentdex