DevTools Logo

Stopword Remover

Stopword Remover

Remove common words with a named list, custom rules and full removal stats.

Runs in your browser
The familiar 179-word English list used in NLTK tutorials.
Try an example

Text to clean

Cleaned text

No text cleaned yet

Paste text above or load an example.

Examples

English cleanup

Input
This is a simple test of the tool.
Output
simple test tool.

Five tokens removed; punctuation, word case and the sentence-final period survive.

List comparison

Input
This is also a simple test
Output
EN NLTK keeps also; EN Extended removes also

The active list label and size make it clear which dictionary produced the output.

Placeholder mode

Input
Quick is a test
Output
Quick[STOP] [STOP] test

Marker mode is useful when teaching what a stopword list actually does.

About this tool

Delete common function words from text before keyword analysis, keeping the surrounding structure intact.

Preprocessing tool for keyword and corpus work. A token scanner records spans, a named list (NLTK classic, extended English, Spanish, French or German) decides membership, and a rebuild pass deletes only matched tokens so punctuation, line breaks and the case of kept words survive untouched. Custom additions, exceptions, a minimum-length filter, placeholder and highlight modes, and a top-ten removal histogram make the subtraction explicit and reproducible.

What this tool does not do

  • List membership is lexical: there is no part-of-speech analysis, so a word can be removed in one sense and kept in another.
  • Minimum-length filtering removes short tokens regardless of the active list.
  • No stemming, lemmatization or named-entity recognition is performed.

How to use this tool

  1. Paste your corpus

    Add up to 5 MB of text, or load the article, Spanish or oversized example.

  2. Pick a named list

    Choose NLTK classic, extended English, Spanish, French or German; the badge shows the source note and word count.

  3. Tune the rules

    Add domain stopwords, protect exceptions, set a minimum token length and choose remove, placeholder or highlight output.

  4. Read the stats

    Review token counts, removal percentage, average word-length shift and the top ten removed words, then copy or download.

Use cases

SEO keyword prep

Strip function words before feeding a draft into a term-counting or n-gram tool.

NLP coursework

Compare classic and extended lists on the same corpus and inspect the removal histogram.

Multilingual preprocessing

Clean Spanish, French or German samples without writing a separate language-specific regex.

Supported input formats

FormatSupport
Plain text corporaSupported locally
Article draftsSupported locally
TranscriptsSupported locally
Multilingual function words (ES/FR/DE)Supported locally

Common mistakes

Mistake:Using stopword removal to rank keywords.

Fix:This tool only subtracts tokens; use a keyword or n-gram tool for ranking afterwards.

Mistake:Assuming one list fits every language.

Fix:Switch to the matching ES, FR or DE list; English lists will not remove Spanish articles.

Mistake:Putting a phrase in the custom word field.

Fix:Custom entries are validated as single tokens; use a phrase-level tool for multiword stop phrases.

Mistake:Forgetting that exceptions win.

Fix:If a word is both an addition and an exception, a warning names the conflict and the word is kept.

Frequently asked questions

Which stopword list should I use?

EN NLTK classic is the 179-word list people meet in most tutorials. EN Extended adds frequent words that clutter keyword counts; ES, FR and DE cover common function words in those languages. Each option shows its word count and a short source note.

Does removal keep punctuation and casing?

Yes. Only matched tokens are removed. The original characters between tokens — punctuation, line breaks and capital letters on kept words — stay exactly as they were. Collapse repeated spaces is an optional cleanup pass.

Can I add my own words?

Yes. Add comma- or newline-separated single tokens in the Add words field. Exception words are never removed, even when the active list contains them. If a word appears in both fields, a warning names the conflict and the exception wins.

What do the statistics mean?

Removed percent is removed tokens divided by all tokens found. Average word length before and after is a coarse density proxy. The top-ten table shows which list members fired most often, with counts.

What are placeholder and highlight modes for?

Placeholder mode writes [STOP] where each removed token stood; highlight mode marks removed words with <del> instead of deleting them. Both are teaching and debugging views — the clean export always uses the original removal mode.

Is my text uploaded?

No. The dictionaries, tokenizer and rebuild pass are bundled in the page. Nothing is sent to a server, and clearing the tab clears the text.

References & standards