A StringToken Parser which gives Google Search style “Did you mean:” Suggestions

后端 未结 8 1028
-上瘾入骨i
-上瘾入骨i 2020-12-28 11:17

Seeking a method to:

Take whitespace separated tokens in a String; return a suggested Word


ie:
Google Search can take \"fon

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 11:48

    You can use the yahoo web service here: http://developer.yahoo.com/search/web/V1/spellingSuggestion.html

    However it's only a web service... (i.e. there are no APIs for other language etc..) but it outputs JSON or XML, so... pretty easy to adapt to any language...

提交回复
热议问题