EvoInflector Algorithm

EvoInflector

EvoInflector implements English pluralization algorithm based on Damian Conway’s paper “An Algorithmic Approach to English Pluralization”.

The tests performed (December 2011) based on data from Wiktionary show perfect results for 1000 basic words and 70% of corrects answers for the entire Wiktionary set of more than 100000 words.

Words checked: 108774 (979 basic words)
Correct: 69.92112% (100.0% basic words)

(If you are curious this test is part of the unit tests)

Usage:

System.out.println(English.plural("word"));

will print “words”. You can download the library from here or use the following Maven dependency:

<dependency>
    <groupId>org.atteo</groupId>
    <artifactId>evo-inflector</artifactId>
    <version>1.0.1</version>
</dependency>

Source # https://github.com/atteo/evo-inflector
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s