The Stemmer class transforms a word into its root form. The input word is provided from the add() methods. The stem() method will return the stem as will toString() after stem() has been
called). The clear() method will wipe the Stemmer buffer and allow a new word to be input.

This version extends Martin Porter's original stemming algorithm by allowing capital letters to exist in words. This version should also be plugged in wherever the old algorithm is used with
few accommodations necessary.

The code in this version is more readable (in my opinion) than the old version. There is a main at the bottom that shows how to use the Stemmer.

Project Activity

See All Activity >

Follow Porter Stemmer

Porter Stemmer Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Porter Stemmer!

Additional Project Details

Intended Audience

Science/Research

User Interface

Command-line

Programming Language

Java

Related Categories

Java Linguistics Software, Java Languages Software

Registered

2012-05-15