Overriding the project entity type configuration

By default, each file in a project uses the project-wide settings for Textual entity types. The entity type settings include:

  • Whether each entity type is enabled. You can enable or disable both built-in and custom entity types. When you disable an entity type, values of that type are ignored by the Textual scan.

  • For each built-in entity type, added and excluded values.

Within a file, you can override the project settings. When you save the new settings, Textual automatically rescans the file to change the detected entities based on the new settings.

Displaying the file-specific entity type settings

To display the file-specific entity type settings, either:

  • On the details panel for a redaction, click the settings icon.

  • In the file header, click More, then click File-specific entity detection settings.

Enabling and disabling entity types

To enable an entity type, set the entity type toggle to the on position.

To disable an entity type, set the toggle to the off position.

Adding and excluding values for a built-in entity type

To display the panel to add and exclude values, click the add or exclude values icon.

On the panel:

  • Use the Add to detection tab to add values.

  • Use the Remove from detection tab to remove values.

Each value can be either a specific word or phrase to add or exclude, or a regular expression to identify the values to add or exclude. Regular expressions must be C# compatible.

Saving and updating the detection based on the changes

When you finish the configuration changes, click Save.

Textual rescans the file and changes the detected entities based on the new settings.

For example, the initial scan detected a Given Name value. You change the file-specific settings to disable the Given Name entity type. After the new scan, the value is no longer highlighted.

Last updated

Was this helpful?