Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Welcome to the Monastery
 
PerlMonks  

Peter Norvig Spelling Corrector in Perl 5

by vit (Pilgrim)
on Jun 03, 2012 at 17:04 UTC ( #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.

Comment on Peter Norvig Spelling Corrector in Perl 5
Download Code
Re: Peter Norvig Spelling Corrector in Perl 5
by tobyink (Prior) 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
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? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2013-05-25 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (519 votes), past polls