Click here to Skip to main content
14,084,843 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
I'm surprised there aren't a ton of these, but what I'm looking for is a piece of code or a component that will take poorly formed sentences such as

"how do i give u a cat"

and converts it to

"How do I give you a cat"

Simple search and replace of things like "i -> I" and "u -> you" will do this, obviously, but there are subtleties such as "var i = 0".
Posted
Updated 18-Apr-14 15:42pm
v2
Comments
Sergey Alexandrovich Kryukov 17-Apr-14 22:08pm
   
Yee... I doubt it...
By the way, I hope you are talking about English, nothing else, right?
—SA
Chris Maunder 18-Apr-14 21:43pm
   
Let's start with English ;)
Member 9896332 20-Jun-14 10:30am
   
Have you found one yet?
Kenneth Haugland 17-Jun-15 3:24am
   
Cant you just use a dictionary with phonetic sounds, and compare the sounds?

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

I'm sorry about not giving a solution (which would greatly surprise me), but just a kind of answer: in my recent answer (How To Implemet Phonetic Search Algorithm..[^]) I tried to explain why I would not hold my breath. :-)

Just one example: if you misspell "weather" as "whether", or even "wether", in first case the word would be mistakenly considered as correctly spelled, and in second case there would no a reason to make preference between "weather" as "whether". Without semantic analysis, it's all impossible; and such analysis is much more then grammar, is a big unsolved problem. By the way, in English such cases are extremely frequent. In some other languages, grammar is much more complex and irregular, never formally described to depth.

—SA
   
v2
Comments
Chris Maunder 18-Apr-14 21:44pm
   
Point taken, but I'm looking for something very basic. I guess what I need is a txt-speak-to-English detector and translator.
ZurdoDev 18-Apr-14 21:49pm
   
Gmail uses one. I don't know what they use but it checks grammar.
ZurdoDev 18-Apr-14 21:50pm
   
Actually I take that back. It might actually be chrome that is doing it, and not gmail.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190518.1 | Last Updated 17 Jun 2015
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100