Path: utzoo!attcan!uunet!tektronix!orca!tekecs!frip!andrew From: andrew@frip.wv.tek.com (Andrew Klossner) Newsgroups: comp.os.cpm Subject: Re: Spelling checker routines Message-ID: <11348@tekecs.GWD.TEK.COM> Date: 28 Apr 89 00:37:23 GMT References: <8904270703.AA25482@ucbvax.Berkeley.EDU> Sender: andrew@tekecs.GWD.TEK.COM Organization: Tektronix, Wilsonville, Oregon Lines: 25 [] "Checking to see if a word is spelled correctly (based on the dictionary) seems fairly simple, but I also would like to have it suggest correct spellings for misspelled words. Does anyone know of a good way to do that?" The approach used in the spelling corrector component of the Unica(tm) utility set was to look through a (separate) dictionary of commonly misspelled words, which includes the correct spelling: mispell:misspell seperate:separate etc. Any hit is an unconditional misspelling, and the utility suggests the replacement word to the user. When other processing finds a misspelled word (a word isn't in the dictionary, it asks the user if it's right, the user says no), then it asks for a replacement and adds an entry to the misspelled-word dictionary. After a few weeks, the user's commonly misspelled words are pretty much all in there. -=- Andrew Klossner (uunet!tektronix!orca!frip!andrew) [UUCP] (andrew%frip.wv.tek.com@relay.cs.net) [ARPA]