Detection rules teach the platform to recognize a kind of data — an email address, an order ID, a phone number — just by looking at its values or its structure. Once a business term references a detection rule, any field that matches the rule's pattern gets automatically tagged with that term during profiling and data discovery, so you don't have to label matching fields by hand.
Overview
You manage detection rules from Data Quality › Rules › Detection Rules. The manager lists every rule with an active/inactive toggle, its Rule Name, Status (Active, Inactive, or Draft), and Rule Type. Select New Rule to create one. If you have no rules yet, select Create New Rule instead.
Each row has these actions. Each one is available only if you have the access it needs.
Edit — needs edit access to the rule.
Clone — needs permission to create rules. Use it to reuse an existing rule as a starting point.
Share — needs share access to the rule.
If you can't edit a rule, it opens read-only.


Choosing the rule type
When you create or edit a rule, you choose its Rule Type. The available type is Data, which detects anomalies, outliers, and quality issues within actual data values and content. Its conditions run against real field values, which is what detection rules need to recognize a pattern such as an email address or an order ID.
How the Detect Term logic works
Every detection rule follows the same shape. Start by naming and describing the rule, then choose its rule type. Next, you define what the rule looks at:
Attributes — the typed fields the rule will examine.
Variables — an attribute combined with a transformation, such as Trim or Remove Non-Digits, so you can normalize a value before matching against it.
With inputs defined, you set the rule's logic as a set of WHEN conditions over those attributes and variables. Unlike evaluation rules, the outcome of a detection rule is always the same: Then Detect Term. A detection rule exists to answer one question — does this field's data match the pattern? — so there's nothing else to configure for the result.
When a field matches, the business term linked to that rule is applied to the field automatically, wherever profiling or discovery encounters it. A rule only tags fields once you attach it to a business term in the term editor. Open the term, go to Detection on Attributes, and select Add a Detection Rule. For the full steps, see Business Ontology (Terms).
Creating a detection rule
Go to Data Quality › Rules › Detection Rules and select New Rule. The editor opens with the rule form on the left and the Rule Preview panel on the right.
Enter the rule's name in Name your rule. You can also add a short description in Add a description.
Under Select Rule Type, choose Data.
Under Define Inputs, open the Attributes tab and select Add Attributes. Enter the attribute's name and select its data type: String, Integer, Number, Boolean, or Date. To add another, select Add Attribute. Keep the rule to a single attribute.
Optional: to normalize a value before matching, open the Variables tab and select Add Variables. Enter a name, select the attribute in Select input attribute, and select Add transformation to pick one or more transformations, such as Trim or Remove Non-Digits.
Under Define Rule Logic, select Add Rule Set. This button works once you have chosen a rule type and added at least one attribute.
Set the condition. In the row that starts with Where, select the attribute or variable, choose an operator, and enter a value. To add more conditions, select New filter. To nest conditions, select New group. The result is always Then Detect Term.
Select Test Rule in the Rule Preview panel to check your logic. See Testing a rule below.
Select Save. Save stays unavailable until the rule has a name and rule logic. Select Cancel to leave without saving.


Condition operators
The operators you can choose depend on the data type of the attribute or variable you are checking.
String: Contains, Does not contain, Contains case sensitive, Does not contain case sensitive, Equals to, Does not equal, Starts with, Does not start with, Ends with, Does not end with, Is present, Is not present, Matches regex, Does not match regex.
Integer and Number: Less than, Less than or equal to, Greater than, Greater than or equal to, Equals to, Does not equal, Is present, Is not present.
Boolean: Is, Is not, Is present, Is not present.
Date: Equals to, Does not equal, Before, Before or equal to, After, After or equal to, Between, Is present, Is not present.
Is present and Is not present don't need a value.
Example: detect email addresses
This rule recognizes a field as an email address when its trimmed value contains an @ sign.
Select New Rule. Name it
Email address.Under Select Rule Type, choose Data.
Under Define Inputs, on the Attributes tab, add an attribute named
emailand set its type to String.On the Variables tab, add a variable named
email_trimmed. Selectemailas its input attribute and add the Trim transformation.Under Define Rule Logic, select Add Rule Set. In the Where row, select
email_trimmed, choose Contains, and enter@. The result is Then Detect Term.Select Test Rule, add one test case that looks like an email address and one that doesn't, and select Run Test.
Select Save. Then attach the rule to your Email Address term in the Business Ontology.
Testing a rule
Use Test Rule in the editor's preview panel to check your logic before saving. Add one or more test cases with sample values, select Run Test, and confirm whether each case detects as expected.
Notes
Keep each detection rule to a single attribute. Term detection evaluates one field at a time, so a rule that references multiple attributes — or none — is skipped entirely during detection. Evaluation rules can check quality across several fields, but they never tag a term, so they are the wrong tool if your goal is to tag fields.
Detection is scoped by data type. A rule built around a String attribute is only ever tried against String-typed fields, so make sure your rule's attribute type matches the fields you expect it to catch.