1. Yushi Wang
  2. Clojure-stemmer




Project repo moved to github.com/m00nlight/clojure-stemmer

A Clojure version of the porter stemming.

Use the ruby version here to do the contrast test.

This is an open source program, you can copy it, modified it or redistribute it, but must comply with the new BSD licence.


With leiningen, you should add the following in you project.clj:

[clojure-stemmer "0.1.0"]

With maven, you should add the following configuration to you pom.xml:


After you start the clojure repl with command lein repl, you can do as following to use it:

user=> (use '[clojure-stemmer.porter.stemmer])
user=> (stemming "chinese")
user=> (stemming "feeds")
user=> (stemming "reeds")
user=> (stemming "saying")

You can also run the all test, if you use the lein to manager clojure project, just by typing lein test under the project root directory.

Running result is something like :

➜  clojure-stemmer git:(master) ✗ lein test

lein test clojure-stemmer.core-test

Ran 10000 tests containing 10000 assertions.
0 failures, 0 errors.
➜  clojure-stemmer git:(master)

The code was tested under Clojure version 1.4.0 and 1.5.1 and 1.6.0.


Copyright © 2013-2015 m00nlight

Distributed under the new BSD License.