Part-of-speech tagging
>>> sent = '''The disastrous disarray in the housing industry is a direct
result of decisions taken during the deregulation frenzy
of the Clinton presidency'''
>>> text = nltk.word_tokenize(sent)
>>> pos = nltk.pos_tag(text)
>>> pos
[('The', 'DT'), ('disastrous', 'JJ'), ('disarray', 'NN'), ('in', 'IN'), ('the', 'DT'),
('housing', 'NN'), ('industry', 'NN'), ('is', 'VBZ'), ('a', 'DT'), ('direct', 'JJ'),
('result', 'NN'), ('of', 'IN'), ('decisions', 'NNS'), ('taken', 'VBN'), ('during', 'IN'),
('the', 'DT'), ('deregulation', 'NN'), ('frenzy', 'NN'), ('of', 'IN'), ('the', 'DT'),
('Clinton', 'NNP'), ('presidency', 'NN')]