Skip to main content.
home | support | download

Back to List Archive

Re: Bug in stemmer.c

From: Gary Poster <garykaryn(at)>
Date: Tue Oct 19 1999 - 16:50:52 GMT
Thanks for working so vigorously on SWISH-E.  I'm having a hard time keeping
track of all your posts, though.  Once you finish your review, could you
just post your new versions of all the c files?  Or perhaps SWISH will
catalog all your bug fixes...but if I go in myself and try to put all of the
many changes in to my own C files, it is not only inefficient but also
error-prone.  Perhaps SWISH-E could post the whole C file as a beta upgrade
of SWISH-E, for instance?


Gary Poster

(mailed to discussion group and directly to Bill Moseley)

-----Original Message-----
From: Bill Moseley <>
To: Multiple recipients of list <>
Date: Tuesday, October 19, 1999 11:55 AM
Subject: [SWISH-E] Bug in stemmer.c

>In stemmer.c, function: EndsWithCVC
>   if ( (length = strlen(word)) < 2 )
>       return( FALSE );
>should be:
>   if ( (length = strlen(word)) < 3 )
>       return( FALSE );
>This routine is looking at the last three characters of a string, so it
>makes sense to make sure there are at least three characters instead of
>The error was causing EndsWithCVC to read off the beginning of a string and
>resulting in the same word stemming differently.
>Amazing how a ten year old routine could have such an obvious bug.
>Bill Moseley
Received on Tue Oct 19 09:44:59 1999