> For the complete documentation index, see [llms.txt](https://docs.syntho.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.syntho.ai/overview/get-started/syntho-bootcamp/5.-generators/free-text-de-identification.md).

# Text de-identification

[Text de-identification](https://docs.syntho.ai/configure-a-data-generation-job/configure-column-settings/mask/text/automatic-pii-discovery-and-de-identification-in-free-text-columns.md) detects sensitive information inside notes, comments and descriptions. It replaces the detected parts while preserving the surrounding text.

{% hint style="warning" %}
Text de-identification can significantly increase generation time. Start with a representative sample and review the output.
{% endhint %}

## When to use it

* Text cells contain several pieces of information, including embedded names or identifiers.
* You need business-specific regex detection, such as patient reference numbers.
* You need consistent replacements between free text and structured columns.

For a column containing only one identifier, such as an email address, a dedicated Mock or Mask generator is usually simpler.

## Apply text de-identification

1. Open the column settings and select **Mask > Text de-identification**.
2. Select the correct **Locale** and an available **Detection model**, or **None**.
3. Review **Entity types** and set each relevant entity to **Mock**, **Annotate** or **Disable**.
4. For **Mock**, configure the replacement generator. Enable its **Consistent mapping** when matching values must stay aligned.
5. Use **Add sensitive entity** for custom regex entities, or **List rules** to extend a system entity.
6. Add known false positives to **Exclude from detection list** if needed. **Exclude only exact matches** is on by default.
7. Click **Confirm**, preview or generate a sample, and review missed values and false positives.

New custom entities default to **Disable**. Enable **Mock** or **Annotate** in every column where they should apply.

Text de-identification combines applicable regex rules, lookup dictionaries and built-in recognizers with an optional NLP model. Selecting a model adds model-based detection; **None** retains the model-free baseline.

Syntho applies the entity's minimum confidence and resolves overlapping detections, then applies its configured action:

* **Mock** replaces a detection using its replacement generator.
* **Annotate** replaces a detection with its entity label, such as `<EMAIL>`.
* **Disable** leaves that entity out of detection.

Exclusions suppress individual detections that match the configured expressions. Other overlapping detections may still apply.

If rare-category protection is enabled, it runs before text PII processing.

Select **Locale** in the **Text de-identification** column configuration. Available locales include **English**, **Dutch**, **German** and **Japanese**. Detection coverage and applicable entities differ by locale.

Syntho ships a spaCy NLP model for each of these locales. Select the offered model to add model-based detection, or select **None** to use the available regex, lookup and built-in recognizers without an NLP model.

Additional compatible NLP models must be deployed where preview and generation jobs run. Syntho does not automatically download them; contact Syntho to align on other model requirements.

* **Review output:** detection can miss sensitive information or flag non-sensitive text. Quality depends on the locale, model, rules and domain.
* **Confidence:** a rule's confidence score and an entity's minimum threshold serve different purposes. A high score is not a guarantee of accuracy.
* **Overlaps:** multiple recognizers can detect overlapping text. The final result can combine matches or give precedence to one span rather than generating one replacement per rule.
* **Exclusions:** exact matching is enabled by default and is case-insensitive. Partial matching can exclude more than intended. Excluding one detection does not automatically exclude every overlapping detection.
* **Custom entities:** new entities default to Disable. Choose Mock or Annotate in each column where they should apply. Entity and rule changes affect the workspace; actions and replacements are configured per column.
* **Consistency:** matching text and structured values require the same replacement generator, settings and seed, with Consistent mapping enabled. The updated behavior changes consistent text outputs compared with Syntho 2026.2.1.
* **Models:** a non-default model must be deployed where generation jobs run. A missing model causes generation to fail, but does not prevent rule-based previews. Syntho does not automatically download models.
* **Preview:** the preview de-identifies free text with rule-based detection only, such as regular expressions, lookups and custom rules. Sensitive data that only the language model detects, and rare category protection, are applied in the generated data only.
* **Performance:** test with representative data before running large jobs. Text detection can significantly increase processing time.

For detailed configuration, examples and workspace-level rule management, see the [full user guide](https://docs.syntho.ai/configure-a-data-generation-job/configure-column-settings/mask/text/automatic-pii-discovery-and-de-identification-in-free-text-columns.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.syntho.ai/overview/get-started/syntho-bootcamp/5.-generators/free-text-de-identification.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
