Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Spell Check modules?

by Anonymous Monk
on Aug 02, 2003 at 15:14 UTC ( [id://280290]=note: print w/replies, xml ) Need Help??


in reply to Spell Check modules?

Here ya go:

my %dictionary = (); open(DICTIONARY, "<your_dictionary") or die $!; while (<DICTIONARY>) { chomp; $dict{$_} = 1; } close(DICTIONARY); while (doc_to_check) { unless ($dict{$_}) { print "$_ is spelled incorrectly.\n"; } }

The key is finding a good dictionary, and providing alternative spellings when a word isn't found.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://280290]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-03-28 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found