开发者

get correct word from wrong word php

开发者 https://www.devze.com 2022-12-30 02:04 出处:网络
i want to know how to get correct word from wrong one... example The string is \"sstring\"开发者_StackOverflow中文版

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

example

The string is "sstring"

开发者_StackOverflow中文版

but the correct word is string...

is any algorithm in php?

thanks and advance


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号