0

I wonder if Bing Spell Checker API is still properly supported. When I try to spellcheck English words or sentences it works as expected:

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Ocp-Apim-Subscription-Key: SOME_SECRET_API_KEY" -d "mkt=en-US&mode=spell&text=diveloper" https://api.bing.microsoft.com/v7.0/spellcheck

and return the correct result:

{"_type": "SpellCheck", "flaggedTokens": [{"offset": 0, "token": "diveloper", "type": "UnknownToken", "suggestions": [{"suggestion": "developer", "score": 1}]}], "correctionType": "High"}% 

However, if I try any other language it returns object with the empty "flaggedTokens"

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Ocp-Apim-Subscription-Key: SOME_SECRET_API_KEY" -d "mkt=de-de&mode=spell&text=Tschus" https://api.bing.microsoft.com/v7.0/spellcheck

returns:

{"_type": "SpellCheck", "flaggedTokens": []}

I tried it with and without different flags set: setLang=de&cc=De, the result is still the same

virtual98
  • 69
  • 3
  • 10

0 Answers0