Manuscript Offprint
arXiv:2610.26220Babbar26 main x genre
Babbar26 main × genre: A Hybrid Dataset for Webpage Understanding
Aurélien Bournonville
Babbar.tech
France
GREYC, Université de Caen
Normandie
Caen, France
Clotilde Levy
Université de Caen Normandie
France
Thomas Largillier
GREYC, Université de Caen
Normandie
Caen, France
Guillaume Pitel
Babbar.tech
France
François Rioult
GREYC, Université de Caen
Normandie
Caen, France
Fabrice Maurel
GREYC, Université de Caen
Normandie
Caen, France
Abstract
We introduce BABBAR26, a multilingual dataset of 1111 web pages from 1006 domains in five languages (English, French, German, Spanish, Italian), jointly annotated for genre, following a compact five-class taxonomy, and for main content and boilerplate, as MAIN/NOISE regions anchored to the DOM. We describe the annotation guidelines and report double-annotation agreement on both tasks (97.1% on genre; content-level Cohen's for main content). Compared with the classic KI-04 genre benchmark, a median page has more DOM elements and more readable text. The dataset is released on Zenodo under a non-commercial licence, with access granted on request for academic research.
Keywords
web genre classification, web register, main content extraction, boilerplate removal, web corpus, annotation, multilingual
1 Introduction and Related Work
Web genre classification—identifying what kind of page a page is—and main content extraction—isolating its central content from the surrounding navigation, advertising, and other boilerplate, which we write MAIN and NOISE throughout the paper—have been studied almost independently, each with its own body of datasets.
Web genre classification. Automatic identification of web genre, closely related to the linguistic notion of register, ranges from early feature-based studies [11, 14] to large, carefully designed corpora such as CORE [6, 9] and multilingual efforts such as GINCO for Slovene [8]. These corpora rely on mutually incompatible taxonomies even categories with similar names often differ in scope [15]—and most are old (KI-04 dates from 2004, CORE from 2015): many are no longer retrievable, or distributed as plain text only, which rules out structure-aware or multimodal methods.
Main content extraction. Heuristic tools—Readability, jusText [13], and Trafilatura [1]—rely on hand-crafted rules over the HTML structure, while machine-learning tools such as Boilerpipe [7] and BoilerNet [10] train classifiers on labelled data. Large comparative benchmarks [3] evaluate them on English, article-oriented corpora collected between 2007 and 2013 (CleanEval, L3S-GN1, CETD, Dragnet), and conclude that no single method dominates and that the field is limited by a shortage of recent, diverse datasets; performance also degrades outside English [2, 5].
Linking the two tasks. The few studies connecting them treat one as a means to the other: Bing et al. [4] segment the page to support web page classification, while Nguyen-Hoang et al. [12] use genre to orient content extraction. Both point to a mutual dependency between genre and main content, yet no public dataset annotates the same pages for both tasks.
We address this gap with BABBAR26, a multilingual dataset (English, French, German, Spanish, Italian) of web pages jointly annotated for genre and for MAIN/NOISE regions, to enable hybrid, multi-scale webpage processing in which the two tasks inform one another.
Contributions.
• BABBAR26: 1133 pages in five languages from 1026 domains, jointly annotated for genre (five classes) and for DOM-anchored MAIN/NOISE regions.
-
A compact, empirically revised genre taxonomy and a per-genre annotation guide for delimiting the main content.
-
An assessment of annotation reliability on both tasks, and a structural comparison with the KI-04 benchmark (Section 4.1).
2 Dataset Construction
2.1 Source and collection
The pages are static HTML archives produced by the Babbar web crawler. The source pool consists of about 25,000 crawled pages spanning the five target languages (English, French, German, Spanish, Italian); the pool was shuffled before annotation to avoid genre
Aurélien Bournonville, Clotilde Levy, Thomas Largillier, Guillaume Pitel, François Rioult, and Fabrice Maurel
clustering. From this pool, 1284 pages were annotated and imported into the annotation pipeline via Label Studio. The resulting corpus is highly diverse in origin: the 1111 released pages span 1006 distinct domains, and the ten most frequent domains together account for only 34 pages (3.1% of the corpus), so no single site dominates.
2.2 Genre taxonomy
Pages are assigned one of five genres, defined by their dominant structure:
• Article: a central, continuous text block;
• List: a grid or stack of repeated items;
• Landing: heterogeneous blocks with no dominant repetition;
• Item: a page centred on a single object (product, profile);
• Interaction: an interface requiring a user action (form, search bar, media player, feed).
Two special-status labels complement them: Other is used when no active class fits, and [Poubelle] is reserved for pages that are unusable because the crawl rendered them insufficiently (unexecuted JavaScript, blocking pop-ups, undecipherable content). Pages labelled [Poubelle] are excluded from the release, while the few remaining Other pages are excluded but kept from the genre statistics (Section 4) to support our taxonomy.
2.3 Main content annotation schema
Each page is annotated with MAIN (main content) and NOISE (boilerplate) regions. The guiding principle is structure over semantics: annotation reflects what an extractor sees (the dominant visual structure), not the commercial intent of the page. For instance, a page whose purpose is to sell but whose layout is a repetitive product grid is annotated List, not Landing.
Each MAIN region is anchored to a specific DOM node via a dom_path (an index path from document .documentElement), rather than being stored only as pixel coordinates. DOM anchoring lets a region be re-validated or re-attached even if the page shifts slightly on re-rendering, which matters for the long-term stability of the corpus.
2.4 Annotation tooling and protocol
Annotation was carried out in a private institutional multi-annotator tool (Scribe) with a fixed reference rendering: the annotation viewport is pinned to px regardless of the annotator's screen, so stored coordinates are comparable across workstations. The reference rendering engine is WebKit; any automated re-validation of DOM anchoring must use the same engine, since a given dom_path can resolve differently across engines.
3 Annotation Guidelines
The full guide is distributed with the dataset; we summarise its key decisions here.
Multi-label. A page may carry two structural labels (e.g., List|Interaction) only in cases of genuine structural hybridity—a real nesting of two structures on the same page. The canonical example
Table 1: Summary of the per-genre MAIN decision (condensed from the annotation guide).
| Genre | Dominant structure | Main content |
|---|---|---|
| Article | Central, continuous text block | Article body (title, text, integrated images); exclude comments, sidebars, links |
| List | Grid/stack of repeated items | The items and their integrated links/buttons; exclude nav, recommendations |
| Landing | Heterogeneous blocks | All content blocks (features, testimonials, FAQ, CTA); exclude nav/footer, hidden modal messages |
| Item | Page centred on one object | Description, specs, images; exclude “similar products”, reviews widgets, nav |
| Interaction | Interface requiring a user action | Form / search bar / media player / main feed; exclude promo text, recommendations |
is a Reddit-style feed, where each list item itself contains an Interaction structure (vote, reply, share). Multi-label must not become a default escape hatch for hesitation.
Ambiguity priority rules. For a doubtful block (e.g., an end-of-page FAQ or a testimonials section): it is MAIN if visually integrated into the central body, and NOISE if it is a self-standing widget or sidebar. For a doubtful interactive element (button, link): MAIN if it is part of a central-body item, NOISE if it navigates elsewhere. When in doubt, consult the original HTML.
4 Dataset Composition and Statistics
The released corpus and all statistics below are computed on the reference annotation profile, which is the profile that received the additional correction passes. Of the 1284 annotated pages, we discard the 151 [Poubelle] pages (unusable renderings) and an additional 22 pages that failed a systematic geometric integrity check on their MAIN regions (DOM anchoring either absent, unresolvable, or producing overlapping/aberrant geometry with no safe automatic repair), leaving 1111 released pages. Within these, 1104 fall into the five active genres; the remaining 7 are 5 pages labelled Other/Technical only and 2 pages whose labels straddle two groups (Landing+Article; Item+Article).
Language distribution. Table 3 gives the language mix of the 1111 released pages (language taken from the <html> lang attribute, with langdetect as a fallback for pages lacking it. English dominates, followed by French, then German, Spanish and Italian; a residual 8 pages (0.7%) receive isolated fallback detections that are most likely false positives on short, low-signal pages rather than additional languages.
Page length. Pages are long and heterogeneous. Over the 1111 released pages, the full Markdown linearisation averages 58,951
Babbar26 main × genre: A Hybrid Dataset for Webpage Understanding
Table 2: Genre distribution over the 1111 classified pages.
| Genre | Pages | % |
|---|---|---|
| List | 324 | 29.3 |
| Article | 308 | 27.9 |
| Landing | 265 | 24.0 |
| Item | 147 | 13.3 |
| Interaction | 60 | 5.4 |
| other/multilabel | 7 | 0.6 |
| Total | 1111 | 100.0 |
Table 3: Language distribution of the 1111 released pages.
| Language | Pages | % |
|---|---|---|
| English (en) | 756 | 68.0 |
| French (fr) | 231 | 20.8 |
| German (de) | 66 | 5.9 |
| Spanish (es) | 35 | 3.2 |
| Italian (it) | 15 | 1.4 |
| other / undetermined | 8 | 0.7 |
characters (median 29,037), while the annotated MAIN content averages 11,815 characters (median 5,824). Main content is shortest on Interaction and Item pages (4,325 and 5,196 characters on average) and longest on List and Article pages (17,267 and 13,002).
4.1 Structural Richness Relative to KI-04
Because BABBAR26 is distributed as full HTML archives, we compare its median page with that of KI-04 [11], a widely used genre collection assembled in 2004, using the same extraction pipeline on both corpora (Table 6). A median BABBAR26 page has more DOM elements, a deeper tree, and more readable text, while being markedly more code-dominated (19 script tags vs. 1). This additional structure is precisely the signal that DOM- and layout-based methods rely on, and it motivates anchoring our annotation to the DOM (Section 2.3).
5 Inter-Annotator Agreement
Agreement is measured by Cohen's between the two annotation profiles, separately for the two tasks (genre and region delimitation) and over two annotation passes (Table 7).
For context, comparable web-genre corpora report lower figures on much finer-grained taxonomies: GINCO reaches a nominal Krippendorff's of 0.71 over 24 categories [8], and the CORE schema was reported at over 56 sub-categories and 0.66 over its 8 main categories [9]. Our higher agreement is consistent with a deliberately coarser five-class taxonomy designed for reliability, and should be read in that light rather than as a strictly comparable number.
Content-level agreement. In addition to the geometric agreement above, we report a real-content agreement metric defined on DOM leaf units (each visible text node, image, or form element counts as one unit, independently of its size), computed between the two profiles with near-full coverage (the reference profile and a validation profile) over their 1084 commonly rendered pages. This metric complements the geometric and is the most faithful estimate of agreement on the content actually captured. Globally it reaches raw agreement and Cohen's ; per genre (Table 8) it is highest on Interaction and Item pages (fewer, better-delimited main units) and lowest on Article pages, where the main/comment/related boundary is subtler.
Genre agreement. After a first annotation pass, the two profiles agreed on of pages (938/1110). We then added ambiguity-resolution rules to the annotation guide and carried out a second pass, after which agreement rose to (1078/1110).
6 Ethics, Licensing and Availability
Source content. The pages were collected by the Babbar web crawler from publicly accessible websites. Their content remains the property of the respective site owners; our contribution, and what we license, is the annotation layer (genre labels, MAIN/NOISE regions and their DOM anchors) together with the annotation guide.
Licensing and access. The annotations are released under the Creative Commons Attribution-NonCommercial 4.0 International licence (CC BY-NC 4.0). Because the HTML archives contain third-party content, they are not openly redistributed: they are deposited on Zenodo as restricted files, and access is granted on request to researchers affiliated with academic or research institutions, for non-commercial research purposes only (https://doi.org/10.5281/zenodo.23353596). The record metadata, documentation and licence are publicly visible.
Personal data. Some pages (e.g., user profiles, forum threads, customer reviews) may contain personal data published by their authors. We collected nothing beyond what was publicly displayed, made no attempt to identify individuals, and did not annotate personal information. Restricting access to the archives limits further dissemination, and any individual or site owner may request the removal of a page, which will then be withdrawn from subsequent versions of the dataset.
7 Conclusion and Future Work
We introduced BABBAR26, a multilingual corpus of 1111 web pages from 1006 domains, jointly annotated for genre and for DOM-anchored MAIN/NOISE regions—to our knowledge the first public resource combining both tasks on the same pages. Agreement is high on both tasks, and the corpus is structurally and textually richer than the classic KI-04 benchmark, which makes it suited to structure-aware methods. Future work includes a quantitative study of how main content varies across genres, a per-genre, per-language benchmark of existing extractors, and joint models for genre classification and main content extraction.
References
[1] Adrien Barbaresi. 2021. Trafilatura: A Web Scraping Library and Command-Line Tool for Text Discovery and Extraction. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: System Demonstrations. Association for Computational Linguistics, Online, 122–131. doi:10.18653/v1/2021.acl-demo.15
Aurélien Bournonville, Clotilde Levy, Thomas Largillier, Guillaume Pitel, François Rioult, and Fabrice Maurel
Table 4: Genre × language over the 1104 classified pages.
| Genre | en | fr | de | es | it | oth. | Tot. |
|---|---|---|---|---|---|---|---|
| Article | 219 | 62 | 13 | 8 | 4 | 2 | 308 |
| Interaction | 40 | 13 | 5 | 2 | 0 | 0 | 60 |
| List | 217 | 73 | 19 | 11 | 2 | 2 | 324 |
| Item | 100 | 28 | 11 | 3 | 5 | 0 | 147 |
| Landing | 173 | 55 | 18 | 11 | 4 | 4 | 265 |
Table 5: Mean length by genre (characters) and mean number of MAIN regions per page.
| Genre | n | Full (mean) | Main (mean) | #Main reg. |
|---|---|---|---|---|
| Article | 308 | 58,264 | 13,002 | 4.57 |
| Interaction | 60 | 55,823 | 4,325 | 1.63 |
| List | 324 | 61,068 | 17,267 | 2.63 |
| Item | 147 | 53,781 | 5,196 | 2.05 |
| Landing | 265 | 60,790 | 8,573 | 2.89 |
Table 6: Median page in BABBAR26 (1,104 pages) vs. KI-04 (1,239 pages).
| Median per page | BABBAR26 | KI-04 | Ratio |
|---|---|---|---|
| File size | 125 KB | 24.9 KB | 5.0× |
| DOM elements | 712 | 310 | 2.3× |
| DOM depth | 18 | 13 | 1.4× |
| script tags | 19 | 1 | 19× |
| style tags | 2 | 0 | - |
| Readable text (chars) | 6,187 | 3,353 | 1.9× |
| Text / byte ratio | 0.050 | 0.175 | 0.29× |
Table 7: Cohen's agreement, by task and pass.
| Pass | κ regions | κ genre |
|---|---|---|
| Pass 1 (initial) | 0.803 | 0.824 |
| Pass 2 (after revision) | 0.84 | 0.971 |
Table 8: Content-level agreement (DOM leaf units) by genre, between the two near-full-coverage profiles.
| Genre | # units | Raw agr. | κ |
|---|---|---|---|
| Article | 52,995 | 82.3% | 0.642 |
| Interaction | 5,770 | 94.6% | 0.893 |
| List | 93,662 | 89.3% | 0.780 |
| Item | 23,606 | 92.5% | 0.840 |
| Landing | 31,819 | 85.8% | 0.716 |
[2] Adrien Barbaresi and Gaël Lejeune. 2020. Out-of-the-Box and into the Ditch? Multilingual Evaluation of Generic Text Extraction Tools. In Proceedings of the 12th Web as Corpus Workshop (WAC-XII). European Language Resources Association, Marseille, France, 5–13. https://aclanthology.org/2020.wac-1.2/
[3] Janek Bevendorff, Sanket Gupta, Johannes Kiesel, and Benno Stein. 2023. An Empirical Comparison of Web Content Extraction Algorithms. In Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR '23). ACM, Taipei, Taiwan, 2594–2603. doi:10.1145/3539618.3591920
[4] Lidong Bing, Rui Guo, Wai Lam, Zheng-Yu Niu, and Haifeng Wang. 2014. Web Page Segmentation with Structured Prediction and its Application in Web Page Classification. In Proceedings of the 37th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR '14). ACM, Gold Coast, Queensland, Australia, 767–776. doi:10.1145/2600428.2609630
[5] Aurélien Bournonville, Gaël Dias, Thomas Largillier, Emmanuel Marchand, Fabrice Maurel, Guillaume Pitel, and François Rioult. 2025. Multilingual Evaluation of Main Content Extractors for Web Pages. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR '25). ACM, Padua, Italy, 2853–2857. doi:10.1145/3726302.3730234
[6] Jesse Egbert, Douglas Biber, and Mark Davies. 2015. Developing a Bottom-Up, User-Based Method of Web Register Classification. Journal of the Association for Information Science and Technology 66, 9 (2015), 1817–1831. doi:10.1002/asi.23308
[7] Christian Kohlschütter, Peter Fankhauser, and Wolfgang Nejdl. 2010. Boilerplate Detection Using Shallow Text Features. In Proceedings of the Third ACM International Conference on Web Search and Data Mining (WSDM '10). ACM, New York, NY, USA, 441–450. doi:10.1145/1718487.1718542
[8] Taja Kuzman, Peter Rupnik, and Nikola Ljubešić. 2022. The GINCO Training Dataset for Web Genre Identification of Documents Out in the Wild. In Proceedings of the Thirteenth Language Resources and Evaluation Conference (LREC). European Language Resources Association, Marseille, France, 1584–1594. https://aclanthology.org/2022.lrec-1.170/
[9] Veronika Laippala, Samuel Rönnqvist, Miika Oinonen, Aki-Juhani Kyröläinen, Anna Salmela, Douglas Biber, Jesse Egbert, and Sampo Pyysalo. 2022. Register Identification from the Unrestricted Open Web Using the Corpus of Online Registers of English. Language Resources and Evaluation (2022), 1045–1079. doi:10.1007/s10579-022-09624-1
[10] Jurek Leonhardt, Avishek Anand, and Megha Khosla. 2020. Boilerplate Removal using a Neural Sequence Labeling Model. In Companion Proceedings of the Web Conference 2020 (WWW '20). ACM, Taipei, Taiwan, 226–229. doi:10.1145/3366424.3383547
[11] Sven Meyer zu Eissen and Benno Stein. 2004. Genre Classification of Web Pages: User Study and Feasibility Analysis. In KI 2004: Advances in Artificial Intelligence (Lecture Notes in Computer Science, Vol. 3238). Springer, Ulm, Germany, 256–269.
[12] Bao-Dai Nguyen-Hoang, Bao-Tran Pham-Hong, Yiping Jin, and Phu T. V. Le. 2018. Genre-Oriented Web Content Extraction with Deep Convolutional Neural Networks and Statistical Methods. In Proceedings of the 32nd Pacific Asia Conference on Language, Information and Computation (PACLIC). Association for Computational Linguistics, Hong Kong. https://aclanthology.org/Y18-1055/
[13] Jan Pomikálek. 2011. Removing Boilerplate and Duplicate Content from Web Corpora. Ph. D. Dissertation. Masaryk University, Faculty of Informatics, Brno.
[14] Marina Santini. 2007. Characterizing Genres of Web Pages: Genre Hybridism and Individualization. In Proceedings of the 40th Hawaii International Conference on System Sciences (HICSS). IEEE.
[15] Serge Sharoff, Zhili Wu, and Katja Markert. 2010. The Web Library of Babel: Evaluating Genre Collections. In Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10). European Language Resources Association (ELRA), Valletta, Malta. https://aclanthology.org/L10-1011/