Removing a stop list of very common words shrinks an index in its postings, not its dictionary, and more in a positional index than in one with a posting per document. On the 10,788 Reuters-21578 stories, Lucene's 33-word list removes 26.2 percent of the tokens and 14.3 percent of the document postings; on Reuters-RCV1, 30 words remove 32.0 and 14.0 percent. The losses are permanent: to be or not to be disappears, and under NLTK's list flights to London and flights from London become one query. Compression and term weighting now give most of the gain without the loss. On Cranfield with BM25, mean average precision was 0.307 with Lucene's list removed and 0.306 with it kept. Practice moved to short lists or none.
When the architecture article analyzed the thesis student's four Arctic sentences, it dropped eight words before indexing anything: a, and, as, in, is, of, the, and their. Words like these sit at the head of the frequency ranking that Term Statistics measured. In the Reuters-21578 news stories, the 25 most frequent terms make up about a third of all tokens, so dropping them shrinks an index considerably. But the same habit has costs. With a typical English stop list, the query to be or not to be disappears entirely. The band The Who becomes the single word who, which is also usually a stop word. Flights to London and flights from London become the same query, and vitamin A loses its letter. Do the savings justify failures like these? For a small system they can. For a larger or longer-lived one they no longer do, because compression and term weighting now provide most of the savings without the losses.
Stop words are the very frequent words of a language that carry little information about what a document is about: articles, prepositions, conjunctions, pronouns, and auxiliary verbs. Removing them at indexing time was standard practice for decades. Most of the query failures above are the course text's examples of what that removal costs: to be or not to be and flights to London (Manning, Raghavan, and Schütze, 2008, §2.2.2). The Who, flights from London and vitamin A are added here.
Here is the route. First we see why common words carry little information, using the most frequent terms in Reuters. Then we build stop lists and measure what two published lists save on that collection. Next we count the cost, query by query. Finally we see why practice has shifted from removing stop words to keeping them and reducing their influence in other ways, and why neural rankers push further in the same direction. Worked problems at the end include the course text's exercise on index size.
Why common words carry little information
A term helps retrieval when its presence distinguishes documents that are about something from documents that are not. The appears in nearly every English document of any length, so knowing that a document contains the says almost nothing about it. Luhn (1958) made this argument when he proposed that the most frequent words in a text lie outside the band of words that indicate its content.
As term statistics showed, the most frequent terms of a collection also occur in nearly every document, so they have the longest postings lists. Under an idealized Zipf distribution over 400,000 terms, the 25 most frequent terms account for about 28 percent of all tokens. A short list of words therefore accounts for a large share of the work an index does.
A real collection behaves much the same. In Reuters-21578, the 10,788 newswire stories used for the term statistics article, tokenized the same way (lowercased runs of letters), the 25 most frequent of 29,187 terms make up 32.3 percent of the 1,330,267 tokens.
The figure shows the 30 most frequent, marked by whether two widely used stop lists contain them:
- the 33-word English list of the Lucene search library, which this site's own search also uses;
- the 198-word English list distributed with NLTK.
Three kinds of term crowd the top of the list:
- Function words, which every general stop list contains.
- The house vocabulary of a financial newswire: said, mln (million), vs (versus, in tables of results), dlrs (dollars), pct (percent), cts (cents), shr (share), and net.
- Fragments created by earlier stages:
sfrom possessives and from U.S.,ufrom U.S., andltfrom an undecoded markup entity, described in From Bytes to Documents.
Example (a stop word on no list). For this collection, said is a stop word in every sense that matters: it occurs in 63 percent of the Reuters stories, nearly as many as the (64 percent), and says almost nothing about any one story. But neither of the two general lists contains it. Stop words are a property of a collection as much as of a language.
A ranked frequency list is therefore a diagnostic of the whole pipeline as well as the raw material for a stop list.
Building a stop list
How is such a list made? The usual procedure is simple (Manning, Raghavan, and Schütze, 2008, §2.2.2):
- Count the collection frequency of every term in a representative collection.
- Sort the terms by frequency and take the most frequent ones as candidates.
- Review the candidates by hand, removing any that carry meaning in the collection's domain.
Several published lists were built this way and became standards:
- C. J. van Rijsbergen's textbook (1979) included a list of about 250 English words.
- The SMART system used one of 571.
- Fox (1989) derived a list of 421 words from the frequencies of the Brown corpus.
Lists for other languages are built the same way, and they must be. A stop list is specific to a language, and applying an English list to French or German text leaves most of their function words in place.
Frequency alone is a crude criterion. A list can also be derived from document frequency, by choosing the terms with the lowest inverse document frequency, or from how evenly a term is spread across documents. Lo, He, and Ounis (2005) proposed a method that samples terms and scores how informative each is by Kullback–Leibler divergence. They compared it with frequency-based lists on four TREC collections and found the best results by merging an automatically derived list with a classical one.
Domain-specific stop words
Reuters' said is not an accident. General lists are wrong in specialized collections, in both directions:
- Missing stop words. In a collection of clinical notes, patient appears in nearly every document and discriminates almost nothing, while in general text it is informative. In a collection of computer science abstracts, computer, system, and algorithm behave like stop words.
- Wrongly listed words. General lists contain words that matter in some domains. Legal text distinguishes may from shall, as described in search in professional domains. In a collection about information technology, IT is not the pronoun it.
Stop lists for specialized collections should therefore be derived from that collection's own statistics and reviewed by someone who knows the domain.
What removal gains
Removing stop words at indexing time has three benefits:
- A smaller index. The postings lists of the most frequent terms are the longest, so dropping a few dozen terms removes a disproportionate share of the postings.
- Faster queries. A query containing the would otherwise have to read and merge one of the longest lists in the index. The same length is why a postings cache with a fixed memory budget may leave such a list out, as caching in search engines shows.
- Less noise in ranking. Without weighting, matches on function words would contribute as much to a document's score as matches on content words.
How large is the first saving? It depends on what the index stores. In a positional index, every occurrence of every term is a posting, so a stop list saves the share of tokens it covers. In an index with one posting per document, it saves the share of document postings: the sum of the listed terms' document frequencies.
Example (which index shrinks more). For each of the four stop lists measured below, the positional index shrinks by a larger share than the index with one posting per document. The most frequent words occur many times in each document that contains them, and a positional index pays for every occurrence. The averages ten occurrences per story that contains it, so removing it deletes ten positional postings for each document posting. The worked problems state the condition in general: a term's removal saves a larger share of the positional index exactly when the term occurs more often per document that contains it than the collection as a whole does per document posting.
On Reuters:
| Stop list | Tokens removed | Document postings removed |
|---|---|---|
| Lucene, 33 words | 26.2% | 14.3% |
| NLTK, 198 words | 34.3% | 23.2% |
| The 33 most frequent terms | 35.8% | 19.1% |
| The 198 most frequent terms | 57.2% | 42.8% |
The positional saving is about twice the document-level saving for short lists. The published lists save less than the frequency-derived lists of the same length, because they are not tuned to this collection. Only 146 of NLTK's 198 entries ever appear as tokens. Some, such as wasn't, contain an apostrophe that this tokenizer splits on. Others, such as yourselves, are rare in news, while the newswire's own frequent terms, such as said and mln, are on neither list. (Computed by tools/experiments/textproc/stopwords.py.)
The course text's measurement on a larger collection
Reuters-21578 is small. The course text reports the same kind of measurement for Reuters-RCV1, a collection of about 800,000 newswire stories, in its Table 5.1 (Manning, Raghavan, and Schütze, 2008, §5.1, p. 80). Each line of the table adds one preprocessing step to the line above it, and the two stop-list lines both start from the case-folding line. Its counts are:
| Step | Distinct terms | Nonpositional postings | Tokens |
|---|---|---|---|
| Unfiltered | 484,494 | 109,971,179 | 197,879,290 |
| No numbers | 473,723 | 100,680,242 | 179,158,204 |
| Case folding | 391,523 | 96,969,056 | 179,158,204 |
| 30 stop words | 391,493 | 83,390,443 | 121,857,825 |
| 150 stop words | 391,373 | 67,001,847 | 94,516,599 |
| Stemming | 322,383 | 63,812,300 | 94,516,599 |
The number of tokens is the number of position entries in a positional index, and the number of nonpositional postings is the size of an index with one posting per document. The reductions below are recomputed from those counts to one decimal place. The table itself prints whole percentages, and each of its figures is within one point of the value here.
| Step, measured from | Terms | Nonpositional postings | Tokens |
|---|---|---|---|
| Case folding, from no numbers | 17.4% | 3.7% | 0.0% |
| 30 stop words, from case folding | 0.0% | 14.0% | 32.0% |
| 150 stop words, from case folding | 0.0% | 30.9% | 47.2% |
| Stemming, from 150 stop words | 17.6% | 4.8% | 0.0% |
Three things can be read from the two tables.
- A stop list hardly changes the dictionary. Removing 30 words removes 30 of 391,523 terms, and removing 150 removes 150. All of the saving is in the postings.
- The saving is larger in a positional index, as on Reuters-21578: 32.0 percent of the tokens against 14.0 percent of the nonpositional postings for the 30 words, and 47.2 against 30.9 percent for the 150.
- Thirty words are about thirty percent of the text. The course text calls this the rule of 30: the 30 most common words account for about 30 percent of the tokens in written text. (The book says 31 percent for its table, which prints −31; its counts give 32.0.) On Reuters-21578 the 30 most frequent terms are 34.6 percent of the tokens.
Case folding and stemming do the opposite of a stop list. Each removes about 17 percent of the terms and only a few percent of the postings, since merging two terms merges two postings only in the documents that contain both. They are the subjects of Token Normalization and Stemming and Lemmatization.
The course text adds a caution that the next sections develop: the reduction in postings from a stop list of 150 words "does not carry over to the size of the compressed index", because the postings of frequent words need only a few bits each after compression (§5.1).
What removal costs
Those savings are real, but the costs are the queries in the opening paragraph. Removal fails whenever function words carry the meaning:
- Phrases and names: The Who, Let It Be, President of the United States, To be or not to be.
- Relations: flights to London versus flights from London, with and without in a product search.
- Words that are stop words in one sense and content words in another: can (a container), will (a legal document), US (the country), IT (the field), vitamin A.
What survives depends on the list.
Example (a short list and a long one). The Who and the pair of flight queries keep their meaning under Lucene's list but lose it under NLTK's, because Lucene's short list does not contain who or from. Here is what the two lists leave:
| Query | After Lucene's 33 words | After NLTK's 198 words |
|---|---|---|
| to be or not to be | (nothing) | (nothing) |
| the who | who | (nothing) |
| flights to london | flights london | flights london |
| flights from london | flights from london | flights london |
| vitamin a | vitamin | vitamin |
| let it be | let | let |
With the short list, The Who survives as one word and the two flight queries stay distinct. The longer list loses both. Neither list can save to be or not to be.
These losses are permanent for that index. A word removed at indexing time cannot be recovered at query time, because the index no longer records where it occurred. No later improvement in query processing or ranking can restore the phrase to be or not to be to an index that discarded every word in it. The only remedy is to rebuild the index from the original text, if it was kept.
Why practice changed
The costs are permanent, and they have not changed. What changed is the gain. Manning, Raghavan, and Schütze (2008, §2.2.2) describe the trend in information retrieval systems as a sequence:
- large stop lists of 200 to 300 terms;
- very small lists of 7 to 12 terms;
- no stop list at all.
They note that web search engines generally do not use stop lists. The reasons are developments covered later in the course. They reduce what removal gains, while its costs stay the same:
- Compression. The postings lists of frequent terms consist of very small gaps between document numbers, which compression stores in very few bits. The long lists of common words therefore cost much less space than their length suggests.
- Term weighting. Weighting schemes such as TF-IDF and BM25 give terms that occur in most documents very low weights. In the standard TF-IDF form $\log(N/\mathit{df})$, a term occurring in every document has an inverse document frequency of exactly zero. The exact treatment differs between IDF formulas; some BM25 variants would make such weights negative unless they are floored or shifted. Weighting removes the noise in ranking without discarding the words.
- Efficient query processing. Some techniques process postings in order of their contribution to the score, and stop early when the remaining contributions cannot change the top results. They can often avoid reading most of a common term's long list (see search at scale).
The weighting argument in numbers
The weighting argument is easy to check. Here $N = 10{,}788$ is the number of Reuters stories, $\mathit{df}$ is a term's document frequency, and the logarithms are base 10.
Example (a small weight is not zero). The is one of the most widespread words in Reuters, yet its inverse document frequency does not reach zero. A term's weight is zero only if it occurs in every document, and 3,837 Reuters stories, about a third, never use the. Its weight is $\log_{10}(10{,}788/6{,}951) = 0.191$, small but not zero:
| Term | Document frequency | $\log_{10}(N/\mathit{df})$ |
|---|---|---|
| of | 7,622 | 0.151 |
| the | 6,951 | 0.191 |
| said | 6,784 | 0.201 |
| not | 2,480 | 0.638 |
| oil | 1,038 | 1.017 |
| wheat | 327 | 1.518 |
| cocoa | 78 | 2.141 |
Most of the stories without the are short tables of company results (median length 29 words), such as Shr 14 cts vs nine cts. Even so, weighting has already done most of what removal would:
- A match on cocoa is worth about eleven times a match on the.
- Said is weighted like a stop word without being on any list.
- Not, on both lists, carries more than three times the weight of the. Removing it would discard a word whose presence can reverse the meaning of a query.
Open-source search libraries reflect this shift. In their documentation as of November 2026, the English analyzer of Lucene 10 applies a default list of only 33 words (Apache Software Foundation, class EnglishAnalyzer), and Elasticsearch's standard analyzer applies no stop list unless one is configured (Elastic, standard analyzer reference).
The effect on retrieval, measured
The savings above are in space. The effect of a stop list on the quality of a ranking has been measured on this site once, in the experiments of the evaluation topic, and the scripts of this topic do not measure it. The collection is Cranfield, 1,400 abstracts with 225 queries and relevance judgments. Two runs rank with BM25 after Porter stemming. One removes Lucene's 33 words from documents and queries and the other keeps them. Mean average precision, the measure defined in its own article, is 0.307 with the words removed and 0.306 with them kept (the "True MAP" column of the table of systems in Relevance Judgments). Significance Testing uses that difference of 0.001 as its example of a difference that is not significant even on all 225 queries.
This is one collection, one ranking function and one short list, so it is an observation and not a general result. It agrees with the weighting argument: a ranking function that already gives the listed words small weights loses or gains almost nothing when they are removed. The figures are quoted from those articles and were not recomputed for this one.
Alternatives to removal
If stop words stay in the index, how can a system keep their cost down? Several techniques keep them available for the queries that need them:
- Remove stop words at query time, not at indexing time. The index keeps every word. Ordinary queries ignore stop words, while phrase queries and queries consisting mostly of stop words use them. The decision can then be made per query, and changed later without rebuilding the index.
- Index common-word pairs. A word pair that contains a stop word, such as the who or to be, can be indexed as a single term in addition to its parts. The pairs add terms and postings to the index. But they are much rarer than the stop words alone, so phrase queries containing them are answered from short lists. Lucene's common-grams filter implements this approach.
- Rely on weighting. Keep stop words in both the index and the query, and let low weights make them nearly irrelevant to ranking, except when they distinguish one phrase from another.
For a small system, such as a course project indexing a few thousand documents, removing a short stop list remains a reasonable simplification. It must be applied identically to documents and queries, and its effect on phrase queries must be understood. For anything larger or longer-lived, the more flexible choice is to keep the words and decide how to treat them at query time.
Stop words and neural rankers
Neural ranking models give a further reason to keep function words. A model such as BERT reads the query and document as sentences, and words like to, from, not, and without are part of what the sentence means. Dai and Callan (2019) found two things:
- a BERT-based ranker performed better on longer, natural-language versions of queries than on short keyword versions, the reverse of the usual pattern for classical models;
- removing stop words from the queries hurt the neural ranker.
The words a bag-of-words model treats as noise carry structure that a model of language can use. Many systems retrieve candidates with a classical model and re-rank them with a neural one. In such a system, the second stage must see the original text with its stop words, taken from a document store if necessary, even if the first-stage index drops them or gives them little weight.
A learned first stage can make the stop-list decision text by text instead of once for the language. On Cranfield query 185, experimental studies on panel flutter, a pretrained SPLADE model gives the word on weight zero while keeping the content words, as Learned Sparse Retrieval shows.
Where stop-word removal fits in the pipeline
Stop-word removal takes the tokens produced by tokenization, and its position relative to the other steps matters:
- Checking tokens against the list after case folding lets The and the match the same list entry.
- Checking it before stemming avoids comparing the list against stems, which may not resemble the words on it. If stemming runs first, the stop list must be stemmed too.
Whichever order is chosen, it must be the same for documents and queries.
Worked problems
The first problem is Exercise 5.1 of the course text (Manning, Raghavan, and Schütze, 2008, §5.1). The other four are posed on the Reuters-21578 measurements and the two stop lists of this article. Every Reuters-21578 number is recomputed and checked in tools/experiments/textproc/stopwords.py. The RCV1 counts are copied from the book's tables, and the script derives the sizes and percentages from them.
Problem 1 (Exercise 5.1: index size after each step). Assuming one machine word per posting, find the size of the uncompressed nonpositional index of Reuters-RCV1 after each preprocessing step of Table 5.1. Compare the results with the uncompressed size in the course text's Table 5.6.
Solution. A machine word is taken as 32 bits, or 4 bytes, the unit Table 5.6 uses. The size is the number of nonpositional postings times 4 bytes, with a megabyte as $10^{6}$ bytes:
| Step | Nonpositional postings | Bytes | Size |
|---|---|---|---|
| Unfiltered | 109,971,179 | 439,884,716 | 440 MB |
| No numbers | 100,680,242 | 402,720,968 | 403 MB |
| Case folding | 96,969,056 | 387,876,224 | 388 MB |
| 30 stop words | 83,390,443 | 333,561,772 | 334 MB |
| 150 stop words | 67,001,847 | 268,007,388 | 268 MB |
| Stemming | 63,812,300 | 255,249,200 | 255 MB |
Table 5.6 gives 400.0 MB for "postings, uncompressed (32-bit words)". That figure is $100{,}000{,}000 \times 4$ bytes: it uses the round figure of the course text's Table 4.2 for RCV1 (listed there as tokens), which stands for the postings count of the case-folding line. The exact count on that line, 96,969,056, is 3.0 percent below the round number, and gives 388 MB. All of the preprocessing together takes the uncompressed index from 440 MB to 255 MB, a reduction of 42 percent. Table 5.6 reaches 101 MB from the 400 MB line by compression alone, with no stop list and no stemming, which is the comparison behind the section on why practice changed.
Problem 2 (removing one word). Find the share of a positional index and of a nonpositional index of Reuters-21578 that removing the alone would save. State the condition under which removing a term saves a larger share of the positional index.
Solution. The occurs 69,277 times in 6,951 stories. A positional index holds one entry per token, 1,330,267 in all, so removing the saves $69{,}277 / 1{,}330{,}267 = 5.21$ percent. A nonpositional index holds one posting per (term, document) pair, 725,793 in all, so removing the saves $6{,}951 / 725{,}793 = 0.96$ percent. The positional saving is 5.4 times the nonpositional one.
In general, let a term have collection frequency $\mathit{cf}$ and document frequency $\mathit{df}$, and let the collection have $T$ tokens and $P$ nonpositional postings. The positional share is $\mathit{cf}/T$ and the nonpositional share is $\mathit{df}/P$. The first is larger exactly when
$$\frac{\mathit{cf}}{\mathit{df}} > \frac{T}{P},$$
that is, when the term occurs more often per document that contains it than the collection as a whole, which has $T/P$ occurrences per document posting. For Reuters-21578, $T/P = 1{,}330{,}267 / 725{,}793 = 1.83$ occurrences per posting, and the has $69{,}277 / 6{,}951 = 9.97$. The ratio of the two, $9.97 / 1.83 = 5.4$, is the factor found above.
Problem 3 (how common must a word be to weigh almost nothing). With $N = 10{,}788$ stories and the weight $\log_{10}(N/\mathit{df})$, find the document frequency above which a term's weight falls below 0.1, and decide whether any term of Reuters-21578 reaches it. Find the weight of to.
Solution. The weight is below 0.1 when $N/\mathit{df} < 10^{0.1}$, that is, when $\mathit{df} > N \times 10^{-0.1} = 10{,}788 \times 0.7943 = 8{,}569$. Such a term occurs in more than 79 percent of the stories. No term of the collection does: the largest document frequency is 7,622, for of, whose weight is $\log_{10}(10{,}788/7{,}622) = 0.151$. To occurs in 6,944 stories, so its weight is $\log_{10}(10{,}788/6{,}944) = 0.191$, the same as that of the to three decimals.
A weight of zero would need a term in all 10,788 stories. So on this collection weighting makes the commonest words weak and makes none of them vanish. Nine terms occur in more than half of the stories and so have weights below $\log_{10} 2 = 0.301$: a, and, for, in, lt, of, said, the and to. Two of the nine, said and the fragment lt, are on neither stop list.
Problem 4 (four more queries). Give what Lucene's 33-word list and NLTK's 198-word list leave of the queries who are you, as you like it, the the and take that.
Solution. Lucene's list contains are, as, it, the and that among these words. NLTK's list contains those and also who and you.
| Query | After Lucene's 33 words | After NLTK's 198 words |
|---|---|---|
| who are you | who you | (nothing) |
| as you like it | you like | like |
| the the | (nothing) | (nothing) |
| take that | take | take |
The band name The The disappears under both lists, as to be or not to be did, and Take That is reduced to an ordinary verb under both. The short list keeps two words of each of the first two queries. That is enough to match documents containing those words, but the phrases themselves are no longer in the index.
Problem 5 (a common-word pair as a term). On Reuters-21578, compare the work of answering the phrase query to be from a positional index with the work of answering it from a pair term to be, as the common-grams method would store it.
Solution. To occurs 36,401 times in 6,944 stories, and be occurs 6,357 times in 2,928 stories. Both occur in 2,846 stories. A positional index answers the phrase by reading the positions of both words in those stories and keeping the places where be directly follows to. The two position lists hold $36{,}401 + 6{,}357 = 42{,}758$ entries in all.
The phrase itself occurs 1,637 times, in 1,238 stories. An index that also stores the pair to be as a term answers the query from that one list of 1,238 document postings, or 1,637 positions. That is about a twenty-sixth of the positions of the two words. The pair's list also settles what the document lists cannot: of the 2,846 stories that contain both words, 1,608 do not contain the phrase.
The price is the extra term and its postings, paid for every pair that is indexed. The method indexes only pairs that contain a very common word, which are the pairs whose separate lists are longest.
What we have learned
Stop-word removal trades permanent losses for savings that later techniques mostly provide anyway. On Reuters, Lucene's 33 words remove 26.2 percent of the tokens of a positional index, but they also erase to be or not to be beyond recovery. Compression shrinks the long lists, and weighting already gives the about an eleventh of the weight of cocoa. The frequency ranking turned out to be useful in another way, as a check on the whole pipeline: it exposed newswire jargon that no general list contains, and fragments such as lt and s left by earlier stages.
The tokens that survive still come in many superficial variants. The and THE, résumé and resume, U.S.A. and USA are different strings, and an index that stores strings exactly will treat them as different words. The next article, Token Normalization, establishes which variants can safely count as the same term, and measures what each merge does to the Reuters vocabulary.
References
- Apache Software Foundation. Apache Lucene 10 documentation: classes
org.apache.lucene.analysis.en.EnglishAnalyzerandorg.apache.lucene.analysis.commongrams.CommonGramsFilter. https://lucene.apache.org/core/ record · 7 pages - Dai, Z., and Callan, J. (2019). Deeper text understanding for IR with contextual neural language modeling. In Proceedings of SIGIR 2019, 985–988. record · 3 pages
- Elastic. Elasticsearch reference: Standard analyzer. https://www.elastic.co/docs/reference/text-analysis/analysis-standard-analyzer record
- Fox, C. (1989). A stop list for general text. SIGIR Forum, 24(1–2), 19–21. record
- Lo, R. T.-W., He, B., and Ounis, I. (2005). Automatically building a stopword list for an information retrieval system. Journal on Digital Information Management, 3(1), 3–8. record
- Luhn, H. P. (1958). The automatic creation of literature abstracts. IBM Journal of Research and Development, 2(2), 159–165. record · 4 pages
- Manning, C. D., Raghavan, P., and Schütze, H. (2008). Introduction to Information Retrieval, sections 2.2.2, 5.1 and 5.3. Cambridge University Press. record · 102 pages
- van Rijsbergen, C. J. (1979). Information Retrieval, 2nd edition, chapter 2. Butterworths. record · 8 pages
Reviewed: verified, 16 Nov 2026 · checked against sources, 23 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 23 Nov 2026 · 11 revisions