An Inclusive Notion of Text

Ilia Kuznetsov, Iryna Gurevych

TL;DR

Natural language processing (NLP) has outgrown the traditional view of text as a flat sequence of words, increasingly relying on structural and non-linguistic elements like formatting, hyperlinks, and emojis. This paper introduces a systematic taxonomy and a lightweight reporting schema to formally define and document what "text" actually means across different studies, paving the way for better model reproducibility and generalizability.

What Problem Does This Paper Address?

When we talk about "text" in NLP, what do we actually mean? Historically, the field treated text as clean, linear written language. Today, however, language models are trained on rich, messy real-world data: Wikipedia articles with complex hierarchies, StackOverflow posts embedded with code snippets, and PDFs filled with tables and citations.

The problem is that the NLP community lacks a standardized framework to describe these non-linguistic elements. One researcher's definition of text might be raw character streams, while another's includes HTML layout structure. This ambiguity severely hurts reproducibility. If a model is trained on data that includes structural markup, its performance might plummet when deployed on plain text—even if the language and domain are identical. Without a clear way to document these differences, diagnosing such distribution shifts is incredibly difficult.

Figure 1: The same textual document (a) can be seen in many ways (b-d) depending on the assumed notion of text: while a syntax researcher might focus on writ- ten language (b), a summarization system can use doc- ument structure (c), and multimodal applications might use non-linguistic elements like tables (d). Systemat- ically capturing the differences between the assumed notions of text (top) requires a taxonomy of inclusive approaches to text. Such taxonomy is currently lack- ing.

Methods

To bridge this gap, the authors propose a two-tier taxonomy that categorizes text features into two main high-level classes:

  1. Body: The content-bearing parts of the document. This is subdivided into Content (written language, math, code, emojis), Decoration (fonts, styles, colors), and Structure (paragraphs, sections, page numbers).
  2. Context: How the text relates to the broader world. This is subdivided into Linking (hyperlinks, citations), Adjacency (comments, edit histories), and Group context (tags, document collections).

To ground this taxonomy, the authors conducted a bottom-up qualitative analysis of documents from four distinct text sources. Finally, they designed a lightweight, open-ended reporting schema consisting of targeted questions about the document's body, context, and production environment. This schema is intended to be included in future publications, similar to existing "data statements" or "model cards."

Datasets

Because this is a conceptual and framework paper, the authors did not introduce a massive machine learning dataset. Instead, they curated and manually annotated a small, representative corpus of 20 documents (5 documents each) from four major NLP data sources to validate their taxonomy:

  • Wikipedia: Representing collaborative encyclopedias.
  • BBC News: Representing carefully edited newswire.
  • StackOverflow: Representing user-generated technical discourse.
  • ACL Anthology: Representing scientific discourse.

Key Insights and Ideas

  • Text is Multi-Dimensional: Naturally occurring text is rarely flat. Secondary signals like font styles (Decoration) or section hierarchies (Structure) carry vital information that modern language models frequently exploit, whether explicitly designed to do so or not.
  • The Production Environment Dictates the Text: The interface used to create text heavily influences its final form. A rich Markdown editor on StackOverflow encourages code blocks and structural links, whereas a simple text box restricts the user to linear written language.
  • Hidden Confounders in ML: The lack of consensus on what constitutes text introduces hidden variables into machine learning pipelines. Documenting the "data journey"—from text production to preprocessing—is essential to ensure that models generalize safely to new data distributions.
  • Ethical and Efficiency Trade-offs: Moving toward an inclusive notion of text isn't free. Incorporating context like edit histories can expose models to deleted or private information, and processing rich layouts significantly increases computational overhead.

Key Results

The primary result of the paper is the validated taxonomy itself, which successfully maps out the non-linguistic elements across diverse data sources.

Figure 3: Taxonomy classes in a WIKI document. Besides language, content (A1) includes link anchors and images, decoration (A2) marks code-switching to Latin, the article is structured (A3), linked to external sources via hyperlinks and citations (B1), accompanied by an edit history (B2) and contextualized by its Categories (B3).

Through their source analysis, the authors demonstrated distinct profiles for common datasets. For instance, while Wikipedia and the ACL Anthology are dense with math and explicit citations, StackOverflow relies heavily on code and user-adjacency features like comment threads. The authors also provided a concrete, real-world implementation example of their reporting schema by fully documenting StackOverflow's text characteristics in the appendix.

Limitations and Future Work

  • Multimedia Boundaries: The taxonomy focuses strictly on textual documents and does not deeply differentiate multimedia elements (e.g., it treats all images and graphics under a single umbrella).
  • Small-Scale Source Analysis: The qualitative analysis was limited to 20 documents. While the authors argue that data sources use non-linguistic elements consistently, larger quantitative studies are needed to measure exactly how frequently features like text formatting appear.
  • Manual Reporting Overhead: The proposed reporting schema relies on manual, open-ended reporting by researchers. The authors note that future work should explore more flexible, automated, ontology-based documentation frameworks.
  • Unquantified Efficiency Impacts: The paper highlights that modeling extra textual dimensions might increase computational demands, but notes that systematic studies on how an inclusive notion of text affects training efficiency are still entirely lacking.

Summary updated

BibTeX
@inproceedings{kuznetsov2023inclusive,
  author = {Ilia Kuznetsov and Iryna Gurevych},
  title = {{An Inclusive Notion of Text}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.633},
}
Figure