Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 667 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 667 Bytes

PorterStemmer

Implementation of the Porter Stemmer algorithm in Java, which is outlined here.

The algorithm retrieves the stem of the word and provides a cleaner system as similar words (i.e. generous and generosity) are very similar so queries results will be handled accordingly.

To use the implementation of the Porter Stemmer algorithm

  1. Add the dependency to your pom.xml:
<dependency>
  <groupId>io.github.hamzamemon</groupId>
  <artifactId>porterstemmer</artifactId>
  <version>1.0.4</version>
</dependency>
  1. Stem your word: String stemmed = PorterStemmer.stem(word);