Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Perl Programming Language

Is it possible to correct word(s) via Perl?Does this kind of modules exist?


like following function(C format function just demonstrates the task):

char * alter(char *)

input:         "taxxi"                   return:             "taxi"
input          "mov1e"               return:             "movie"

On Jun 5, 6:15 pm, mike <needpass@gmail.com> wrote:

> like following function(C format function just demonstrates the task):

> char * alter(char *)

> input:         "taxxi"                   return:             "taxi"
> input          "mov1e"               return:             "movie"

Is this what you're looking for?
http://search.cpan.org/~hank/Text-Aspell-0.08/Aspell.pm

Paul Lalli

Very likely. Thanks a lot, Paul, I will check it out if it works this
way.
Seems that no module has the capability to revise words:-(
On Jun 5, 6:59 pm, mike <needpass@gmail.com> wrote:

> Seems that no module has the capability to revise words:-(

Well of course not.  How is any module supposed to know if I say
'gaughter' whether I meant to type 'daughter' or 'laughter'?  Human
beings know based on context.  It would take a seriously advanced AI
program to be able to understand context of any random block of text
to be able to decide which possible misspelling was intended.

On the other hand, if your typo is something like 'taxxi' as in your
example, and the module's suggestions() method only returns one
possible correction, it's pretty simple to write a program to make the
replacement for you.

Paul Lalli

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc