tagging program

definition: a computer program that attaches labels to the grammatical constituents of textual matter
example:
speech part: noun
synonyms: tagger

How tagging program is being used?