Skip to main content.
home | support | download

Back to List Archive

Re: Re: Bug in stemmer.c

From: Roy Tennant <rtennant(at)not-real.library.berkeley.edu>
Date: Tue Oct 19 1999 - 16:53:10 GMT
All patches are put in the Patch directory at:

http://sunsite.berkeley.edu/SWISH-E/Patches/

(Bill's is "stemmer.c" for example) and many of them will make it into the
next release, whenever that happens. But we do not presently have a
release date set for the next version.
Roy Tennant

On Tue, 19 Oct 1999, Gary Poster wrote:

> 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?
> 
> Thanks
> 
> Gary Poster
> 
> (mailed to discussion group and directly to Bill Moseley)
> 
> -----Original Message-----
> From: Bill Moseley <moseley@hank.org>
> To: Multiple recipients of list <swish-e@sunsite.berkeley.edu>
> 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
> two.
> >
> >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
> >mailto:moseley@hank.org
> >
> 
> 
Received on Tue Oct 19 09:52:39 1999