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:44:59 1999