Stop-word removal
Stop-word removal is a text-preprocessing technique that excludes selected common words considered uninformative for a language-processing, retrieval, or analysis task.
Natural Language Processing in Action, Second Edition
A stop word filter is a text-processing filter that removes selected high-frequency function words from tokenized text.
- How it is used
- Supports token cleanup before bag-of-words counting, while warning that removal may not improve accuracy.
- How deep it goes
- Defines filtering, demonstrates list-based implementation, and evaluates meaning loss without descending into model internals.
- Examples
- Uses Python list filtering, NLTK’s English list, and a sentence reduced to “I” and “remembered.”
- What you can do after
- Apply it via Python list filtering or NLTK, then inspect whether reduced tokens preserve useful meaning.
Read how Natural Language Processing in Action, Second Edition explains stop-word removal →
Starting Data Analytics with Generative AI and Python
Stopword removal is the text-preprocessing technique of excluding selected common function words from analyzed text.
- How it is used
- Uses stopword filtering to prepare text for common-word extraction and frequency analysis.
- How deep it goes
- Demonstrates tokenization, lowercasing, punctuation filtering, language-specific stopwords, and frequency counting.
- Examples
- Uses Portuguese e-commerce review comments, an Olist CSV dataset, and a Python frequency-counting workflow.
- What you can do after
- Apply it via NLTK to filter Portuguese review text before counting word frequencies.
Read how Starting Data Analytics with Generative AI and Python explains stop-word removal →
Elasticsearch in Action, Second Edition
A token filter that removes configured stop words from analyzed text.
- How it is used
- Configures analyzed search text by removing low-value or selected words from Elasticsearch tokens.
- How deep it goes
- Explains default behavior, index configuration, language presets, custom files, and token verification, without descending into filter internals.
- Examples
- Demonstrates English and Hindi stop words, a custom swear-word file, and analyzed text whose configured words are removed.
- What you can do after
- Operate/configure Elasticsearch analyzers and verify stop-word removal through the _analyze endpoint.
Read how Elasticsearch in Action, Second Edition explains stop-word removal →
Data Without Labels
Stop word removal is the elimination of very common words that carry relatively little task-relevant meaning from text.
- How it is used
- Uses text cleaning to reduce vocabulary dimensions and solution complexity before analysis.
- How deep it goes
- Defines the filter, lists implementation choices, and explains a contextual exception without detailing library APIs.
- Examples
- Uses common function words and the “is it raining?” question with the answer “it is.”
- What you can do after
- Apply stop-word filtering with custom lists or standard libraries while preserving words essential to context.
Related concepts
- standard analyzerpart of · The standard analyzer is a Lucene text analyzer that tokenizes text at word boundaries, normalizes terms, and removes punctuation.
- data cleaningpart of · Data cleaning is the process of detecting and correcting, removing, transforming, or otherwise handling inaccurate, incomplete, inconsistent, duplicate, or unsuitable data.
- NLTKuses · NLTK is an open-source Python library providing tools, algorithms, corpora, and lexical resources for natural-language processing and text analysis.
- latent Dirichlet allocationuses · Latent Dirichlet allocation is a generative probabilistic topic model representing documents as mixtures of latent topics and topics as distributions over words.
- n-gramcontrasts with · An n-gram is a contiguous sequence of n consecutive items, commonly linguistic tokens or characters, drawn from a larger sequence.
- spaCyused by · spaCy is an open-source Python library for natural language processing, providing tools and pretrained pipelines for tasks such as tokenization and linguistic analysis.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



