|We don't bite newbies here... much|
Re: problem spellcheckerby Anonymous Monk
|on Nov 18, 2012 at 12:13 UTC||Need Help??|
I've created a little spellchecker
Have you heard of aspell?
How can I do this?
Write function, functions that take arguments, functions that return values, functions that can be tested outside of jurafskyspell.pl, functions that don't operate on global variables
my %dictionary; PopulateDict( \%dictionary, $file );
my $answer = SuggestThese( @possibilities );
use quotemeta when generating regexes
Hey, use Tie::DictFile - tie a hash to local dictionary file
For prompting you can use Term::Interact
You might even be able to use Text::Aspell