CodeJunkie has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
Can anyone shed any light on modules that can spell check form elements, i.e. text boxes and textareas?

In my search so far I have found a module called Lingua::Ispell which uses a program called Ispell. I've also heard about Aspell But I don't know if there is a module that works with this.

Basically I was wondering is anyone had any opinions or thoughts about spell checking within Perl CGI scripts?

Cheers,
Tom

Replies are listed 'Best First'.
Re: Spellchecking Form Elements
by valdez (Monsignor) on Apr 08, 2003 at 17:32 UTC

    Few days ago on mod_perl mailing list there was an announce about Mason-CM, which includes a spell checker built with ispell. You may find that code interesting for your needs.

    HTH, Valerio

Re: Spellchecking Form Elements
by The Mad Hatter (Priest) on Apr 08, 2003 at 21:44 UTC
    A few months back when writing my own message board system (see my homenode if you're interested) I ran across the same problem. I eventually found the open source LiveJournal code that includes a module (LJ::SpellCheck) for spellchecking (it's just a handy interface to any ispell/aspell-like spellchecker). It works well for my board, although I did have to modify it a little to produce output in the manner I wanted.

    Nota Bene: If you have HTML in your input, you'll probably want to filter that out before using the module.