Content Moderator not returning Flagged Terms / suppression list?

Amy Sand 1 Reputation point
2021-08-10T19:13:37.12+00:00

When I submit text to Content Moderator, sometimes it over-corrects and flags words that are not inappropriate like "dude." When this happens, it does not return the terms object. Example:

{
  "OriginalText": "dude",
  "NormalizedText": "dude",
  "AutoCorrectedText": null,
  "Misrepresentation": null,
  "Classification": {
    "Category1": {
      "Score": 0.6848050355911255
    },
    "Category2": {
      "Score": 0.2296631783246994
    },
    "Category3": {
      "Score": 0.16778776049613953
    },
    "ReviewRecommended": true
  },
  "Status": {
    "Code": 3000,
    "Description": "OK",
    "Exception": null
  },
  "PII": null,
  "Language": "eng",
  "Terms": null,
}

I would expect something more like this:

{
  "OriginalText": "shit",
  "NormalizedText": "shit",
  "AutoCorrectedText": null,
  "Misrepresentation": null,
  "Classification": {
    "Category1": {
      "Score": 0.5763477087020874
    },
    "Category2": {
      "Score": 0.2296631783246994
    },
    "Category3": {
      "Score": 0.8333353996276855
    },
    "ReviewRecommended": true
  },
  "Status": {
    "Code": 3000,
    "Description": "OK",
    "Exception": null
  },
  "PII": null,
  "Language": "eng",
  "Terms": [
    {
      "Index": 0,
      "OriginalIndex": 0,
      "ListId": 0,
      "Term": "shit"
    }
  ],
}

Is there a way to force it to return the Terms object? Or add a suppression list to ignore words we don't want flagged? Or even get a list of Microsoft's words so we can create a custom list off of that?

Thanks!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,995 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Cheong00 3,471 Reputation points
    2021-08-10T20:41:21.723+00:00

    You can get the list of terms with Terms API here.


  2. romungi-MSFT 42,116 Reputation points Microsoft Employee
    2021-08-11T06:18:23.777+00:00

    @Amy Sand Yes, you can create a custom term list and check the text against a custom term list.

    0 comments No comments