On Tue, 18 Nov 1997, David Klasinc wrote:
> > and even better, how you think it should be done, to save memory,
> > and speed (searching and doing Strcmp()'s is costly to the CPU i assume)
> > and any ideas on how to speed it up (hash table comes to mind but i'm
> > not to sure how to do it)
>
> Uhm, how about taking a look at code for ispell? Ispell is a very nice
> spellchecker, anyway, I think that the biggest problem would be then
> getting the dictionaries and maybe for each builder having a personal
> dictionarie.... ec, etc...
Just run ispell, there's a way to run it so it will accept words via
stdin and output results to stdout.
I've sent the code for this to the MERC mailing list a while ago; I've
made the letter available on my Letters page, at
http://pip.dknet.dk/~erwin/letters/.
I never got around to integrating it with an editor however; currently
it's just a command you can execute and then get the relevant output from
ispell. Unfortunately, we are right now 1-2mb below out 32mb memory quota,
and ispell takes up 2-3 :)
=============================================================================
Erwin Andreasen Herlev, Denmark <erwin@pip.dknet.dk> UNIX System Programmer
<URL:http://pip.dknet.dk/~erwin/> <*> (not speaking for) DDE
=============================================================================
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST