Grammar exclusions

Grammars are used to identify potentially sensitive data in your environment. The grammars built into OpenText Core Data Discovery & Risk Insights identify distinct common types of data and the custom grammars let you identify data that is specific to your company's needs. You can also define patterns that let you exclude specific information from those grammars. You will use Lua script patterns to define the grammar exclusions at either the grammar rule level or the grammar type level. If you add exclusions to the grammar type, the exclusions are inherited by all grammar rules under the grammar type.

As an example of a grammar exclusion, you want to identify all phone numbers within your data except for internal company phone numbers. You can add an exclusion to the individual country or region-specific grammar rules, add exclusions to the Phone Numbers > World Wide grammar rule, or add exclusions to the Phone Numbers grammar type.

  • If all internal company phone numbers follow a single pattern, you can add the exclusion to the Phone Numbers grammar type and the pattern is inherited to all country and region grammar rules under the grammar type. Alternately, you could add the exclusion pattern to the specific country or region grammar rule that has the same syntax as the internal company phone number.

  • If internal company phone numbers have varying patterns, you can add all of the necessary exclusions to the Phone Numbers grammar type and the pattern is inherited to all country and region grammar rules under the grammar type. Alternately, you can add all the exclusions to the Phone Numbers > World Wide grammar rule or add an exclusion to each of the country or region grammars rules as appropriate for the pattern of your internal company phone numbers.

TIP: Grammar exclusions are defined using Lua script patterns. For more information about Lua, see the Lua Programming Language website .