Bing Spell Check API callout is successful but no flaggedtokens returned when there is new line in the text

abchua 1 Reputation point
2022-03-07T19:04:01.27+00:00

My input is this text --- The quick brown fox jumped overd the lazy dog.

I am getting 'overd' as a flagged token on this, thus I know that the request works. However when I add a new line to any part of the text, the callout is still successful but no flagged tokens come back. {"_type": "SpellCheck", "flaggedTokens": []}

Here is how the request is setup --- req.open("GET", this.endpoint + "?mode=proof&mkt=en-US&text=" + encodeURIComponent(textToCheck));

If there is anything else needed in the request to fix this, let me know.

Are there other reasons/causes for the API to run without error but fail to detect misspelling?

Bing Spell Check
Bing Spell Check
A Bing service that detects and corrects spelling mistakes in your app.
29 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,961 Reputation points Microsoft Employee
    2022-03-08T09:54:49.813+00:00

    @abchua I have tried the same scenario directly by calling the API via postman and it flags the text correctly that is misspelled. I think you are not getting any suggestions because of the formatting of the text parameter that is passed in your request. Could you print your request and check the parameters that are passed in your call?

    180957-image.png