Help Center/ Content Moderation/ User Guide/ (Optional) Configuring Custom Dictionaries
Updated on 2023-01-18 GMT+08:00

(Optional) Configuring Custom Dictionaries

Function

Before using the Text Moderation service, you can configure a custom whitelist dictionary or blacklist dictionary to filter and detect specified text.

  1. You can use custom dictionaries for free.
  2. A maximum of 10 custom blacklist dictionaries and 10 custom whitelist dictionaries can be created for an account.
  3. Custom whitelist dictionaries cannot be used in the flood scenario.

Procedure

  1. Log in to the Content Moderation console. In the left navigation pane, choose Settings > Custom Dictionary.
  2. On the displayed page, click the Blocklist Libraries or Allowlist Libraries tab and then Create Dictionary.
    Figure 1 Creating a dictionary
  3. In the displayed dialog box, enter a dictionary name and keywords.
    • Dictionary Name: A dictionary name contains a maximum of 40 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    • Add Keyword: A dictionary contains a maximum of 10,000 keywords. Each keyword consists of a maximum of 50 characters and ends with a carriage return.
  4. Click OK.
    • The dictionary name cannot be changed.
    • After a whitelist dictionary is configured, the whitelist takes effect by default in any detection scenario.
    • The created dictionary can be used in the request parameter categories. Setting categories to the dictionary name is setting a custom scenario.