Skip to content

What Sombra detects

Sombra extends Presidio's default recognizers. Everything Presidio already detects keeps working — names via spaCy NER, e-mails, phone numbers, URLs, locations — and Sombra adds the Brazilian patterns that are missing:

EntityExampleConfidence
SOMBRA_CPF123.456.789-000.95 (1.00 with context)
SOMBRA_CEP80000-0000.95
SOMBRA_CNPJ12.345.678/0001-900.95
SOMBRA_ADDRESSRua das Flores, 1230.75
PERSONJoão (spaCy NER)0.85
LOCATIONCuritiba (spaCy NER)0.85

PERSON and LOCATION come from Presidio's built-in spaCy NER. The SOMBRA_* entities are Sombra's own pattern-based recognizers.

How masking looks

Detected tokens are replaced by masks in the anonymizer, e.g.:

Consult my order in the name of João, CPF <SOMBRA_CPF>, living in Curitiba, CEP <SOMBRA_CEP>.

Next

Building on this stack? Head to Make targets or the Development section to add your own entities.

Apache-2.0 · Sombra