Bing Spell Check API returns incorrect token for square brackets in input RRS feed

  • General discussion

  • At set the mode to "Spell" and submit the input: [word] themselfs

    The correction is: [themselves] themselfs

      "_type": "SpellCheck",
      "flaggedTokens": [
          "offset": 1,
          "token": "word",
          "type": "UnknownToken",
          "suggestions": [
              "suggestion": "themselves",
              "score": 1.0

    This appears to happen for any correctly-spelled word within the square brackets in the input. The bug is that it returns a flagged token "word" at offset 1. The expected behaviour is returning a flagged token "themselfs" at offset 7.

    If the square brackets are deleted, then "word themselfs" is corrected to "word themselves" as expected.

    Wednesday, August 14, 2019 5:55 PM

All replies

  • Hello Bradley,

    Thanks for your question and observations. This issue is documented as a known issue and the API will behave inconsistently when '[',']' are used. We recommend removing them from your queries when used with the spell mode.

    Here is a note about the same in Azure Spell check API documentation.


    Friday, August 16, 2019 10:19 AM
  • Thank you; I had missed that list of known issues. I can replace the characters before submitting a query to the API.
    Tuesday, August 20, 2019 6:28 PM