> Kevin Atkinson <[EMAIL PROTECTED]> scribbled furiously:

> Whew!  The "remove affixes" direction, which is used when you need to
> verify the spelling of a word, works in almost the same way.  The big
> difference is that since the context rules apply to the root, you
> can't check them until after you've made the transformation.  Again,
> the first thing I do is to check the length of the word against the
> affix lengths to make sure that what I'm about to do is sensible.
> Then I string-compare the "append" string with the tail of the word.
> If they match, I strip off the "append" string (by just trimming the
> right number of characters) and add on the "strip" string.  Again,
> that can be done with a single strcpy for suffixes.

What would happen if the misspelling was in the affix? 


                                          myriam

Go Proverb:

Capture what you cut off.

_______________________________________________
aspell-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/aspell-user

Reply via email to