---
title: "CUCWeb: A Catalan corpus built from the Web (2006)"
description: "CUCWeb shows how a web crawl became a searchable Catalan corpus of 166 million words and how its data performed in a verb…"
canonical: "https://research.elamur.ai/free/en/papers/boleda-2006-cucweb-catalan-corpus-built-web/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/boleda-2006-cucweb-catalan-corpus-built-web/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2006](https://md.research.elamur.ai/free/en/papers/2006/) / CUCWeb: A Catalan corpus built from the Web

# CUCWeb: A Catalan corpus built from the Web

Paper · 2006 · Gemma Boleda, Stefan Bott, Rodrigo Meza et al.

**Authors:** [Gemma Boleda](https://md.research.elamur.ai/free/en/authors/gemma-boleda/), [Stefan Bott](https://md.research.elamur.ai/free/en/authors/stefan-bott/), Rodrigo Meza, Carlos Castillo, [Toni Badia](https://md.research.elamur.ai/free/en/authors/toni-badia/) and Vicente López · **Year:** 2006 · **Venue:** Proceedings of the 2nd International Workshop on Web as Corpus · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

Proceedings of the 2nd International Workshop on Web as Corpus · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/W06-1704/)
- [PDF](https://aclanthology.org/W06-1704.pdf)

## Summary

For someone studying Catalan, finding a few examples of a word on the Web is easier than finding enough comparable examples to say how it behaves. A search engine can look for a spelling, while a linguist may want to find where that spelling is a pronoun, where a particular noun is the subject of a sentence, or which adjectives occur with it. CUCWeb addresses this problem by turning part of the Web into a stored, searchable collection with grammatical information attached to its words. The paper describes its construction, the searches it supports, and an early test of what similar data could contribute to [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/).

The authors began with a crawl designed to cover the Web in Spain. They used both site addresses and the location of the hosting network to decide where to crawl. A language classifier selected candidate Catalan pages. A dictionary-based filter and some additional checks screened for material of limited linguistic use, and a duplicate detector removed pages whose processed text was judged too similar. The finished collection contained 166,040,067 words in 204,238 documents. The authors added grammatical categories, features such as gender and tense, and functions such as subject and object. The search interface could then use those distinctions as well as the original words.

CUCWeb gave readers two ways to examine the collection. The example interface returned passages, with a simple mode for straightforward requests and an expert mode for sequences of grammatical conditions. The statistics interface grouped matches and reported how frequently each group occurred. The paper also reports a study of Catalan verb classes using an earlier, .es-only version of CUCWeb. That version yielded an average f-score of 0.71, above the reported baseline of 0.33. A smaller collection of conventional texts yielded 0.84 with manual grammatical tagging and 0.82 with automatic analysis. The comparison shows that the web data supplied useful evidence for the task, while the smaller collection supplied evidence that worked better in the study.

The authors connect that result to the difficulty of processing web text. Navigation and other recurring page material could enter the corpus, formatting could disrupt word boundaries, mixed-language pages could pass the filters, and similar documents could survive duplicate detection. Those problems matter because the corpus is designed to support counts and grammatical searches as well as reading. By keeping the collection and processing it locally, the authors could expose those search capabilities and revise the resource as better tools became available.

## Deep dive: CUCWeb: A Catalan corpus built from the Web

CUCWeb shows how a web crawl became a searchable Catalan corpus of 166 million words and how its data performed in a verb classification study. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Finding grammatical evidence for Catalan

A collection of texts becomes more useful for studying language when a reader can ask the same question across the collection and inspect the answers in context. A dictionary maker looking at a verb may need examples of the environments it occurs in. A teacher may want several passages illustrating a particular use of a familiar spelling. A researcher may need counts of those environments across many verbs. These questions concern what speakers and writers do with words, so the material needs to preserve examples of use and provide a way to find them. That combination is central to [corpus linguistics](https://md.research.elamur.ai/free/en/concepts/corpus-linguistics/).

The Catalan resource the authors identify as the largest annotated predecessor was CTILC, at about 50 million words. An annotated corpus is a text collection in which some linguistic information has already been recorded, allowing searches to depend on properties beyond spelling. The authors describe a practical restriction in CTILC's web interface. Users could search for one word at a time, view at most 50 hits, and had no way to download them. The size of the underlying collection and the amount of evidence accessible through a browser were therefore separate matters. A person who needed a sequence, a grammatical restriction, or a larger set of examples faced the constraints of the interface as well as those of the collection. Those constraints helped motivate CUCWeb’s approach to [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

A computational linguistics group worked with a computer science group that studied the Web, and their joint work led to CUCWeb. The latter group's Spanish Web Project set out to gather pages for questions about the Web in Spain. Some of those questions concerned links and how they were distributed. Others concerned the characteristics of pages, sites, and domains, including language. This made it possible to start with a large collection assembled for a broader purpose and then make a series of linguistic decisions about the part to retain. The crawl supplied text and links. A Catalan corpus required judgments about language, document quality, repetition, and the kinds of information users would want to query.

The two projects used some of the same material at different levels. A page could be valuable to the study of the Web because of its links or because it showed how a site was organized. For a linguist looking for running Catalan text, that same page might contain little more than names, links, or contact information. Similarly, the geographical rule for choosing sites could identify where the crawler should continue without determining the language of the next page. The paper treats collection and corpus construction as successive decisions for that reason. The Web study defined a broad area to explore, and the linguistic work selected and processed text from within it.

#### What an online search could already do

The paper describes web search as an established way of obtaining linguistic examples and estimating how frequently expressions occur. In that approach, researchers submit queries to a search engine and use what comes back as evidence for a particular question. The authors point to work on estimating frequencies of previously unseen word pairs as an example. This is a good fit when a researcher already has the expressions in hand and wants evidence about them. [Using the Web to Obtain Frequencies for Unseen Bigrams](https://md.research.elamur.ai/free/en/papers/keller-2003-web-obtain-frequencies-unseen-bigrams/)

The authors' concern was how a search engine represents the question. If the starting point is a known string, that string can be submitted directly. If the starting point is a grammatical pattern whose words are to be discovered, the researcher needs a way to express the pattern. Looking up a known noun is one operation. Looking for the nouns that occupy a particular role in a sequence is another. The latter requires information that a query consisting of words alone cannot express in the way the authors wanted. The paper places this choice within earlier discussion of how the Web can serve as a source of language evidence. [Introduction to the Special Issue on the Web as Corpus](https://md.research.elamur.ai/free/en/papers/kilgarriff-2003-introduction-special-issue-web-as/)

The paper names WebCorp, the Linguist's Search Engine, and KWiCFinder as initiatives that brought web data closer to linguistic users. It describes them as interfaces drawing on search engines. Such an interface can help expose search results in a form suitable for inspecting language. The CUCWeb authors wanted to control an earlier stage as well, deciding which pages counted as evidence and assigning grammatical properties before a reader submitted any query. For them, searching the Web and searching a corpus assembled from the Web posed different problems of [information retrieval and search](https://md.research.elamur.ai/free/en/topics/information-retrieval/).

#### Why keep a local collection

The alternative was to gather pages, store them, and do the linguistic processing offline. The authors judged that the technology available to them made storage on this scale feasible at relatively low cost. A stored corpus gave them control over which texts to include, what to remove, and what kinds of searches could be built on the result. It also meant accepting the work of running a crawler, processing varied documents, storing intermediate data, and making the finished collection searchable. The paper describes the WaCky project as another effort to make that chain of operations accessible to linguists through tools for gathering, processing, indexing, and searching web text.

Local storage also suited the intended audience. The authors wanted a resource that computational researchers could use as data and that teachers, translators, lexicographers, and other readers could use through a browser. A browser user could work with a prepared collection without assembling one for each question. A researcher interested in automatic lexical acquisition could work with the annotated dataset itself. In both cases, the corpus prepared in advance needed to support questions whose exact wording, search pattern, and expected answers were unknown during collection.

The aim of a general-purpose collection shaped those choices. The authors set out to retain a large body of useful Catalan and provide a shared set of annotations across it. A corpus built around a particular lexical question could gather pages designed to answer that question. CUCWeb had to serve different questions from the same material, including requests for passages and requests for frequency distributions. The paper's design problem was therefore to make a broad crawl usable as language data while retaining enough of its scale to make quantitative investigation worthwhile.

### The method, step by step

#### Decide where the crawler will go

The collection began with a rule about sites, before the authors made any decision about individual pages in Catalan. The Spanish Web Project initially used the .es suffix as its boundary. The paper explains why that would be a narrow rule. Registration under .es was relatively expensive and restricted, and the authors also mention political and cultural opposition to the suffix in the Catalan context. A site associated with Spain could therefore use a different suffix. The revised rule admitted a site if its internet address belonged to a network located in Spain or if its domain ended in .es. Either condition was enough.

That rule approximated the project's geographical target using information a crawler could apply repeatedly. It could admit a Catalan page hosted in Spain under another suffix, as well as a page in another language at the same site. The latter case was expected, since language selection came downstream. Geography and language thus operated on different units. The crawl used the site to decide where it could explore. A later classifier used the actual content of a document to decide whether to consider it for CUCWeb.

The final crawl took place in September and October 2004. It used Akwan software and started from addresses held by Buscopio, a Spanish search engine that the authors describe as having covered much of the existing Web in Spain during its commercial operation. The crawler fetched pages, extracted more addresses from them, and followed those addresses recursively within the chosen boundary. In practical terms, the seed supplied the starting points and the links supplied further places to visit. The geographical rule continued to apply as those places were discovered.

The crawler skipped an address it had already encountered in identical form. A directory address and an address that explicitly named the index file could still count as separate URLs, even if the server returned equivalent content. This distinction would matter throughout the pipeline. Preventing repeat downloads by address is possible before inspecting the body of a page. Identifying separate addresses with the same linguistic content calls for a comparison of what was downloaded and processed.

From a web crawl to searchable Catalan text The steps in order.

#### Control repetitive downloads before processing

The authors describe several reasons that following links can produce large quantities of repeated or low-value material. A mirror can hold a copy of a whole collection, so pages found independently may carry much of the same text. A site can expose more than one address for a dynamically generated page. Some spam pages were generated in quantity, and some domains used wildcard names so many apparent sites could lead to the same material. These sources of repetition made the number of URLs an unreliable guide to the variety of text available for the corpus.

The authors inspected domains with unusually large numbers of sites and pages and blocked a list of sources that they judged to contain little useful material. The purpose was to conserve downloading and storage resources for more content-rich sites. They also imposed a maximum of 400 pages per site, with an exception for sites under .es, which had no preset cap. This was a rule about allocation during the crawl. The amount of text contributed by a site would later depend on the content of those downloaded pages and on how many passed the filters.

The crawler extracted text and links from the pages it gathered. The links supported the broader project's interest in the structure of the Web and supplied information for ordering the final corpus. The extracted text was the material available for linguistic processing. This made the form of text extraction consequential. Word sequences survived in a form that later tools could handle, but the system could lose clues originally expressed in HTML, such as which material formed a heading or belonged to a distinct region of a page.

#### Select pages that look like Catalan

The authors used the Naive Bayes classifier in Bow for language identification. At this stage, classification meant assigning a language to a document on the basis of its text. Naive Bayes uses evidence learned from examples of the classes it can assign. Here the training material consisted of corpora for the corresponding languages, so this was a separate preparation step from the crawl. The corpus construction depended on applying a trained language decision to the pages the crawler delivered. [Text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/)

The authors trained for the 4 languages they identify as official in Spain, Spanish, Catalan, Galician, and Basque. The remaining 6 were English, German, French, Italian, Portuguese, and Dutch, selected for their frequency on the Web as described in the paper. Including these choices gave the classifier alternatives to Catalan when it encountered a page from an eligible site. The paper gives the language inventory and describes the source of the training material as language-specific corpora. Its account centers on the classifier's role in choosing documents, with the training corpus sizes, feature representation, and decision thresholds left unspecified.

Some pages had too little linguistic evidence for a reliable decision. The paper mentions pages containing only images or lists of proper names. An address within the crawl boundary was enough to bring such a page into the larger collection, but the language decision required evidence in the text. Unsure cases could therefore remain outside the confidently classified portion of the crawl. The pages selected as Catalan then formed the input to a separate quality screen.

#### Screen the text and consolidate copies

The quality screen used a computational dictionary and heuristics. The dictionary supplied evidence about the words present in a page, and the accompanying checks were intended to help reject documents with little useful language or substantial noise. The authors give address lists and programming code as examples of the material they wanted to remove. Mixed-language documents were also a concern. A page could contain enough Catalan to be assigned to that language and still be poor material for the kinds of searches the authors had in mind.

Language classification and dictionary filtering both operated at document level. The practical consequence was that a document could pass with a small passage in another language, or be rejected even though it contained a good passage of Catalan. The pipeline's unit of acceptance was the page text as a whole. That fitted an architecture that kept documents intact and exposed them in the interface, while tying the inclusion of any passage to the rest of its document. The paper describes the purpose of the filter and its place in the sequence. It leaves the precise scoring and cutoffs of the dictionary and heuristics unspecified.

The next step addressed similarity between pages that had reached the filtered collection. The system used a hash of the processed text to identify duplicates. A hash is a compact value derived from the input, which gives the system a way to compare processed documents without treating each URL as a distinct piece of evidence. The paper presents this as a simple method for flagging pages with very similar content. It gives the basis of the comparison, processed text rather than address, while leaving the details of the processing and matching rule unspecified.

There were consequently controls on repetition at several stages, each with a different basis. The crawler avoided an identical URL, the site checks and download limits restricted some sources of excessive retrieval, and the duplicate detector made a decision from the processed text. A page might escape the first controls because its address and site were both acceptable. The text comparison could still identify it as redundant after the linguistic filter. The authors later report residual copies and near copies, which is possible when changes to the text keep sufficiently similar documents from matching under a simple rule.

#### Attach grammatical information to words

After selection and filtering, the authors processed the corpus with CatCG, a Catalan tool based on the Connexor Constraint Grammar formalism. CatCG assigns a grammatical category to a word in context. That is how the index can distinguish an occurrence of a spelling used as a determiner from an occurrence used as a pronoun. The process is called [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/).

CatCG also provides properties such as gender, number, and tense. These properties describe distinctions within grammatical categories and help a user specify a word more closely. A search for a verb, for instance, can use properties of its form in addition to its category. This layer of description concerns the structure and variation of words, or [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/).

The corpus can be searched by the spelling that actually occurs and by the dictionary form under which occurrences are grouped. The distinction matters whenever a reader wants to collect the different forms of a verb together, or select a single inflected form within those results. For the statistics interface it also provides two different ways of grouping the same evidence. A spelling-based group preserves the differences between written forms, while a group by dictionary entry brings them together under a [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/).

The parser adds a grammatical function at the word level, with examples such as subject, object, and main verb. These labels answer a different question from the grammatical category. A category describes the kind of word in a particular occurrence, while a function describes the job it has in that sentence. A noun that serves as a subject and a noun that serves as an object can therefore share a category while having different functional tags. CatCG supplies these labels through shallow [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/).

Shallow analysis was sufficient for the authors to expose useful distinctions at individual word positions. An annotation can qualify a spelling, and conditions on several positions can be combined into a sequence. The architecture described in the paper centers on those word-level fields. This explains why a reader can ask for a particular form acting as subject and why exposing phrases or chunks would require an additional search facility. The precision of such a query, in turn, depends on the quality of the word boundaries and the automatic grammatical assignments available to it.

#### Prepare the index and choose the retrieval order

The authors used the IMS Corpus Workbench to index the corpus, and searched that index with its Corpus Query Processor, CQP. Indexing prepared the text and annotation fields for repeated searches. That made a query for a spelling, a grammatical feature, or a sequence of conditions an operation over prepared data, instead of a request to run linguistic analysis on the entire collection each time. The Corpus Workbench also provided a module for developing a web interface, giving the authors a route from the annotated files to a browser search.

The authors considered the corpus too large for the advisable working size of the tools, so they indexed it as 4 subcorpora. Dividing the data made parallel searches possible. The paper reports that the authors had encountered no incompatibility between this division and the indexing or search facilities they used. As a method for handling the collection, the split addressed how to process a search over a large corpus. The separate problem of how long or how much memory an individual query could consume remained part of running the service.

CQP gives sequential access to documents. The authors arranged the corpus by PageRank so that searches would retrieve documents in an order reflecting their popularity on the Internet. The rank derives from the link side of the collection work. It provides a way to order pages before running an individual linguistic query. Once the examples had been identified, this meant the visible sequence was influenced by a property of their source pages. That choice matters especially for a reader who stops after the first examples or uses a search that returns more matches than the interface can display.

Ordering and matching have different jobs here. A query for a word used as subject determines which indexed occurrences meet the request. The ordering determines which matching documents come earlier. A user inspecting examples can therefore encounter popular pages early without the annotation or the matching rule having used popularity as evidence that a word is a subject. Similarly, a frequency count has to be interpreted in terms of the collection and the conditions queried. The rank is part of how passages are delivered to a reader.

#### Make examples and counts accessible

The simple mode of the example interface accepted a word, a dictionary form, or a string of words. A user could add a restriction by category or grammatical function. The paper illustrates this with *la*, which can receive different analyses. A reader interested in pronouns could ask for occurrences tagged that way, leaving the competing uses out of the result. Another example uses *traduccions*, the Catalan word for translations, with a restriction to subject occurrences. The spelling identifies the form, and the added condition identifies the role whose examples are wanted.

In expert mode, a pattern could specify up to 5 word units. For any given position, the description could use one or more of four features: written form, lemma, part of speech, and syntactic function. Specifying the category made relevant morphological attributes available for querying. A user could also mark a unit as optional or repeated, or negate an individual field. These operations let a search describe a family of sequences. A position might admit any word with the required function while excluding a particular lemma, and an optional position might admit intervening material when it was present.

The two example modes both allowed up to 1000 hits. Results could be read online or downloaded as text, and the amount of surrounding context could be changed. Links led to a stored copy and to the original location of a source document. That gave a reader a route from a match in the corpus to its broader setting. Context is particularly useful in a corpus of automatically analyzed pages, because a short marked passage can leave uncertainty about how a word is being used or whether a result came from running prose.

The statistics interface supported grouping by the written word, lemma, part of speech, or function. For a given verb lemma, a reader could obtain the frequencies of the individual forms. In the authors' example with *dona*, meaning woman, a search for modifying adjectives could return their lemmas and associated frequencies. Those are different ways of varying a search. The first begins with a single lexical entry and looks at forms within it. The second begins with a relationship and asks which lexical entries fill the other position.

The statistics output gave absolute and relative frequencies, was viewable online, and could be downloaded as CSV. Each result also linked to the corresponding occurrences. This made it possible to move from an aggregate back to the evidence behind it. A count might show that an adjective appears frequently with a noun. Looking at the passages let a reader examine whether the occurrences shared the intended grammatical relation, whether they came from plausible text, and what their surrounding contexts had in common. The same stored annotations supported both operations.

### Experiments and results

#### What the collection contained

The crawl retrieved over 16 million webpages, from over 300,000 sites and 118,000 domains. The pages yielded 46 GB of uncompressed text, and the crawl generated 3 GB of metadata. These figures measure the starting material for the wider project. The Catalan corpus emerged after narrowing that material by language and text quality. The web-page total and the document total for the finished corpus describe different stages, with many pages from other languages or without sufficient text in the starting collection.

The move beyond an .es-only crawl mattered for the wider project. Among domains that had pages in Spain, just 16% used “.”, according to the authors’ findings.es. That percentage has domains as its unit, and it concerns the collection identified as belonging to the Web in Spain. A separate measure in the paper counts documents in the finished Catalan corpus by their suffix. A domain can supply many pages, and pages from different domains can be kept at different rates. The domain figure thus answers a question about the reach of the crawl criterion, while the finished corpus figures describe the sources of retained documents.

The authors report that 38% of the crawled collection could not be classified reliably by language. In their account of the classified material, they give 52% for Spanish, 31% for English, and 8% for Catalan, which ranked third. Galician and Basque together accounted for about 2% of the pages in that account. These are descriptive language shares as reported by the authors. They show how much the Catalan selection narrowed the collection and why a crawl targeted geographically at Spain still needed to distinguish several languages. [English](https://md.research.elamur.ai/free/en/topics/english/)

After language classification, the candidate Catalan collection consisted of 491,850 documents and 375,469,518 words. The dictionary filter brought those totals to 277,577 documents and 222,363,299 words. After duplicate detection, 204,238 documents and 166,040,067 words remained. The word totals exclude punctuation. The figures describe material present at successive stages of one construction process. Each filtered stage starts from the output of the preceding stage, so the counts show what the actual sequence retained.

Documents retained across CUCWeb construction stages Dictionary filtering removes the largest share of candidate documents, with a further reduction after duplicate detection.

**The numbers**

| System or setting | documents |
| --- | --- |
| After language classification | 491,850 |
| After dictionary filtering | 277,577 |
| Final corpus after duplicate detection (this paper) | 204,238 |

In this chart, higher means a larger collection. The authors were willing to give up size to pursue usable text, so the smaller final bar is the one representing their finished resource. The paper also expresses the stage totals relative to the candidate Catalan collection. The dictionary-filtered collection retained 56.5% of its documents and 59% of its words. The finished corpus retained 41.5% of its documents and 44% of its words. The two measures track different units. The document count records how many texts survived, while the word count records how much material those texts supplied.

The final distribution by top-level domain was concentrated in .es and .com. The paper's domain breakdown assigns .es 89,541 documents and a share of 44.6%, and .com 49,146 documents and a share of 24.5%. It also reports substantial contributions from .org, at 17.7%, and .net, at 9.4%. The distribution illustrates the practical significance of allowing sites outside .es. It also shows how the retained Catalan data differed from the set of all domains encountered in the broader Spanish crawl, where the relevant unit was a domain irrespective of how much suitable Catalan text it supplied.

The authors list the largest sites to show where a substantial part of the material came from. The largest in their list, upc.es, contributed 1574 documents, and gencat.es contributed 1372. The list included other universities and institutions, alongside a company and a site supplying distribution lists. The authors observed a similar institutional and university presence among the 50 largest sites. This is evidence about source concentration. A site's identity gives some indication of the material it may contribute, while determining the genres and subjects of the individual documents would require additional analysis.

#### What the verb study measured

The paper's numerical test of how the data behaved in a linguistic task came from work on acquiring Catalan verb classes. These are groups of verbs distinguished by how they behave syntactically. A practical approach to classifying verbs is to gather evidence about the constructions in which each verb occurs, describe each verb by a set of such measurements, and look for verbs with similar profiles. In the study CUCWeb reports, the measurements were based on 10 linguistically defined features, and the set contained 200 verbs.

The study used cluster analysis to form groups. In this setting, clustering takes the descriptions of verbs and groups the verbs according to similarities in those descriptions. The corpus supplies the examples from which the descriptions can be made. The distinction matters for interpreting the result. The f-score measures the outcome of the verb classification task, so it reflects what happened when corpus-derived features were used to group verbs. It is a downstream measure of the utility of that evidence. The paper reports average f-scores, a measure combining precision and recall, and gives a baseline for comparison.

The conventional-text comparison used a 14 million word fragment of CTILC. The researchers first extracted the relevant data using the corpus's manual grammatical tagging, yielding an average f-score of 0.84. They also used CatCG on the CTILC material. In that condition, the reported f-score was 0.82. These conditions draw on the same named fragment, with a change in where the grammatical information came from. That makes them useful for considering how automatic processing affected the conventional corpus in this task.

The web condition drew from an earlier CUCWeb collection of 180 million words built by crawling .es alone. The authors describe this as an earlier application of the methodology reported in the paper. It was a different collection from the finished resource described in the construction results, whose crawl boundary also used the location of hosting networks. The earlier CUCWeb condition yielded an average f-score of 0.71. The reported baseline was 0.33. The paper identifies that value as the baseline without detailing how it was obtained.

F-score on the Catalan verb-class acquisition task The earlier CUCWeb collection beats the reported baseline, and both CTILC conditions score higher.

**The numbers**

| System or setting | f-score |
| --- | --- |
| Reported baseline | 0.33 |
| Earlier .es-only CUCWeb with automatic analysis (this paper) | 0.71 |
| CTILC fragment with CatCG | 0.82 |
| CTILC fragment with manual tagging | 0.84 |

The score of 0.71 supports a specific conclusion about the earlier collection. It supplied observations from which the clustering procedure could recover useful distinctions among the 200 verbs, as indicated by performance above the reported baseline. The 0.82 obtained from CatCG on CTILC puts a limit on what can be credited to web scale in that comparison. Automatic processing worked better on the smaller conventional collection. The two automatically processed conditions help separate the question of whether the analysts used CatCG from the question of what they gave it to process.

The paper frames the study against the possibility that more text could improve a language task simply by supplying more observations. It cites earlier work in support of that possibility for a different problem, choosing between confusable alternatives in context. In the Catalan verb study, the much larger source came with a different mix of text and different processing difficulties. The authors take the result as evidence that web material can support lexical acquisition, while treating better filtering and linguistic processing as important to improving its performance. [Scaling to Very Very Large Corpora for Natural Language Disambiguation](https://md.research.elamur.ai/free/en/papers/banko-2001-scaling-very-very-large-corpora/)

#### What the paper reports about searching at scale

The interface was also a working demonstration of what the assembled resource made possible. It offered constrained example queries, downloadable passages, and grouped frequency results from the same indexed data. The paper gives examples of those operations and reports practical problems with their responsiveness. Even with the cap of 1000 examples, queries could be slow, and the authors found the statistics interface more demanding. Splitting the index enabled parallel searches, and the service limited the time and memory available to individual queries.

The cap on visible examples measures how many results a user can retrieve through that interface. It gives no direct measure of how much of the underlying data a query must examine. A frequency request can also ask the system to group occurrences and return their counts, rather than present a sequence of immediately viewable passages. The paper establishes the availability of these search operations and describes the operational difficulties qualitatively. It gives no measured query times or comparison of search throughput across different index configurations.

### What the ablations show

The paper reports no formal ablation in which a corpus-construction component is removed and the resulting corpus is tested on the same task. It does offer a comparison of manual and automatic grammatical tagging, a comparison between sources under automatic processing, and counts showing the effect of successive filters on corpus size. Each addresses a different part of the question of how CUCWeb works.

#### The effect of automatic grammatical analysis on CTILC

The closest comparison to a controlled change is within the CTILC fragment. The source material is held fixed at the reported 14 million words, and the researchers change the source of the grammatical information used in feature extraction. The average f-score of 0.84 with manually tagged CTILC and the f-score of 0.82 with CatCG show that the automatic route preserved much of the evidence needed to classify these verbs on conventional text. The comparison tests the effect of the annotation route as it feeds into this particular clustering process.

That observation is narrower than a general claim about the accuracy of CatCG. A clustering task can benefit from categories and functions that are assigned well enough for the chosen features, even if some individual assignments are wrong. Conversely, errors in an attribute that the features use frequently may have a larger effect than errors elsewhere in the text. The downstream result is therefore evidence about the annotations in use, with precision of individual morphological or syntactic labels a separate question.

The comparison also gives context to the result on web text. If the earlier CUCWeb collection had been the only automatically tagged condition, the difference from manually tagged CTILC could have been attributed generally to using an automatic grammar tool. CatCG's performance on the CTILC fragment provides a more informative point of comparison. It places the larger change alongside a change in source material and the conditions that material created for feature extraction.

#### The change from conventional to web text

The comparison between 0.82 on CTILC with CatCG and 0.71 on earlier CUCWeb concerns what happened when the corpus changed. An important part of the linguistic processing was shared, while the amount and kind of text differed. The web material was larger and had passed web-specific selection procedures. It also presented the problems the authors describe elsewhere, including segmentation difficulties, spelling mistakes, and mixed-language passages. The scores show the combined consequence of changing the source under those conditions.

The authors attribute the weaker web result to noisy data and to difficulty processing it. That is their explanation for the observed outcome. The comparison gives no independent score for removing boilerplate, correcting spelling, improving segmentation, or screening mixed-language passages. Several of those problems can affect the same observations, so the aggregate difference cannot establish which would give the greatest improvement if addressed. The experiment is informative about the material as used, and the paper's inspection of errors supplies reasons to investigate particular stages.

The comparison also leaves open a question about the material itself. Corpus size changes how many observations are available for a verb. Corpus composition changes which constructions those observations come from. The result is compatible with a setting in which frequent web expressions give repeated evidence of some uses, while material selected for a conventional corpus supplies a distribution better suited to the feature definitions. The reported scores establish the ordering for this task. They do not measure the contribution of corpus size independently of its source.

#### What the filtering counts can establish

The counts after language classification, dictionary filtering, and duplicate detection quantify how strongly the pipeline reduced the candidate corpus. The dictionary stage accounts for the largest visible reduction in documents, and the duplicate stage reduces the retained collection further. This demonstrates that the quality screen and the duplicate detector materially changed which text went into the index. A corpus built by simply accepting every page labeled Catalan would have exposed substantially more material to its users.

The counts cannot establish which discarded pages would have contributed useful evidence. They also cannot establish how many bad passages were removed from otherwise useful documents, because the filter's decision was made for the document as a whole. Those questions would require checking examples of accepted and rejected text or evaluating downstream runs that differed in the relevant filter. In the paper, the counts are production measurements. They document the scale of selection and help explain why the final corpus differs from the candidate set.

The crawl figures provide another descriptive comparison. The authors' finding that .es covered a limited share of domains in the larger collection explains their decision to use a second way of finding Spanish sites. The suffix distribution of the final Catalan material shows that substantial amounts came from outside .es. Together these observations support the broader crawl boundary as a means of bringing in additional sources. They do not establish whether admitting those sources improved the balance of genres or the accuracy of the Catalan annotations. Those outcomes depend on properties the two distributions do not measure.

### Limitations

#### Limits identified by the authors

The authors describe problems with extracting running text from webpages. Headers, footers, copyright lines, and other repeated page material could be left in the corpus. Their preprocessing started from text supplied by the crawler, and the paper reports that the system did no boilerplate detection. Boilerplate is material repeated as part of the presentation or navigation of a page. It can be made up of perfectly ordinary words, which means a language check can accept it even when it adds little to a collection intended for studying prose.

The reliance on extracted text also meant losing some of the structure expressed in HTML. When formatting affected a word boundary, an initial letter could become separated from the rest of the word. Such a boundary error could then affect which written form the index stored and how CatCG interpreted the parts. The paper reports that preprocessing also had trouble with contact information. Its example is 93, the Barcelona telephone prefix, which appeared among the frequently assigned determiner results. This is a direct illustration of how a failure early in processing can turn into apparently grammatical evidence in the index.

Web spelling supplied a further difficulty. The authors describe many pages as having undergone less review and correction than the edited texts of traditional collections. They also recognize that the resulting material may capture varieties and writing practices that conventional corpora represent less well. For automatic analysis, unfamiliar forms can give a tool less useful evidence about which word is present and how it functions. The authors therefore see a greater need for spelling correction when preparing web data. Their account also distinguishes a genuine spelling error from something that only looks like one because markup disrupted a word.

The document-level handling of multilinguality created errors in both directions. A mostly acceptable document could be rejected because it included substantial material in another language, taking useful Catalan passages out of the corpus. A document could also pass with a smaller amount of other-language text. The authors emphasize the frequency of Spanish-Catalan documents and the difficulty that shared written forms can create. A matching form in the wrong language can contribute to a count or a verb profile when its surroundings are enough to get the page through the filters.

The authors suggest moving towards language decisions at sentence level. That change was more involved than applying the old document decision to shorter strings. If the corpus continued to preserve documents, passages in another language would need to be marked within them. In the authors' preferred design, the passages would also be annotated and searchable. This would preserve the relationship between each passage and its original surroundings, while requiring the index and interface to handle differences of language inside a document.

Residual copying was another stated problem. The authors found duplicates and near duplicates after the crawl precautions and the comparison of processed text. Repetition affects both the use of the corpus as a source of examples and its use as a source of counts. In an example search, several apparently separate hits may present essentially the same wording. In a quantitative task, shared text can give an observation more weight because it happens to occur in several documents. The authors called for more sophisticated detection of near duplicates to reduce that problem.

The interface still had constraints arising from the size and form of the corpus. The authors identify time and memory use as practical limits, especially for statistics. They also report that the web interface made fewer operations available than the underlying CWB and CQP tools. The selection of exposed features was guided partly by what their known users had asked for. Supporting a new tagset, a new annotation field, or a new linguistic level would require changing what the interface could present and search. At the time described, word-level functions were accessible while chunk and phrase searches remained outside the supported set.

Finally, the authors identify limited knowledge of the corpus's internal composition. Their strategy gathered large amounts of web text subject to quality checks, whereas a deliberately sampled collection can assign texts to known categories in advance. A list of large sites can show that universities and institutions contribute heavily. It cannot reveal the mix of genres, topics, or writing situations within those sites, or how that mix affects a specific count. The authors propose text classification as a way to learn more about the documents and make the source of corpus patterns easier to investigate.

#### Limits of the evidence

The geographical boundary is a rule for finding pages associated with Spain. Both its construction and its traversal affect the population the corpus can describe. The crawl began from a search engine's address list, followed available links, and applied rules about suffix, network location, and the number of pages to download. The inclusion of a text thus depended on how the crawler could reach it, as well as where the site was hosted and how its pages were organized. The resulting evidence describes the written material reached and retained by this process. Claims about the prevalence of a form across Catalan use would require a sampling frame that justified that broader population.

There is a similar question within the retained web material. The download cap treated .es sites differently, and the filters operated on documents with features such as enough text to classify and enough suitable language to keep. This can shape which kinds of writing survive. A short or heavily multilingual text might be especially hard to retain under those conditions, while a large source of formatted institutional material might contribute many searchable pages. The paper gives data about the source domains and largest sites. It does not estimate how either the crawl policy or the filtering rules changed the representation of a given genre.

The language distribution describes assignments made by a trained system, with a substantial amount of material left without a reliable assignment. The paper gives no independent accuracy estimate for Catalan identification on labeled pages from this crawl. As a result, the reported share of Catalan reflects the classifier's decisions on what it could identify. It offers limited evidence about how many Catalan pages the classifier missed or how frequently other-language material was included. Document-level ambiguity makes those questions especially relevant, because the answer can differ depending on whether the target is Catalan pages or Catalan passages.

Frequency results inherit the definitions of the indexed fields and the decisions made during corpus construction. A word-form count depends on segmentation. A lemma count depends on grouping forms under the right entry. A subject count depends on the parser's functional labels. The ability to open examples helps readers check how the categories worked in context. The paper gives no overall rate of annotation errors on the finished corpus, leaving the accuracy of any specific frequency query dependent on the phenomena and text concerned.

The size figures and the verb study refer to different versions of CUCWeb. The paper reports the counts of the finished 166 million word resource, but the verb-class result comes from the earlier .es-only resource of 180 million words. This fixes the scope of the downstream evidence. An average f-score of 0.71 establishes how that earlier collection performed in the stated task. The finished corpus has a different crawl boundary, and the paper supplies no corresponding f-score for it. The study also concerns syntactic verb classes specifically, so the evidence for applications such as teaching or dictionary work comes from the search facilities the authors describe rather than measured outcomes in those settings.

The presentation of examples and the selection of text introduce distinct influences. PageRank orders the available passages, which can affect the impression a reader gets from a short visit to the interface. The composition of the corpus affects the counts over that material, regardless of how individual passages are ordered. A reader looking at examples is therefore encountering selected text in a particular order, while a reader looking at statistics is interpreting an aggregate of the selected data. The paper describes the ordering and exposes routes back to examples, but offers no comparison of how different retrieval orders affect users' judgments.

The architecture's proposed portability is also bounded by the resources used for Catalan. The main sequence of gathering, filtering, processing, and indexing can be described independently of one language. In practice, the language classifier needs training material, the dictionary filter needs a suitable dictionary, and the linguistic processing needs tools for the annotations the corpus is meant to expose. A new tagset can also change the interface. CUCWeb demonstrates the sequence for Catalan and sets out the conditions for transferring it. Comparable corpus quality or query performance in another language would need its own evidence.

### What came after

The paper documents an early reuse in the verb-class study by Mayol and colleagues. That work used an earlier CUCWeb collection as a source of measurements about how Catalan verbs occur in constructions, then used those measurements to group the verbs. It appears in the paper as related work already under way and is described there as submitted. Its place in the development of CUCWeb is clear. A corpus assembled for general use was supplying the observations for a specific lexical task, and the outcome exposed differences between a large web source and a smaller conventional source. Subsequent published reuse is undocumented here.

The paper's proposed Spanish corpus would have tested reuse at a different point in the architecture. The underlying crawl had already collected Spanish text. The plan was to prepare a Spanish corpus from those data and integrate it with the same web interface. The authors gave 600 million words as a conservative estimate of its size and expected the larger collection to pose further problems for processing and search. This is a plan recorded in the paper, with the expected scale stated as an estimate.

The other follow-on work the authors describe concerned the handling of the text itself. They planned more capable preprocessing and sentence-level language classification and filtering. They also called for better duplicate detection and proposed classifying texts to learn about the material they had collected. These directions address different questions that arise once a web corpus can actually be searched. Preprocessing affects what reaches the grammatical tools. Language decisions affect which passages count as Catalan evidence. Duplicate detection affects how frequently essentially the same evidence can recur, and text classification would help explain where patterns in the resulting collection come from.

## Cite

Cite as Gemma Boleda, Stefan Bott, Rodrigo Meza, Carlos Castillo, Toni Badia and Vicente López. 2006. CUCWeb: A Catalan corpus built from the Web. Proceedings of the 2nd International Workshop on Web as Corpus.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{boleda2006cucweb,
  title = {{CUCWeb: A Catalan corpus built from the Web}},
  author = {Gemma Boleda, Stefan Bott, Rodrigo Meza, Carlos Castillo, Toni Badia and Vicente López},
  booktitle = {Proceedings of the 2nd International Workshop on Web as Corpus},
  year = {2006},
  url = {https://aclanthology.org/W06-1704/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
