When and Where to Use Conditions
AND and ALL
Use these Conditions when you need to narrow down your search by combining multiple criteria that must be met. For instance, if you’re looking for content that’s both offensive and related to a particular topic, the AND Condition ensures all logic is met. The ALL Condition is similar but requires every Condition in the list to be true. AND and ALL Conditions are used in the following format. ANY and ALL are entered, followed by parentheses containing a Signal or Signal List. Signals are enclosed in quotation marks and separated by commas. The Signals in this format are to be replaced with the content you are targeting. Example format:OR and ANY
These Conditions are best used when you want to cast a wide net and capture content that meets at least one of several conditions. They are especially helpful for Rules with broad categories, such as identifying various types of offensive language or slurs. OR and ANY Conditions are used in the following format. OR and ANY are entered, followed by parentheses containing a Signal or Signal List. Signals are enclosed in quotation marks and separated by commas. The Signals in the format example below are to be replaced with the content you are targeting. Example format:NOT and NONE
Use NOT when you need to exclude certain Conditions from your search. NONE ensures that none of the listed Signals are present, making it an ideal Condition when you want to avoid certain content or language. NOT and NONE Conditions are used in the following format. NOT and NONE are entered, followed by parentheses containing a Signal or Signal List. Signals are enclosed in quotation marks and separated by commas. The Signals in the format example below are to be replaced with the content you are targeting. Example format:Context Conditions
Context Conditions should be used when the relationship between objects is important. For example, if you need to flag threats related to violence but not other forms of threats, using a context operator like [CONCERNING] ensures that only relevant content is flagged. Context Conditions are used in the following format. Enter a Signal enclosed in quotation marks, an Operator enclosed in hard brackets, and then another Signal enclosed in parentheses. The entire Rule should also be enclosed in parentheses. The Signals and Operator in the format example below are to be replaced with the content you are targeting. Example format:Exact and Fuzzy Matches
Use Exact Match Conditions for clear, specific terms that must be flagged exactly as they appear. Fuzzy Match is useful when content may include variations or misspellings, helping to catch similar but not identical terms. Exact and Fuzzy Match Conditions follow the following formats. For an Exact Match, enter the symbol =, followed by a parentheses, followed by a Signal enclosed in quotation marks, then another closing parenthesis. For a Fuzzy Match, enter the symbol ~, followed by a parentheses, followed by a Signal enclosed in quotation marks, then another closing parenthesis. Example format:Sentiment Matches
Sentiment analysis is useful for detecting emotional undertones in content, such as hostility or threats. Use Sentiment Match Conditions when you’re less concerned with specific words and more focused on the tone or mood of the content. Sentiment Match Conditions follow the following format. Enter SENTIMENT, followed by a parentheses. Within the parentheses, enter a Signal enclosed in quotation marks, then a closing parenthesis. Example format:EXCEPT WHEN
Use EXCEPT WHEN when you need to allow for certain exceptions within a Policy Section or Policy Label. This is particularly useful when content may technically match a Rule’s Conditions, but shouldn’t be flagged due to context or lighter intent. EXCEPT WHEN Conditions are used in the following format. Input EXCEPT WHEN, followed by curly brackets containing one or more Rules in the curly brackets. Example format:Considerations
- Keep it simple: Start with basic operators like AND and ALL, and build complexity as needed. Overly complicated Rules can be difficult to manage.
- Test Fuzzy Matches: Make sure to test your Rules with different variations of the content to ensure Fuzzy Matches flag your expected variations.
- Use context wisely: Context Conditions are powerful but should be used carefully to avoid missing relevant content that may be better suited to be found using a Rule built with Connecting Conditions.
- Test and refine: Regularly review your Policies to ensure they are flagging the right content and adjust them as needed.
- Use EXCEPT WHEN thoughtfully: Ensure that the exceptions you create truly reflect the intent behind your Policy Section to avoid letting harmful content slip through.
We’d Love to Hear From You
Whether you have a suggestion, feedback, or a bug to report, here are the best ways to get in touch:- In the App: Use the Feedback button for direct suggestions.
- On Slack: Reach out to the team in your shared channel.
- With your AM: Talk to your dedicated account manager.
- Via Email: Send a message to [email protected].