note
Anonymous Monk
<p><i>I've created a little spellchecker</i><p> Have you heard of [ddg://aspell]?
<p> <i> How can I do this? </i>
<p> 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
<p> my %dictionary; PopulateDict( \%dictionary, $file );
<p> my $answer = SuggestThese( @possibilities );
<p> use [doc://quotemeta] when generating regexes
<p> use a hash (also known as a dictionary ), see [href://Tutorials#Getting-Started-with-Perl|Tutorials] [id://526507|Data Types and Variables],[id://861|the basic datatypes, three]
<p> Hey, use [mod://Tie::DictFile] - tie a hash to local dictionary file
<p> For prompting you can use [id://796806|Term::Interact]
<p> You might even be able to use [mod://Text::Aspell]
1004395
1004395
9