Getting Started
Quickstart
Redact European PII in one function call. Choose your language and get running in 30 seconds.
code
Python
1. Install
Terminal
$ pip install euredact2. Redact
main.py
from euredact import redact
result = redact("Mijn BSN is 111222333 en IBAN NL91ABNA0417164300.")
print(result.redacted_text)
# "Mijn BSN is [NATIONAL_ID] en IBAN [BANK_ACCOUNT]."
print(result.detections)javascript
Node.js
1. Install
Terminal
$ npm install euredact2. Redact
index.ts
import { redact } from "euredact";
const result = redact("Mijn BSN is 111222333 en IBAN NL91ABNA0417164300.", {
countries: ["NL"],
});
console.log(result.redactedText);
// "Mijn BSN is [NATIONAL_ID] en IBAN [BANK_ACCOUNT]."
console.log(result.detections);What Gets Detected
euRedact detects 27 PII entity types across 31 European countries with 98.3% recall and 98.9% precision, backed by 345 pattern definitions and 44 checksum validators. Those figures come from a generated evaluation set of 152,300 records, and assume the optional countries parameter is supplied — passing it lifts recall from 94.4% and precision from 95.2%, and runs 3.5x faster. Date-of-birth detection is excluded and sits at 40.6% by design; bare dates are deferred to the LLM tier.
[NATIONAL_ID][BANK_ACCOUNT][PHONE][EMAIL][TAX_ID][CREDIT_CARD][LICENSE_PLATE][PASSPORT][VAT][BIC][VIN][IP_ADDRESS][MAC_ADDRESS][UUID][IMEI][GPS_COORDINATES][SOCIAL_HANDLE][DOB][POSTAL_CODE][HEALTHCARE_PROVIDER][HEALTH_INSURANCE]