Semantic tagging of text

Alex Reinhart – Updated November 3, 2026 notebooks · refsmmat.com

Many analyses of text rely on extracting features from that text: sentiment, writing style, embeddings, etc. The modern trend is toward uninterpretable features (such as vector embeddings), but it can still be useful to extract human-interpretable features. I’ll call this “semantic tagging”.

There is a bit of a disconnect: the CS/NLP people use very sophisticated techniques to extract uninterpretable features, while the linguistics people use very simple techniques (like regular expressions) to extract interpretable features. There is room in the middle.

Biber features

Douglas Biber introduced a set of 67 lexical and grammatical features in his book Variation across Speech and Writing (1988, Cambridge University Press). Appendix II gives the rules, which were largely simple part-of-speech patterns. Biber hand-edited the resulting matches to ensure they accurately detected the intended feature. Apparently Biber’s matcher was a Perl script that is not publicly available.

Other taggers are now available: