[Xapian-discuss] stemming an irregular forms?
Olly Betts
olly at survex.com
Tue Oct 18 04:37:31 BST 2011
On Fri, Oct 14, 2011 at 08:45:38AM +0200, Sascha.Wojewsky at heinze.de wrote:
> I could not find the irregular forms table in xapian.
> Please, could you tell me how to define/add words to the irregular
> forms table in xapian?
You can define your own stemmer by subclassing StemImplementation:
http://xapian.org/docs/apidoc/html/structXapian_1_1StemImplementation.html
So if you want to use an existing stemmer but handle some words
differently, just create a subclass which checks for the exceptions,
and passes all other words to the existing stemmer.
If there are words which are poorly handled by a particular stemmer,
it's worth letting us (or the snowball team) know too.
Cheers,
Olly
More information about the Xapian-discuss
mailing list