Abstract
Attributed quotes serve as a vital record of public discourse, yet massive collections of these quotes often remain inaccessible to researchers without advanced computational skills. This paper presents a web interface for Quotebank, a corpus of 235 million unique quotes extracted from nearly 200 million English news articles spanning 2008 to 2020. By integrating BERT-based extraction with Wikidata enrichment and an optimized Elasticsearch backend, the system enables journalists and social scientists to perform complex, faceted searches in near-real-time. We demonstrate how transforming "dark data" into an accessible tool facilitates granular analysis of global rhetoric across a decade of news.
1. Introduction
In the landscape of modern journalism, attributed quotes are often described as the "DNA" of news. They provide direct insight into a speaker's perspective, lend credibility to reporting, and serve as primary evidence for historical and social analysis. However, as the volume of digital news has exploded, the ability to analyze these quotes at scale has lagged. While Natural Language Processing (NLP) techniques can now extract millions of quotes from text corpora, the resulting datasets are frequently stored in massive, unstructured formats that are difficult for non-technical users to navigate.
To address this gap, researchers from EPFL and the University of Konstanz developed Quote Erat Demonstrandum (a play on the mathematical phrase Quod Erat Demonstrandum), a high-performance web interface designed to make the Quotebank corpus searchable and actionable for the broader research community.
2. The Challenge of "Dark Data" in NLP
Large-scale datasets like Quotebank often exist as "dark data"—valuable information that is collected and processed but remains underutilized due to technical barriers. Existing quote repositories generally fall into two categories: small, manually curated collections like WikiQuote, or massive, static benchmarks designed for training NLP models. Neither serves the needs of a social scientist interested in tracking, for example, the evolution of climate change rhetoric among specific demographics over a decade.
By building a scalable, user-friendly system, the authors argue that accessibility itself is a significant research contribution. The goal is to move beyond static data releases toward dynamic tools that support public inquiry and longitudinal social studies.
3. System Architecture and Methodology
The pipeline from raw news articles to an interactive user interface involves several sophisticated layers of processing and optimization:
3.1 Extraction and Attribution
The core of the system relies on Quobert, a BERT-based model specifically trained to identify quotes and attribute them to the most likely speaker within a news article. This ensures a high degree of accuracy in linking statements to their originators, even in complex narrative structures.
3.2 Knowledge Graph Enrichment
To move beyond simple keyword searches, the system links speakers to Wikidata. This enrichment process maps speakers to a vast knowledge graph containing metadata for approximately 97 million entities. This allows for "faceted" searching, where users can filter results by the speaker’s nationality, gender, occupation, or other biographical attributes.
3.3 Backend and Storage Optimization
Indexing 235 million quotes presents significant infrastructure challenges. The team utilized Elasticsearch to manage the search backend. To maintain responsiveness, they implemented a strategic "querying-indexing trade-off." By aggregating complex text fields during the indexing phase, the system ensures that user-facing queries remain lightning-fast. Furthermore, through database normalization and data type optimization, the team reduced the storage footprint from an estimated 2TB to approximately 500GB—a 4x reduction that enhances both performance and sustainability.
4. User Interface and Features
The frontend, built with React.js, provides two distinct levels of analysis:
- Quote-level View: This view aggregates all instances of a specific quote across the web, allowing researchers to see how a particular statement propagated through different news outlets.
- Article-level View: This provides the necessary context, showing the quote within its original news story. This "context window" is crucial for verifying the intent and tone of the speaker, preventing the misinterpretation that often occurs when quotes are viewed in isolation.
Additionally, the Search Engine Results Page (SERP) features a D3.js-powered histogram. This visualization tracks the frequency of a quote over time, enabling users to identify when specific rhetoric trends, peaks, or fades from public discourse.
5. Key Insights and Results
The deployment of the Quotebank interface demonstrates that scale and usability can coexist. Key achievements include:
- Unprecedented Scale: Access to 235 million unique quotes from 196 million articles, making it the largest searchable database of its kind.
- Granular Analysis: The ability to answer complex questions, such as "What are female scientists in Switzerland saying about climate change?" through the combination of faceted search and Wikidata metadata.
- Efficiency: Near-real-time query performance despite the massive underlying dataset, supported by a significantly optimized storage architecture.
6. Limitations and Future Work
While the system represents a major step forward, the authors acknowledge certain limitations. BERT-based attribution, while state-of-the-art, is not infallible; linguistic complexities can still lead to occasional misattributions. Future work will focus on improving speaker disambiguation (distinguishing between individuals with the same name) and analyzing search logs to better understand user needs.
Ultimately, the team aims to develop an end-to-end, real-time pipeline that can automatically ingest new news articles, ensuring that the Quotebank corpus remains a living, breathing record of global conversation.
Summary updated