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

M

mike

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

char * alter(char *)

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

Paul Lalli

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top