Add "did you mean" to my search word script?

Discussion in 'PHP' started by Talish, Feb 8, 2012.

  1. #1
    Well I have made an online dictionarywww.wordpetal.comBut if you spell a word wrong it doesn't show the definitian obviouslyHow can I add a did you mean... to the search so it spots spelling errors etc...
     
    Talish, Feb 8, 2012 IP
  2. Houdas

    Houdas Well-Known Member

    Messages:
    158
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #2
    You can make a little hack - scrape Google search results page for given keyword and search for "Showing results for .....". Then, save these words somewhere so you don't need to scrape G next time.
    If you dont want to do this, you need to get your own words database somewhere, then perform Levehnstein distance.
     
    Houdas, Feb 8, 2012 IP
  3. Talish

    Talish Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    My website might help readers help me do thiswww.wordpetal.com
     
    Talish, Feb 8, 2012 IP
  4. Houdas

    Houdas Well-Known Member

    Messages:
    158
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #4
    Dude are you blind? I suggested a solution... omg, DP is really turning to shit.
     
    Houdas, Feb 11, 2012 IP