#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
🧹 FREE · PORTER STEMMER

Text Preprocessing Tool: Clean Text for NLP in One Click

Lowercase, strip punctuation, remove stopwords and stem, with each step visible.

  • 🚫 Stopword removal
  • ✂️ Porter stemming
  • ⬇️ Copy or download

How to use the Text Preprocessing Tool

  1. 1. Paste textAdd the sentences or documents you want to clean.
  2. 2. Choose stepsPick lowercase, punctuation, numbers, stopwords and stemming.
  3. 3. Get clean tokensCopy the result or download it as a text file.

The usual NLP cleaning steps

  1. Lowercase so "Python" and "python" count as one word.
  2. Remove punctuation and, if they do not matter, numbers.
  3. Remove stopwords, very common words like the, are and to that carry little meaning.
  4. Stem words to a common root so running and runs both become run.

Worked example: "The students are running quickly to their classes!" becomes 8 lowercase words, loses 4 stopwords (the, are, to, their), and the Porter stemmer turns the rest into student run quickli class.

Stemming, lemmatisation and when not to clean

The Porter stemmer (Martin Porter, 1980) removes suffixes using rules, so it is fast but produces stems like "quickli" and "happi" that are not real words. This implementation follows the original algorithm and was checked against NLTK's Porter stemmer in original mode. Lemmatisation instead maps words to dictionary forms (better → good) but needs a vocabulary and part-of-speech tags, so it is not done here.

  • Keep stopwords for sentiment ("not good" needs not) and for modern transformer models, which learn from full sentences.
  • Keep numbers when they matter, such as prices or versions.
  • Clean the same way for training and new data.

The stopword list has about 170 English words, similar to NLTK's. Everything runs in your browser. Next, score the clean words with the TF-IDF calculator or count phrases with the n-gram generator.

Frequently asked questions

Does it work for Hindi?

Lowercasing and punctuation removal work, but the stopword list and stemmer are English only.

Why are some words not stemmed?

Words with digits or symbols, and very short words, are left as they are.

Is the Text Preprocessing Tool free?

Yes, the Text Preprocessing Tool is free. The first time you see your first result, you are asked for your name and WhatsApp number once. After that, this and every other Uncodemy tool opens straight away without the form.

More free tools

See all free tools