问题
I have been searching all over the Internet, but did not find that exact API.
I'd like to use their Did You mean feature for my own website.
回答1:
doSpellingSuggestion I believe is the api call. There is a good example here
Update
As people have noted, the link is broken. Here is a Wayback Machine's archived copy.
回答2:
Pygoogle has an api call for that
http://pygoogle.sourceforge.net/dist/doc/public/google-module.html#doSpellingSuggestion
>>> import google
>>> google.LICENSE_KEY = '...'
>>> google.doSpellingSuggestion('pithon')
'python'
回答3:
There's been a great Python example going around for awhile showing exactly how to implement this (in only 21 lines of code!): http://norvig.com/spell-correct.html It was shown at the Stackoverflow DevDays in Toronto, and I believe at some of the other locations.
回答4:
Here is one in python that get the didyoumean results
来源:https://stackoverflow.com/questions/1691275/does-google-allow-other-people-to-use-their-did-you-mean-api