porter-stemmer

Provides an implementation of the Porter stemming algorithm, defined here: http://tartarus.org/martin/PorterStemmer/def.txt This implementation has not been tuned for high performance on large amounts of text. It is a simple (naive perhaps) implementation of the rules.

License

License

GroupId

GroupId

ca.rmen
ArtifactId

ArtifactId

porter-stemmer
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

porter-stemmer
Provides an implementation of the Porter stemming algorithm, defined here: http://tartarus.org/martin/PorterStemmer/def.txt This implementation has not been tuned for high performance on large amounts of text. It is a simple (naive perhaps) implementation of the rules.
Project URL

Project URL

https://github.com/caarmen/porter-stemmer
Source Code Management

Source Code Management

https://github.com/caarmen/porter-stemmer.git

Download porter-stemmer

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Porter Stemmer

This library provides an implementation of the Porter stemming algorithm, defined here: http://tartarus.org/martin/PorterStemmer/def.txt This implementation has not been tuned for high performance on large amounts of text. It is a simple (naive perhaps) implementation of the rules.

Command-line program:

To test out the library on the command-line:

    ./gradlew clean cliJar
    cat /path/to/file.txt | java -jar example/build/libs/example-all-1.0.0.jar 

Using the library:

The library is available on jcenter. To include the library in your project:

maven:

<dependency>
  <groupId>ca.rmen</groupId>
  <artifactId>porter-stemmer</artifactId>
  <version>1.0.0</version>
</dependency>

gradle:

compile 'ca.rmen:porter-stemmer:1.0.0'

To use the stemmer:

PorterStemmer porterStemmer = new PorterStemmer();
String stem = porterStemmer.stemWord("incorporated"); // returns "incorpor"

Versions

Version
1.0.0