Counting Documents Is Not Counting Text: Unit Bias in Web-PDF Corpus Statistics

Luca Foppiano


Abstract
PDF corpora advertise their size in tokens, but every rate they publish (coverage, OCR routing, re-fetch recovery, language mix) is computed per document, and none decomposes its token total. Because PDF length is extremely skewed, the two units can describe the same corpus very differently. We ask how the headline statistics of a web-PDF corpus change when each document is weighted by the text it contributes rather than counted once. We used CC-MAIN-2021-31-PDF-UNTRUNCATED (7.9M Common Crawl PDFs, 32.6B tokens), the one public corpus that pairs the fragments Common Crawl stored with the re-fetched originals. Text mass is highly concentrated: 3.02% of text-bearing documents hold half the tokens (Gini 0.807). The clearest consequence is Common Crawl’s payload cap, which truncated 23.06% of these documents but 63.08% of their text. Reconstructing the truncated fragments and extracting both versions, two widely used text-layer parsers recover only 1.4% and 11.4% of that exposed text, so roughly 55–62% of the corpus’s text is unrecoverable from the crawl by such pipelines; under the 5 MiB cap adopted in March 2025, 30.19% of tokens would still be exposed. We recommend that corpus statistics be reported in both units, documents and tokens.
Anthology ID:
2026.wac-1.10
Volume:
Proceedings of the 13th Web-as-Corpus Workshop
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Pedro Ortiz Suarez, Laurie Burchell, Nikola Ljubešić, Yves Scherrer, Veronika Laippala, Vuk Dinić, Thom Vaughan
Venues:
WAC | WS
SIG:
SIGWAC
Publisher:
Association for Computational Linguistics
Note:
Pages:
107–114
Language:
URL:
https://aclanthology.org/2026.wac-1.10/
DOI:
Bibkey:
Cite (ACL):
Luca Foppiano. 2026. Counting Documents Is Not Counting Text: Unit Bias in Web-PDF Corpus Statistics. In Proceedings of the 13th Web-as-Corpus Workshop, pages 107–114, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Counting Documents Is Not Counting Text: Unit Bias in Web-PDF Corpus Statistics (Foppiano, WAC 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.wac-1.10.pdf