Glossary
Text Encoding Initiative (TEI)
An XML standard for encoding literary and historical texts so their structure and scholarly annotations are machine-readable.
Also called: TEI, TEI XML
The Text Encoding Initiative (TEI) is a widely used XML-based standard, and the consortium that maintains it, for representing texts in digital form for humanities scholarship. It lets an encoder capture not just the words of a text but its structure, chapters, lines, stanzas, and scholarly features like manuscript variants, editorial notes, and marked-up named entities.
A TEI project defines a customized subset of the standard's controlled vocabulary of XML tags, called an ODD, suited to its material, then encodes texts against it. This differs from generic HTML markup, which describes how a page should look, TEI describes what a passage of text is and means, a far richer semantic layer built specifically for critical editions and textual scholarship, and it is designed for exchange between institutions and long-term archival preservation rather than display alone.
TEI is foundational infrastructure behind many of the digitized, structured corpora used in distant reading and cultural analytics research, since consistent metadata management and shared data standards are what make a corpus computationally usable across projects. Pitfalls include a real learning curve for new encoders, the fact that encoding decisions embed interpretive choices that are not neutral, and inconsistent local practice across projects, which can undercut interoperability even when everyone nominally follows the same standard.
Last reviewed September 22, 2026