A text is given to this code on which it tags all words in it and can extract those that have been tagged as nouns.