Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: problem spellchecker

by Anonymous Monk
on Nov 18, 2012 at 12:13 UTC ( #1004399=note: print w/replies, xml ) Need Help??


in reply to problem spellchecker

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

use a hash (also known as a dictionary ), see Tutorials Data Types and Variables,the basic datatypes, three

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004399]
help
Chatterbox?
[thao4]: I posted my question, Could you help me , Please ?
[thao4]: posted with the title :Replace a patern_2 in 30 lines from the line with the patern_1 founded
[Eily]: karlgoethebier but we're trying to stay hidden!
[shmem]: thao4 example of the text and program missing in your post
[Eily]: also you can use <p> or <br /> tags to have multiple lines

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2018-02-21 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (277 votes). Check out past polls.

    Notices?