You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Jacob, Jerry (RIS-ATL)" <je...@lexisnexis.com> on 2014/06/18 18:31:46 UTC

Limit Porter stemmer to plural stemming only?

Hi,

Can you please share the Java code for Plural Only Porter Stemmer for English if you don't mind?

Thanks,
Jerry



Re: Limit Porter stemmer to plural stemming only?

Posted by Chris Hostetter <ho...@fucit.org>.
: Can you please share the Java code for Plural Only Porter Stemmer for English if you don't mind?

The Porter stemmer algorithm, by definition, does more then just stip 
plurals.

If you are interested in a lighter weight stemmer for english, this is 
exactly what the EnglishMinimalStemFilterFactory is for...

https://lucene.apache.org/core/4_8_0/analyzers-common/org/apache/lucene/analysis/en/EnglishMinimalStemFilterFactory.html

Although you may also be interested in combining it with the 
EnglishPossessiveFilterFactory...

https://lucene.apache.org/core/4_8_0/analyzers-common/org/apache/lucene/analysis/en/EnglishPossessiveFilterFactory.html



-Hoss
http://www.lucidworks.com/