Click here to Skip to main content
12,405,868 members (44,804 online)
Rate this:
 
Please Sign up or sign in to vote.
hello everyone,

i want to make a program that can suggest a word base on our input.i dont know how to explain more about it. But for example, i want to spell "battery" but i put "bettcry" as the input. Anyone can help or have an ideas?

really appreciate..
Posted 17-May-12 3:59am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

The quality of the proposed words highly depends on the algorithm you choose. One very straightforward is SOUNDEX[^]. Not sure if that's suitable to your needs, but have a look
  Permalink  
Comments
losmac 17-May-12 10:49am
   
+5!
Mika Wendelius 17-May-12 14:07pm
   
Thanks
kodikoko 19-Sep-12 10:41am
   
thanks..this is helpful
Mika Wendelius 19-Sep-12 10:50am
   
You're welcome :)
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

If you're looking for database algorithm to "catch" bad inputs, see SIMIL[^] slgorithm.
  Permalink  
Comments
Mika Wendelius 17-May-12 14:07pm
   
Good suggestion
losmac 17-May-12 16:05pm
   
Thank you, Mika ;)
kodikoko 19-Sep-12 10:41am
   
thanks..this is helpful

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 | Mobile
Web02 | 2.8.160721.1 | Last Updated 17 May 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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