The TextChunker function divides text into phrases and assigns each phrase a tag that identifies its type.