Skip to contentRedact PII for your data. Get a quote

Coverage · Bulgaria

Bulgarian EGN detection and redaction

OpenAnonymizer finds the Bulgarian EGN in text and replaces it with a placeholder. The number is confirmed by its official label and its check digits are verified. It runs on a CPU, with no GPU and no API calls.

At a glance

Country
Bulgaria BG
Format
EGNЕГН, Единен граждански номер
Placeholder
BG_EGN1Each distinct value gets its own number: BG_EGN_1, BG_EGN_2, and so on.
How it is confirmed
ChecksumOfficial label and checksum
Used for
Identifying Bulgarian citizens across public services. A person registered for VAT uses it as their VAT number.

About the EGN

The EGN is 10 digits: the date of birth as YYMMDD, three digits for birth order (whose parity gives the sex), and a check digit.

The month is raised by 20 for people born in the 1800s and by 40 for people born from 2000.

ExampleThe engine's real output for this input, in Fast mode (the default). The number is a test value.
In
ЕГН: 8001011236
Out
ЕГН: BG_EGN1

How OpenAnonymizer handles it

Checked by checksum. The format's check digits are verified, so most mistyped or made-up numbers fail. A number with the right label and shape is still masked when its checksum fails, so a typo doesn't let it through.

  • It runs locally on a CPU, with no GPU and no API calls, so the text never leaves your machine.
  • Every package ships every detector, so this format is covered in each of them.
  • It covers 34 languages.
How a match is decided