Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Peter Norvig Spelling Corrector in Perl 5

by vit (Friar)
on Jun 03, 2012 at 17:04 UTC ( [id://974168]=perlquestion: print w/replies, xml ) Need Help??

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

Dear Monks,
Could anybody give me a link or a code in Perl 5 for Peter Norvig's spelling corrector.
There is one written in Perl 6
http://www.riffraff.info/2007/5/20/a-spell-corrector-in-perl6-part-3
I do not think Perl 6 became popular. Correct me if I am wrong.

Replies are listed 'Best First'.
Re: Peter Norvig Spelling Corrector in Perl 5
by tobyink (Canon) on Jun 03, 2012 at 20:10 UTC

    It's probably not massively complex to backport to Perl 5. There are gather/take implementations on CPAN you could use.

    I do not think Perl 6 became popular. Correct me if I am wrong.

    It hasn't yet.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found