Extraction Changes the Route: Main-Content Extraction and Language Identification in Web Corpora

Toprak Seda Karaosmanoğlu


Abstract
Main-content extraction commonly precedes language identification (LID) and determines its input in web-corpus pipelines. We measure this dependency on 7,808 WebMainBench pages using three extractors and three LID systems. We compare human-selected main text with annotated-region and full-page extractor outputs. A context flip occurs when annotated-region extraction preserves the route on human-selected text but full-page extraction changes it. For pages with nonempty text and matching human-selected and annotated-region routes, context-flip rates are 1.10–3.20%. On the common eligible set, Magic-HTML has lower paired rates than Trafilatura for all three LID systems, with each corresponding 95% interval excluding zero. All-page route loss counts empty outputs or routes that differ from the route on human-selected text. Magic-HTML’s empty full-page outputs add 5.84 percentage points. The fixed snapshot’s coarse non_en–en difference is positive in all nine configurations and remains positive after standardization to the page-complexity field (meta.level). A 100-page audit finds 35 unsupported, 29 supported, and 36 indeterminate routes. Of 35 unsupported flips, 26 move from predicted English to another route, and 17 involve changed content selection alone or in mixed cases. Among supported flips, 21 move to English. Extraction context can change text availability and downstream routing.
Anthology ID:
2026.wac-1.26
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:
297–307
Language:
URL:
https://aclanthology.org/2026.wac-1.26/
DOI:
Bibkey:
Cite (ACL):
Toprak Seda Karaosmanoğlu. 2026. Extraction Changes the Route: Main-Content Extraction and Language Identification in Web Corpora. In Proceedings of the 13th Web-as-Corpus Workshop, pages 297–307, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Extraction Changes the Route: Main-Content Extraction and Language Identification in Web Corpora (Karaosmanoğlu, WAC 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.wac-1.26.pdf