views:

38

answers:

1

hi

i want to know how to get correct word from wrong one...

example

The string is "sstring"

but the correct word is string...

is any algorithm in php?

thanks and advance

+2  A: 

The easiest way would be accessing the Google spellchecker API.

There are also local solutions which just require a dictionary file. Googling for 'php spellchecker' will give you tons of possible solutions.

ThiefMaster