Annotating and Classifying Direct Speech in Historical Danish and Norwegian Literary Texts

Ali Al-Laith, Alexander Conroy, Kirstine Nielsen Degn, Jens Bjerring-Hansen, Daniel HershcovichNodalida/baltic-hlt 2025

TL;DR

Researchers have developed a specialized dataset and fine-tuned Transformer-based language models to automatically identify direct speech in 19th-century Danish and Norwegian literature. Their top-performing model reveals a surprising historical trend: contrary to popular literary theory, the prevalence of dialogue in these novels actually declined toward the end of the century.

What Problem Does This Paper Address?

In the world of Digital Humanities, distinguishing between a narrator’s voice and a character’s dialogue is crucial for understanding narrative style and character dynamics. However, 19th-century Scandinavian literature is a "wild west" of punctuation. Authors of the era were inconsistent, using German-style quotation marks, French guillemets, dashes, or sometimes no typographic markers at all to indicate speech.

Examples of inconsistent speech marking in 19th-century Scandinavian literature.

While human readers can usually navigate these shifts intuitively, computational models struggle with such inconsistent data. Existing NLP tools often fail on historical texts because they are trained on modern, standardized web data. This paper aims to bridge that gap by creating a high-quality annotated dataset and testing which state-of-the-art language models can best handle the linguistic "noise" of the 1800s.

Methods

The authors framed the problem as a token classification (sequence tagging) task. They defined four specific labels for the models to predict:

  1. Speech (SP): The actual words spoken by a character.
  2. Speech Marker (SM): Typographic indicators like quotes, dashes, or colons.
  3. Speech Tag (ST): "Inquit" phrases like he said or she whispered.
  4. Other (O): Standard narration, indirect speech, or thoughts.

They evaluated four Transformer-based models: DanskBERT, NB-BERT-base (Norwegian), MeMo-BERT-03 (specifically pre-trained on historical texts), and the Danish Foundation Model (DFM). After fine-tuning these models on their new dataset, they used the best-performing one to perform a large-scale quantitative analysis of the entire MeMo corpus.

Datasets

  • The MeMo Corpus: The primary source, containing 859 Danish and Norwegian novels (over 64 million tokens) from the late 19th century.
  • The Speech Corpus (New): A newly annotated subset created for this study. It consists of 100 segments (three paragraphs each) from 100 different novels.
  • Annotation Quality: Three literary scholars performed the annotation using the INCEpTION platform. They achieved a Cohen’s Kappa score of 0.92, indicating exceptionally high agreement and data reliability.

Key Insights and Ideas

  • Foundation Models vs. Domain-Specific Models: Interestingly, the Danish Foundation Model (DFM)—a general-purpose model trained on a massive modern "Gigaword" corpus—outperformed MeMo-BERT, which was specifically pre-trained on historical novels. This suggests that for complex sequence tagging, the sheer scale and linguistic depth of a foundation model can outweigh the benefits of domain-specific pre-training.
  • Challenging Literary Orthodoxy: A common assumption in literary history is that the rise of "Realism" in the late 19th century led to an increase in direct speech to make fictional worlds feel more "real." This study’s data-driven approach suggests the opposite.
Proportion of direct speech in the MeMo corpus from 1870 to 1900.

The data shows that direct speech peaked at approximately 42% in 1874 and dropped to 29% by 1889. The authors hypothesize this decline reflects a shift toward "Naturalism" (influenced by French writers like Zola), where authors favored free indirect discourse—blending a character’s thoughts directly into the narration—rather than using explicit dialogue.

Key Results

  • Top Performance: The DFM (Large) model was the clear winner, achieving an F1-score of 0.89 on the testing set.
  • Cross-Language Robustness: The Norwegian model (NB-BERT-base) performed surprisingly well (0.87 F1), confirming that Danish and Norwegian were linguistically similar enough during this period to share NLP resources effectively.
  • Corpus Analysis: Applying the model to the full 64-million-token corpus revealed that roughly 35% of the words in late 19th-century Scandinavian fiction are direct speech.

Limitations and Future Work

The authors acknowledge a few hurdles:

  • Scope of Speech: The current model only identifies direct speech. It does not yet capture indirect speech or free indirect discourse.
  • Temporal Bias: The testing set was drawn from the final years of the 19th century (1896–1899). While the model handled this well, more work is needed to ensure it generalizes across broader eras.
  • "Telling vs. Showing": Future research will look at the variety of speech tags used to see if authors moved toward more descriptive verbs as the century progressed.

Summary updated

BibTeX
@inproceedings{allaith2025annotating,
  author = {Ali Al-Laith and Alexander Conroy and Kirstine Nielsen Degn and Jens Bjerring-Hansen and Daniel Hershcovich},
  title = {{Annotating and Classifying Direct Speech in Historical Danish and Norwegian Literary Texts}},
  booktitle = {Nodalida/baltic-hlt},
  year = {2025},
}
Figure