Evaluating Different Methods for Automatically Collecting Large General Corpora for Basque from the Web
Paper · 2012 · Igor Leturia
Summary
A large collection of searchable text lets researchers see how words are actually used and gives language technology developers material to work with. For Basque, the existing public collections served purposes such as documenting literature, journalism, and scientific writing, but even the largest was small beside the general corpora available for some other languages. Igor Leturia asks how much Basque text can be collected automatically from the web, what kind of text ends up in the collection, and which method is likely to keep delivering useful material as the corpus grows.
The paper compares search engine queries with a web crawl. The search method combines frequent Basque words, includes inflected forms so that the engine can match different forms of the same word, and requires common Basque words to help narrow the results to the right language. The crawler starts with 1,500 addresses from a Basque web directory and follows links. Both routes use the same filters to isolate Basque passages, remove recurring material such as menus, and screen out repeated texts. The largest search-based corpus contains 131,738,927 words. The crawl reaches 114,565,240 words, contains far fewer PDFs, and retains more of its initial collection rate. The search run produces the larger finished collection, while the crawl shows more room to grow.
The two collections also differ in what a reader would find in them. Administrative and educational vocabulary stands out in the search corpus, while vocabulary associated with websites, online media, and cultural activity stands out in the crawl. Both web corpora cover over 90% of the frequently attested vocabulary in each of the reference collections, which represent literary and media writing. They also give many words that occur relatively infrequently in the reference collections enough examples to examine more closely. At the sizes collected, the search corpus has more distinct words with substantial frequency and covers most of the crawl’s frequent vocabulary. Leturia therefore favors crawling for continued expansion, while the lexical comparison shows that the search method already provides evidence the crawl does not match.
Deep dive: Evaluating Different Methods for Automatically Collecting Large General Corpora for Basque from the Web
Leturia compares web crawling and search engine queries for building large Basque corpora, measuring how much usable text each method can collect. · about 32 minutes to read
The problem and its context
What a larger collection could add
A corpus is a collection of texts assembled so that readers can investigate patterns across examples. A dictionary editor can consult the occurrences of a word to see the company it keeps or how writers use it in different senses. A language researcher can look at whether a form is widespread or mostly confined to a particular kind of writing. The paper also places corpora among the resources needed to develop language technologies and extract candidate terms for dictionaries. This is the practical background to the study’s contribution to corpus linguistics.
Leturia gives these needs particular weight for Basque. The paper dates the start of its standardization to the late 1960s and describes the process as ongoing. Published texts can therefore document stages in the development of a written standard as well as variation in how people use it. Assembling a corpus from printed material takes money and labor, and the study points to the relatively small pool of specialists working on Basque. The appeal of automated collection is that a project can assemble evidence on a scale that would be difficult to achieve through conventional compilation. Basque illustrates the practical constraints faced by researchers working with low-resource languages.
The collections available when the paper was written already gave researchers substantial evidence within their respective scopes. Orotariko Euskal Hiztegiaren Testu-Corpusa provided 6 million words from classical literature, while the 8.5 million-word Zientzia eta Teknologiaren Corpusa focused on scientific and technical writing. Ereduzko Prosa Gaur contained 25.1 million words of selected literature and press writing. Another collection, Lexikoaren Behatokia, contributed 18.1 million words of media text. These resources differ in the evidence they offer. A collection chosen to document science writing answers a different set of questions from one assembled around texts considered exemplary.
The scale Leturia wanted to test is easier to understand alongside the paper’s comparisons. The British National Corpus has 100 million words. The web-derived ukWaC has more than 2 billion words. The gap matters because the author was looking for a general collection large enough to support questions about vocabulary beyond the best-attested words. A larger collection can supply repeated examples of words that are infrequent in a smaller one. The selection of texts still determines which words gain those examples. Size describes the amount of material available, while an evaluation of composition is needed to see what that material adds.
What earlier web projects had established
The paper describes two ways of treating the web as a source for language research. A live concordance service sends a query to a search engine and displays pieces of the returned pages around matching words. CorpEus already offered this kind of access for Basque. A corpus-building project instead retrieves texts beforehand and prepares them for later use. That allows the project to examine the collection as a whole and, where appropriate, add linguistic information and build an index. The distinction matters here because Leturia measures the output of acquisition and cleaning, rather than the quality of a live response to an individual query.
Other Basque projects had already demonstrated that web collection could serve specific goals. AutoCorpEx sought texts on a chosen subject. Co3 collected comparable material for particular domains, and PaCo2 gathered parallel texts. A project looking for a subject can use that subject to guide selection. A project gathering parallel text can look for a relationship between documents. A general corpus faces a different problem. Its discovery procedure needs to find material across many topics without turning whatever happens to be easy to retrieve into the dominant kind of text.
The earlier collection studies offered distinct routes to that goal. The WaCky initiative used web crawling. It began with a set of page addresses, downloaded those pages, and used their links to find further addresses. Its collections for German, Italian, English, and French were around or above 2 billion words each, as described in the paper. Sharoff used search engines to build collections of around 100-200 million words for several languages. His procedure generated queries from common words and downloaded pages returned by the engine. The two strands offered evidence that web text could be collected at scale and that its word frequencies could be compared with those in established corpora. Their separate successes left open how the procedures would fare against each other on the same language.
Why Basque could change the comparison
The search method depends on what an engine can express in a query and what it chooses to return. Basque presents a practical difficulty because a lexical item can appear in a variety of inflected forms. A search for a particular spelling can miss passages that contain another form of the intended word. At the time of the study, the search services also had no option that would restrict their results to Basque. The study therefore had to adapt the queries both to find inflected words and to favor pages in the right language. Each adaptation changes which pages are eligible to appear in the results.
Crawling poses a different problem. A page can enter the crawl if it appears in the starting list or if the crawler reaches it through a series of links. If the Basque web contains groups of sites that rarely link to one another, a poor starting list can leave useful material out of reach. On the other hand, following links from a well-chosen list can turn up pages whose vocabulary would never have prompted the project to search for them. The experiment needed to see how far an actual starting list could take the crawler and how broadly the resulting text would be sourced.
The paper also takes up objections that earlier authors raised about web corpora. Web writing varies in quality, a later retrieval can yield different pages, and the mix of text available online may represent some kinds of language much better than others. The advantages are cost, scale, and access to current material. For Leturia, these points make collection and evaluation parts of the same problem. Downloading many pages is valuable only to the extent that enough of the material survives cleaning and can support meaningful linguistic comparisons.
The method, step by step
Two ways to discover pages
The two methods begin with different clues. The search collector begins with words and asks an engine to suggest documents. The crawler begins with documents and uses their links to suggest more documents. A page reached through either route still has to pass the corpus filters. Keeping discovery and filtering distinct makes the experiment easier to interpret. A query can have many hits but contribute little text if those hits repeat documents already collected. A crawl can find many working pages but retain little from them if much of the writing is in other languages.
How candidate pages become Basque corpus text
The steps in order.
How the search queries are built
Leturia begins with a frequency list from XX. mendeko Euskararen Corpusa. The aim is to find words that appear often enough to produce results across subjects. Sharoff’s earlier procedure looked for frequent, general words and excluded function words. In adapting this procedure, Leturia removes pronouns and conjunctions. Articles and elements that serve some of the functions of prepositions attach to other words in Basque, so the paper describes no corresponding removal of separate articles or prepositions from the list. The author leaves topical words in place because few appear among the first 500 items. These choices shape the material available for query construction before the engine sees a request.
The items in Leturia’s list are lemmas. A lemma groups the different inflected forms of a word under a common lexical entry. Sharoff used individual written forms because a general search engine did not perform this grouping. Leturia uses a procedure called morphological query expansion, in which the collector supplies the grouping explicitly. It generates inflections for a lemma and puts the most frequent forms into a group joined by OR. For example, a query based on etxe, meaning house, can accept etxea or etxeak among its alternatives. The engine can then find a page containing any of the listed forms even if the page lacks the spelling used as the lemma.
This expansion lets the study describe a query by the number of lexical items it requires. When a combination gets longer, the page must satisfy more groups of alternatives. Within each group the engine can accept different inflections, while across groups it has to find evidence for each selected lemma. The counts used in the experiments refer to the lemmas drawn from the seed list. They do not refer to the total number of separate strings sent to the engine. This is how the collector accommodates Basque morphology while keeping the experimental setting interpretable.
A separate constraint favors Basque pages. Earlier studies sometimes chose search words unlikely to occur outside the desired language. Leturia allows shared words in the seed list and instead requires the presence of eta, da, ez, and ere in each query. These common Basque forms are joined to the query with AND. The seed lemmas act as changing cues for document discovery, while the common forms act as a fixed language cue. The author cites earlier Basque search experiments in support of this strategy and notes its cost in recall. Here recall concerns how much potentially relevant Basque text remains discoverable. A Basque page can contain the intended lexical items and still be missed because it lacks a required filtering word.
The source of the query results is Google’s API, an interface through which the collector can request and process ranked results automatically. Leturia takes the first 50 results per query, where available, compared with the first 10 in Sharoff’s procedure. The paper’s reasoning is that some Basque queries will yield little or nothing, particularly if they require uncommon words or several words together. Looking farther down the results when a query does work is a way to make more use of that request. The experiment holds this retrieval depth fixed so that changes in the resulting corpora can be compared across seed and combination settings.
The search experiments vary two quantities. The seed list length controls how broad a vocabulary the collector can draw from. The combination length controls how many of those lexical cues a returned page must satisfy together. A broader list can make more different requests possible, including requests that retrieve pages outside the results for very common words. A longer combination can favor documents with substantial connected text because such documents have more opportunities to contain all the required items. Both changes can also reduce yield if the required words rarely occur together. The experiments test where these competing effects become visible in collection size and composition.
How the crawler chooses what to visit
A crawler needs starting addresses, or seed URLs. Earlier WaCky projects obtained them from search engine results for random combinations of words. Leturia takes the 1,500 addresses in the Euskara section of DMOZ, the Open Directory Project. The directory offers a starting set of sites associated with Basque without requiring the project to run searches to discover its initial addresses. The paper treats it as a useful list of major sites and recognizes that it is neither exhaustive nor as actively updated as it had once been.
For each page it processes, the crawler can add links from that page to a queue of addresses still to visit. It downloads pages in parallel and uses a breadth-first strategy that favors visiting different sites over collecting every reachable page from a site before moving on. This makes the crawler’s objective different from archiving a set of complete websites. The project wants evidence from many publishers and kinds of writing. A scheduling policy that spreads retrieval across sites serves that objective, while the eventual diversity of the collection still depends on the paths available in the network of links.
The crawler does not have the equivalent of the search method’s required Basque words at discovery time. A Basque page can point outside the language, and an address alone seldom says whether a page will yield corpus text. The crawl therefore separates the opportunity to visit a candidate from the decision to keep its contents. That distinction becomes important when interpreting its workload. The number of addresses in the queue measures how much the crawler has discovered. Download attempts, successful downloads, and accepted documents describe later stages with different conditions for success.
How the downloaded material is cleaned
The shared filters turn retrieved material into a corpus. A page can be correctly retrieved and still be unsuitable because its useful text is too short, it is largely in another language, or its contents have already been collected. Applying the same filtering methods to both download streams makes their accepted corpora more comparable. It also matters for measuring acquisition productivity. When the same article arrives again, removing it ensures that the growth curve reflects additional text rather than repeated delivery.
For language identification, Leturia uses LangId, which is specialized for Basque. It uses frequencies of trigrams, contiguous groups of characters or words, to decide which language a stretch of text resembles. The project applies the identifier to paragraphs. A bilingual document can thus contribute its Basque passages without having to be treated as wholly Basque or wholly in another language. Retrieving a page because it contains Basque filtering words and identifying which of its paragraphs are Basque are separate operations. The query restriction operates before download, while LangId examines material the project has retrieved. Trigrams are a form of n-gram.
The length filter uses the number of characters after conversion to plain text. Documents shorter than 1,000 characters or longer than 100,000 characters are rejected. Measuring text rather than the size of the downloaded file brings the test closer to what the corpus will actually contain. The paper associates very short items with such material as server messages and pages with little prose. Very long items can include catalogs and lists. The thresholds screen on a measurable property. A document within the range can still contain noise, and a document outside it can contain legitimate Basque writing.
To remove recurring page material, the project uses Kimatu. This is the stage that tries to keep the article or passage while stripping away elements such as navigation menus and repeated notices. Kimatu uses cues including the density of markup tags, punctuation, and function words. The paper reports that it placed second in the Cleaneval cleaning competition with a score of 74.3%. That result describes a separate evaluation of the cleaning system. In the Basque corpus, the purpose of the filter is to keep repeated site furniture from distorting word counts and getting in the way of duplicate detection.
The paper describes no dedicated filter for spam or pornography. Leturia reasons that relatively little of this content is written in Basque and relies on language identification to remove such pages when they are in another language. The length filter can also reject some noisy documents. This is a design choice tied to the paper’s account of the material likely to be encountered. The procedure uses those indirect screens without separately measuring how much of either kind of content passes through.
Repetition requires more than a comparison of addresses. The same text may be served at different addresses, and copies can also have small differences. Exact copies can be found by hashing, which gives identical text the same identifier. For near-duplicates, Leturia uses a procedure based on Broder’s shingling and fingerprinting. A shingle represents an overlapping stretch of text. Fingerprints based on these stretches let the procedure look for substantial resemblance even when a change prevents an exact match. That matters for material such as reports reproduced by several outlets.
Containment is a related problem with a different shape. The complete text of an article might appear both at its own address and inside a longer page that includes other articles. The pages can differ enough as a whole for a resemblance check to be insufficient. A containment check asks whether the material from the smaller document is already present inside the larger one. Leturia uses a method based on Broder’s work for this case as well. In corpus terms, the aim is to avoid counting the same running text again simply because the surrounding page is different.
How the corpora are compared
The study measures how many words survive collection, how many documents contain those words, how long the average document is, and how many websites contribute. It also examines the contribution of different file formats. The file format figures serve a linguistic purpose as well as a description of the download. A source format that makes it hard to restore reading order or word spacing can yield a high word count without offering correspondingly reliable passages. Growth is measured over successive amounts of acquisition work. For search, the paper follows new corpus words per API request. For crawling, it follows collection as links are visited.
The lexical evaluation then asks which words are especially characteristic of a collection. It uses the log-likelihood ratio, abbreviated LLR, to compare word frequencies across corpora. For this purpose, a high raw count by itself is insufficient. A word can occur many times simply because a corpus contains much more text. The comparison is used to identify words that occur disproportionately in one collection relative to another. Leturia names the measure and its source without giving an equation for it. The method comes from Dunning’s Accurate Methods for the Statistics of Surprise and Coincidence.
For the frequency-profile comparison, the paper uses lemmas of nouns, adjectives, verbs, adverbs, and pronouns, with proper names and numbers excluded. The historical corpus was available for this part of the study as a lemma-frequency list. It had been tagged with a different system and did not supply proper names and numbers in the list. Leturia also makes adjustments for obsolete lemma spellings. For the distinct-vocabulary analysis, the paper counts a broader set of lemmas, again excluding proper names and numbers. The distinction matters because the profile answers which selected words stand out, while the vocabulary count asks how many different lemmas have evidence at a specified frequency.
The paper uses 20 occurrences as its working threshold for a well-attested word. It adopts this cutoff from earlier corpus comparisons, where it was used as a rough estimate of how many examples a dictionary editor might need to describe a word’s behavior. A total count of distinct lemmas includes items seen only occasionally. Counting those that reach the cutoff gives a separate measure of whether the corpus provides repeated opportunities to examine them. The threshold is a convention rather than a judgment that every qualifying word has sufficient evidence for every task in lexicography.
Coverage and enrichment turn the paper’s verbal definitions of lexical overlap into quantities that can be compared across pairs of corpora. Coverage takes the frequently attested vocabulary of a starting corpus and asks what share is also often attested in a comparison corpus.
C(A, B) = |{w : f_A(w) ≥ 20 ∧ f_B(w) ≥ 20}| / |{w : f_A(w) ≥ 20}|
C(A, B) is the coverage of corpus A by corpus B. The symbol w is a distinct lemma, and f_A(w) and f_B(w) give its occurrence counts in the respective corpora. Braces enclose a set of lemmas, the colon introduces the conditions for membership, and the vertical bars give the number of members. The symbol ≥ means at least, and ∧ requires both conditions. The slash divides the number that meet the cutoff in both corpora by the number that meet it in A. The equals sign gives the definition of the measure. Because the denominator comes from A, coverage can change when the two corpora exchange roles.
Enrichment starts with words that have some evidence in the first corpus but fall short of the main cutoff. The paper uses a lower bound of 10 occurrences so that this group is less affected by items such as typos or incidental borrowings. It asks how frequently the second corpus supplies enough occurrences for those words to reach the main threshold.
E(A, B) = |{w : 10 ≤ f_A(w) < 20 ∧ f_B(w) ≥ 20}| / |{w : 10 ≤ f_A(w) < 20}|
E(A, B) is the enrichment of corpus A by corpus B. A and B are the starting and comparison corpora, w is a lemma, and f_A(w) and f_B(w) are its frequencies in them. The signs ≤ and < mark the inclusive lower bound and the excluded upper bound for membership in A’s group. The sign ≥ applies the main cutoff in B. Braces enclose sets, the colon introduces their membership conditions, ∧ joins conditions, and vertical bars count set members. The slash divides the count meeting both corpora’s conditions by the count in the starting group, and the equals sign defines E(A, B). The result describes improvement in the evidence for lemmas already attested in A within that frequency band. It does not count every lemma that B adds.
Experiments and results
Which search settings yield the largest collections?
The seed-list experiment tests lists of 500, 1,000, 2,000, 5,000, and 10,000 words. Each setting uses combinations of 3 words, makes 12,000 requests, and takes the first 50 results when available. The comparison is therefore between different vocabularies for constructing requests under the same overall request count and result depth. The dependent quantity in the chart is the number of words retained in the corpus after filtering. The engine’s reported number of results can move differently from that quantity.
Retained Basque corpus words by search seed list length
The intermediate seed lists yield the most retained text under the same query conditions.
The numbers
| System or setting | words |
|---|---|
| 500 seed words | 81,508,628 |
| 1,000 seed words | 105,374,227 |
| 2,000 seed words | 119,474,991 |
| 5,000 seed words (this paper) | 129,342,982 |
| 10,000 seed words | 85,271,975 |
The largest word total in this experiment comes from the 5,000-word list. Its corpus contains 52,913 documents averaging 2,444.45 words. The 2,000-word list yields 83,147 documents averaging 1,436.91 words, with more retained words from HTML pages than any other setting in this comparison. The 5,000-word list supplies more words from PDFs. The choice therefore affects where the total comes from. A larger collection made from longer documents can contain fewer separate texts, and a smaller one can offer more material in a format from which continuous prose is easier to recover.
At the extreme of list length, the collection made with 10,000 seeds also has the longest average document in the experiment, at 3,363.79 words, but it has only 25,350 documents. It draws from 3,021 websites. The 1,000-word list gives the largest site count in this comparison, with 4,849 websites, while the 2,000-word list reaches 4,675 and the 5,000-word list reaches 4,398. Site counts, document lengths, and retained word counts thus give different answers to which setting gets the most. The reported paper treats the choice between the larger intermediate corpora as a tradeoff between amount of material and properties of the texts.
The next experiment fixes the seed list at 2,000 words and changes the number of words required in a combination. It again uses 12,000 requests per setting and takes up to the first 50 results for each request. The 3-word result is therefore the shared setting between the experiments. The seed-list comparison asks what happens when the vocabulary available for making requests changes. The combination-length comparison asks what happens when each request requires a different number of items from that vocabulary.
Retained Basque corpus words by search query combination length
Queries at the peak retrieve more retained text than either shorter or longer combinations.
The numbers
| System or setting | words |
|---|---|
| 1 word | 44,692,614 |
| 2 words (this paper) | 131,738,927 |
| 3 words | 119,474,991 |
| 4 words | 116,371,032 |
| 5 words | 89,139,248 |
The 2-word setting produces the largest search corpus in the paper. It retains 85,562 documents from 6,095 sites and yields the most words from HTML among the combination settings. Leturia also favors it on PDF burden in the overall comparison of query lengths. The 5-word setting yields just 23,108 documents and draws from 2,547 sites, though its retained documents are longer on average, at 3,857.51 words. A restrictive request can successfully select some long documents even as it reduces the number of publications and sites the collection reaches.
The small corpus from the 1-word setting has a specific explanation in the design. With a list of 2,000 words, there are only 2,000 different single-lemma choices. Further requests repeat choices and supply little additional material. The paired requests offer more ways to vary the words that guide discovery. Beyond that observed peak, requiring additional words makes a qualifying page harder to find. The longer combinations still produce substantial corpora, but the paper’s results show how an approach meant to favor better-connected prose can come at a cost in collection size and website variety.
How the crawl compares at the observed stopping point
Starting from the directory seeds, the crawl queues 39,163,290 links and attempts to download 6,520,000 of them. It successfully obtains 3,472,166 pages and includes 168,991 documents in the corpus. The gaps between stages are informative. Some addresses fail at retrieval because the pages are unavailable or produce errors. After retrieval, the pages still have to offer convertible text, contain Basque material, and pass the shared filters. Leturia notes that links out of Basque pages frequently lead to other languages, especially Spanish and English. Successful retrieval therefore counts a much broader group than successful collection of Basque text.
The retained crawl has 114,565,240 words, with an average of 677.94 words per document. It contains 1,276 PDF documents, reported as 0.75% of its documents. Its texts come from 5,060 websites. That is more sites than in any search corpus except the 2-word setting, which reaches 6,095. The crawler therefore obtains breadth across publishers even though it begins with addresses from a directory. Its average document is shorter than the averages shown for the search settings. The crawl and the largest search collection are similar in overall scale while being assembled from different numbers and kinds of documents.
The final totals measure completed work at the stopping points the author reports. The growth curves speak to whether another batch of acquisition work keeps adding material. In the seed-list experiments, the first 1,000 requests yield an average of 37 million words, with a maximum of 53 million words. The last 1,000 requests in those runs yield less than 2 million words on average. The combination-length experiments also show a pronounced slowdown. Leturia emphasizes that a request can consume a limited API call or incur a charge even when the ranked results contribute little new text.
For the crawler, the first million links followed yield 23.3 million words and the last million in the comparison yield 11.3 million words. The paper reports the later crawl rate as 48.5% of its initial rate. The corresponding average for the search corpora is 5.4% of their initial rate. The comparison is between how much of each method’s own initial productivity remains. A search request can return a list of pages, while a crawl attempt is made for an address. These observations support the paper’s judgment that crawling has more room to expand under the tested conditions. They do not provide a conversion between requests, links, elapsed time, or expenditure.
What the collections contain
For the lexical comparisons, the paper names the largest search corpus SE and the crawl CR. It compares them with XX. mendeko Euskararen Corpusa, labeled XX, the 4.6 million-word reference corpus consisting mostly of literary texts, and Lexikoaren Behatokia, labeled LB, the 18.1 million-word reference corpus of media writing. There are 6,815 shared URLs between the web corpora. This address overlap describes how much of the retained source list is shared. It does not measure lexical overlap, and copies of a text can have different addresses.
The frequency profiles distinguish each collection from the others in terms that make sense given its source material. Religious vocabulary, pronouns, and older or nonstandard forms stand out in XX. Leturia relates this pattern to the dates of the material and to the prominence of fiction and narrative. In LB, adverbs such as atzo, meaning yesterday, are characteristic, as are words associated with regular areas of news coverage, including sport, politics, and the economy. These reference profiles give the study a point of comparison for interpreting the web collections. The familiar source categories also show why a characteristic word can be evidence about genre or period as well as subject.
In SE, prominent administrative terms include lege, meaning law, and dekretu, meaning decree. Educational terms also stand out. Administrative language is especially noticeable when the comparison is with CR. Leturia suggests that the numerous PDFs in SE may include official government gazettes, which would account for some of this pattern. In CR, words such as iruzkin, meaning comment, and references to online media and users stand out, alongside month and weekday names and cultural vocabulary. These profiles describe relative frequency. They do not assign a genre to every document or identify how much of the entire collection belongs to a given genre.
Distinct Basque lemmas attested at least 20 times by corpus
The web collections provide repeated evidence for more lemmas than the reference collections.
The numbers
| System or setting | lemmas |
|---|---|
| XX. mendeko Euskararen Corpusa | 9,147 |
| Lexikoaren Behatokia | 12,922 |
| Search engine corpus (this paper) | 33,056 |
| Crawled corpus | 27,238 |
The counts of all distinct lemmas, before the frequency cutoff, are 53,993 in XX, 36,311 in LB, 74,132 in SE, and 64,424 in CR. An interesting feature of these results is that XX exceeds LB in the all-lemma count while having fewer lemmas at the cutoff. The paper attributes the substantial total in XX to the presence of forms from before standardization, including manually tagged forms that modern Basque tagging tools frequently do not recognize. The example shows what the cutoff adds to the evaluation. A varied inventory of occasional forms and a large inventory of words with repeated examples are different properties of a corpus.
How much vocabulary transfers between collections?
SE covers 94.44% of XX’s frequently attested lemmas and 93.99% of LB’s. CR covers 93.59% of XX’s and 93.19% of LB’s. These values mean that a reader investigating a lemma that reaches the cutoff in a reference collection can usually find that lemma at the same threshold in either web corpus. They say nothing about whether the examples have the same sense, genre, or period of use. In the opposite direction, for example, XX covers 26.13% of SE’s qualifying lemmas, while LB covers 44.21% of CR’s. The denominator is the vocabulary of the corpus being covered, so the two directions answer different questions.
Enrichment asks where the comparison corpus supplies repeated examples for a lemma that is attested but below the main threshold in the starting corpus. SE enriches XX by 83.67% and LB by 83.85%. CR enriches XX by 77.43% and LB by 79.11%. These results are stronger evidence of practical overlap than a count of all distinct words would provide on its own. They show that much of the additional frequency evidence applies to vocabulary already observed in the reference texts. The measure also has a defined boundary. Its percentages exclude words absent from the starting collection or present below the lower bound of 10 occurrences.
Between the web corpora, SE covers 95.80% of CR’s qualifying lemmas, while CR covers 78.94% of SE’s. SE enriches CR by 56.24%, and CR enriches SE by 9.52%. The search corpus thus contributes frequent examples for a substantial part of the crawl’s vocabulary that falls short of the cutoff. The crawl, though it has more retained documents and several distinctive vocabulary groups, contributes less to SE under the same enrichment definition. These results describe the collected resources at their observed sizes. They are the reason the article’s recommendation to keep crawling is based on continued yield, with the search corpus ahead on the lexical comparison already made.
What the ablations show
Which changes were isolated?
The paper does not remove and retest individual cleaners, but it offers controlled comparisons of the seed vocabulary size and query combination length, along with analyses of growth and corpus composition. In each search experiment, most settings are fixed while one aspect of query construction changes. This gives a clearer account of what affects the output than a comparison of the best search run with the crawl alone. It also gives the results a defined scope. For instance, the effect of including rarer words is measured with a fixed combination length, while the effect of increasing that length is measured with a fixed seed vocabulary.
The seed-list experiment shows how a change that narrows each individual request can still increase the amount collected overall. If many requests use the same very common words, the search engine has ample matches, but some highly ranked documents can keep returning. Once collected, they add nothing to the filtered corpus. Adding less frequent lemmas changes which pages are eligible and can expose documents that had not entered the collection. The benefit eventually gives way to scarcity. The largest list under the tested settings includes words uncommon enough that fewer pages satisfy the required combinations. The observed peak is therefore a balance between recurrence in the results and having too few matches.
The comparison of combination lengths identifies another route to the same practical problem of finding new pages. A request made from a single lemma offers few distinct requests relative to the fixed budget. Requiring a pair allows the collector to present the engine with a broader variety of constraints. Increasing the required co-occurrence further reduces the pool of eligible pages. Leturia links the longer combinations with longer retained documents because a long text has more chances to contain the required words. The document averages support the general tendency toward longer texts at the most restrictive settings, although they do not increase at every successive setting.
The shared 2,000-seed, 3-word setting connects the two comparisons. It supplies a reference point for changing the number of available words and for changing the number required in a request. The authors’ design does not fill in every possible pairing of the settings, so the observed strongest seed list under 3-word queries and the observed strongest query length under the 2,000-word list answer separate questions. For example, the results do not establish what a 5,000-word list would yield with 2-word combinations. The best reported search corpus is the best observed setting, with its own measured document and website mix.
What the comparisons suggest about the material
Document counts help explain why some search settings look different even when the collections are close in total words. Requiring more simultaneous lexical cues can favor longer source documents, and a setting with more long documents can achieve a high word total with less breadth across sources. The file format analysis adds a further distinction. In the seed-list comparison, the largest corpus draws heavily on PDFs, whereas the runner-up gets the most text from HTML. According to Leturia, errors can arise when columns, headers, and spaces between words are rebuilt during extraction from a PDF. The study’s format counts support concern about exposure to these errors, without measuring their frequency directly.
Combining the file format results with the characteristic-word analysis also gives a possible explanation for the administrative profile of SE. Official gazettes are published as PDFs, and legal and administrative terms appear disproportionately in the search corpus. Those observations are consistent with search retrieval bringing in more gazette material. The paper does not track how the profile changes when PDFs are removed or establish which fraction of PDF text comes from gazettes. The intended reading is a plausible source-level explanation for the frequency pattern. The association is more informative than the PDF count alone and less conclusive than a comparison with labeled genres or matched samples would be.
The website counts address the worry that the crawl might stay confined to the vicinity of its initial addresses. Its retained text comes from more sites than most of the search runs, so the seeds and link-following procedure produce a collection with substantial source breadth. The small overlap in retained URLs also shows that success was not simply a matter of recovering the same sources through a different interface. Still, a count of sites gives each site the same weight regardless of how much text it supplies. The count answers whether the corpus reaches many distinct sources and leaves open how the words are distributed among those sources.
The growth curves add a comparison across stages of collection. Early in a search run, a ranked page that is returned frequently can contribute useful text the first time it appears. As collection continues, the same recurrence spends more of the request budget on pages already seen. Leturia identifies this as the main reason for diminishing search yield. A crawl continues adding candidate links while processing pages, giving it another source of new addresses as work proceeds. The observed slowdown is gentler. The curves support continuing the crawl at the measured stage, without identifying an eventual maximum for either method.
Finally, the vocabulary analyses show why the collection method cannot be judged by growth alone. SE has richer thresholded vocabulary at the reported endpoint, even though CR’s later acquisition rate holds up better and it draws very little from PDFs. The near-complete presence of CR’s qualifying lemmas in SE coexists with CR’s distinctive web profile because relative prominence and thresholded presence are different measurements. A lemma can be highly characteristic of CR and still occur frequently enough to qualify in SE. This distinction explains how the crawl can have a recognizable linguistic character while offering fewer qualifying lemmas overall.
Limitations
Limits the paper identifies
Leturia treats frequency profiling as a relative analysis because the study has no absolute measure of a corpus’s linguistic quality. The most characteristic words tell a reader how a collection differs from the chosen comparison material. A literary reference and a media reference can illuminate several differences without representing every use of Basque. The paper also acknowledges that 20 occurrences is an arbitrary cutoff. Crossing it supplies a simple, reproducible rule for counting evidence. It cannot establish that the examples reveal all relevant senses or patterns of use.
The search procedure makes deliberate compromises. Requiring common Basque words makes the results more likely to be in Basque, at the cost of excluding some relevant pages. Expanding a lemma into frequent variants accommodates inflection, but candidate discovery still depends on the forms included in the query and on the engine’s ranked results. The paper’s assessment of search productivity is therefore an assessment of an actual Basque retrieval procedure. Its constraints are part of the result because they show what the project had to do to obtain workable search results at the time.
For the crawl, the paper highlights dependence on the initial addresses and on which links can be followed from them. The seed directory was neither comprehensive nor fully current. Leturia argues that important sites are likely to be reachable and recognizes the problem of isolated sites. Obtaining a high website count supports the practical adequacy of the starting list for this collection. Completeness would require knowledge of the relevant sites that were never reached, which the experiment does not establish.
The author also describes limitations that arise after retrieval. PDF conversion can produce misleading sentence order, insert running headers into a passage, or alter spacing. The shared filters address particular features, such as text length, language, recurring material, and duplicate content. Their presence does not settle the more general concerns about web corpora that the paper takes from earlier work, including representativeness and reproducibility. A later collection can face a different web or a different set of ranked results, even if it starts from the same procedure.
What the setup leaves open
The paper demonstrates retained words for different amounts of acquisition work. It gives no common timing or monetary benchmark on which to rank the two methods. Search has request limits or fees of the kind Leturia discusses. Crawling has to attempt downloads, handle failures, and process many pages that are later rejected. The displayed growth trajectories make a case about declining yield within each method. Ranking their speed or cost on a shared basis would require actual running times or expenditure measured for comparable workloads.
The final lexical comparison also uses corpora of different sizes. Leturia interprets the results as suggesting that search retrieval can produce more linguistic variety at a similar scale, and the measured difference is relevant when choosing between these particular collections. An experiment comparing equal amounts of retained text would permit a more specific claim about lexical variety per amount collected. The references are smaller and differ in age and genre as well. High coverage of them is evidence that the web corpora preserve much repeated vocabulary from established sources. It cannot settle whether either web corpus is a substitute for the historical evidence in XX or the media evidence in LB.
Comparability is also limited by how the lexical data were prepared. The historical corpus was available as a frequency list, and its tagging differed from the procedure used for the other material. The paper harmonizes some spellings and restricts which items can enter the comparison. Some of XX’s distinctive inventory consists of manually tagged older forms that current tagging may not capture. This makes it difficult to assign every difference in vocabulary counts to a linguistic difference between the collections. The lexical claims apply to the lemmas included under the chosen counting and reconciliation procedure.
The study offers no independent error audit that would let a reader attribute a fixed share of corpus quality to language identification, length filtering, boilerplate removal, or deduplication. For instance, paragraph-level identification provides a way to retain Basque passages in a bilingual document. The comparison does not establish how often it misses such passages or wrongly keeps others. The same distinction applies to the cleaner’s competition score. That score describes its performance in the evaluation Leturia cites and does not measure the error rate of the final Basque corpora.
The paper’s main forecast is that continued crawling could produce a much larger general resource. The measured decline in yield supports that forecast as a practical judgment, but it depends on what remains in the queue and what further traversal finds. Expansion might add new genres and repeated evidence for more lemmas, as the author expects. It could also add text resembling what was already collected. The observations establish that substantial new text was still being recovered near the end of the crawl. Lexical enrichment and genre balance after further expansion remain questions for the expanded corpus.
What came after
EusDisParser cites the study and addresses a different resource problem. Its aim is to improve a discourse parser for an under-resourced language using cross-lingual data. Discourse parsing concerns how parts of a text connect to one another. Leturia’s study deals with finding and cleaning large amounts of text in Basque, while the later work addresses the data available for a particular analysis task. The citation establishes a connection between the papers, but does not establish that EusDisParser used either of the collected corpora or adopted either acquisition method.
Cite
Cite as Igor Leturia. 2012. Evaluating Different Methods for Automatically Collecting Large General Corpora for Basque from the Web. Proceedings of COLING 2012.
@inproceedings{igor2012evaluating,
title = {{Evaluating Different Methods for Automatically Collecting Large General Corpora for Basque from the Web}},
author = {Igor Leturia},
booktitle = {Proceedings of COLING 2012},
year = {2012},
url = {https://aclanthology.org/C12-1095/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/leturia-2012-evaluating-different-methods-automatically-collecting/