What is Data Mask?
Data Mask is a security layer that sits between your application and an AI model. It replaces personal data with placeholders before text reaches the model, and swaps the placeholders in the model’s answer back for the real values.
Which personal data does it mask?
It finds names of people and companies, addresses, ID numbers such as the Turkish national ID, bank numbers such as IBANs, and health data such as diagnoses, and replaces each with a placeholder like <PERSON_0> or <TR_NATIONAL_ID_0>.
Can masked data be restored?
Yes. Data is not replaced with asterisks; it is replaced with a meaningful placeholder. When the AI’s answer arrives, Data Mask puts the real values back one to one.
Which AI models does it work with?
The SDK never calls the model for you. ChatGPT, Claude, Gemini or an open-source model on your own server: you keep working with whichever one you already use.
How well does the masking perform?
Across 320 real legal documents, it completely masked 98.4% of the data that had to be masked. Data Mask relies on its own AI model trained on Turkish legal text and on rules that verify the check digits of numbers.
Can we install it on our own servers? Does it need a GPU?
Yes. The whole of Data Mask installs in your own data centre and runs without a GPU.
Where is the placeholder mapping stored?
You decide. You can keep the mapping in the service and delete it when you are done, or keep it entirely on your side with a single parameter; in that case the service stores nothing.
What happens if the detection model goes down?
The system does not return half-masked text. It rejects the request: a loud error instead of a silent leak.
Which file types are supported?
You send PDF, Word and plain-text files directly. Up to three related documents are processed in one call, and the same person gets the same placeholder in all of them.
How do we integrate it into an existing application?
You add one line before your existing model call and one line after it. The official SDK is published on PyPI for Python and on npm for Node.js; for other languages the same functions are available over a standard REST API.