[rochester-pm-list] Crazy question - spellchecker

Alex Macur ALEX.MACUR at MDCONSULT.COM
Fri Dec 3 14:13:15 CST 1999


also not quick & easy is the FSF (www.fsf.org) version of spell - ispell
will compile on windows. 

Since ispell is actually integrated with my favorite editor xemacs I would
guess
that there are hooks for accessing ispell from other applications.

If you are going to code the spell check yourself you may be able to gain
some speed by
storing the dictionary as keys to a hash

Then you can just use  if ( exists( $dictionary{$word_from_text} ) instead
of having to
loop through each word of the dictionary for each word of text.

--
Alex


-----Original Message-----
From: Justin C. Sherrill [mailto:webmaster at rochester.rr.com]
Sent: Friday, December 03, 1999 14:41
To: rochester-pm-list at happyfunball.pm.org
Subject: RE: [rochester-pm-list] Crazy question - spellchecker


>http://www.perl.com/pub/language/ppt/src/spell/
>
>Maybe the easiest thing to do is open a system call to the UNIX spell
>command in the first place?

It would be... except I'm not on Unix.  I'm actually checking a relatively
small chunk of text (100-150 words), so what may work is to read in a
dictionary file once, and then compare it against the text.  (As opposed to
searching for each of the 100-150 words in the dictionary file reapeatedly.)

Justin C. Sherrill
Rochester Road Runner Webmaster
http://www.rochester.rr.com/
"Think slow, type fats"



More information about the Rochester-pm mailing list