LLM-ASSISTED MARKUP OF ENTITIES IN TEI: A CASE STUDY

This paper presents a case study of marking up TEI (Text Encoding Initiative) documents using large language models. We detail our experiments using LLMs for named entity recognition and entity linkage in a corpus of TEI documents. The corpus consists of four journals co-edited by the Swiss-German theologian, Karl Barth (1886–1968). We aimed to enrich the TEI markup by adding XML elements to mark up entities and attributes to link to QIDs on Wikidata. We experimented with using both cloud-based frontier models and local open-source models to enrich a subset of 34 articles from the corpus. After analyzing the outcome using both human reviewers and automated analysis, we indicate where our methodology proved successful and where we encountered problems. We conclude that LLMs can perform named entity recognition and linking in TEI documents, but that the combined financial and labor cost of scaling this procedure to the full corpus would be relatively high without optimizing our current pipeline.

Authors

Institutions

Publication Details

Journal
Journal of Humanities and AI
Published
2026-09-30
DOI
https://doi.org/10.66532/jhai.2026.0023
Primary Topic
Digital Humanities and Scholarship
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

LLM-ASSISTED MARKUP OF ENTITIES IN TEI: A CASE STUDY

Clifford W. Anderson, Arne Käfer, MORGAN FUKSA, JOSEPH (SANG WUK) LEE et al.
Journal of Humanities and AI
Digital Humanities and Scholarship
article

LLM-ASSISTED MARKUP OF ENTITIES IN TEI: A CASE STUDY

Clifford W. Anderson, Arne Käfer, MORGAN FUKSA, JOSEPH (SANG WUK) LEE, JONAH CAUSIN
article en

Abstract

This paper presents a case study of marking up TEI (Text Encoding Initiative) documents using large language models. We detail our experiments using LLMs for named entity recognition and entity linkage in a corpus of TEI documents. The corpus consists of four journals co-edited by the Swiss-German theologian, Karl Barth (1886–1968). We aimed to enrich the TEI markup by adding XML elements to mark up entities and attributes to link to QIDs on Wikidata. We experimented with using both cloud-based frontier models and local open-source models to enrich a subset of 34 articles from the corpus. After analyzing the outcome using both human reviewers and automated analysis, we indicate where our methodology proved successful and where we encountered problems. We conclude that LLMs can perform named entity recognition and linking in TEI documents, but that the combined financial and labor cost of scaling this procedure to the full corpus would be relatively high without optimizing our current pipeline.

Journal of Humanities and AIVol. 1(3)
Yale University (US)
Decent work and economic growth
Openalex Percentile: Top 2%
Digital Humanities and Scholarship
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.