A part of speech tagger identifies the nouns, verbs, adjectives, etc. in a sentence. There are several programs that do this online, an example being https://parts-of-speech.info.
I am looking for a package that does this for LaTeX documents, which include mathematics equations. Ideally the verbs in the outputted pdf would be highlighted in one colour, the nouns in another etc. It appears this question on Stack overflow has had similar intentions, whilst this question wants to do the same thing with nominalizations.
My question, is does such a package exist?
[s]I [v]bought [i]Mom [d]flowers, where[s]is subject,[v]is verb, etc. Then, your task would be to run this input stream through an environment which would strip off the parts of speech and change the color of the next word on that basis. That sort of defeats the purpose of the question, but if there is interest in that, I am sure I could throw something together to demonstrate the idea – Steven B. Segletes Feb 04 '21 at 10:23