[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aspell-user
Subject:    [aspell-user] Re: [aspell] Affix or something else
From:       Myriam Abramson <abramson () nlm ! nih ! gov>
Date:       2001-02-06 20:39:51
Message-ID: t51ytby294.fsf () etbsun4 ! nlm ! nih ! gov
[Download RAW message or body]

> Kevin Atkinson <kevina@users.sourceforge.net> 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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic