Table of Contents

Enum PiiPatternKinds

Namespace
LMKit.TextAnalysis
Assembly
LM-Kit.NET.dll

The deterministic detectors of PiiPatternDetector. Each one recognizes a format and, where the identifier carries one, validates its checksum, so a hit is certain rather than probable.

[Flags]
public enum PiiPatternKinds

Fields

None = 0

No detector.

Iban = 1

International bank account numbers: the country's registered length and the ISO 13616 mod-97 check. Reported as BankAccountNumber.

PaymentCard = 2

Payment card numbers: 13 to 19 digits of a known issuer range, spaces or hyphens allowed, Luhn check. Reported as CreditCardNumber.

FrenchSocialSecurityNumber = 4

French social security numbers (NIR): 13 digits and their 2-digit key (97 minus the number modulo 97), Corsican departments 2A and 2B included. Reported as SocialSecurityNumber.

Siren = 8

French company numbers (SIREN): 9 digits, Luhn check, written in three groups of three or introduced by "SIREN" or "RCS". Reported as CompanyIdentifier.

Siret = 16

French establishment numbers (SIRET): 14 digits, Luhn check (La Poste's establishments by their own rule). Reported as CompanyIdentifier.

VatNumber = 32

EU VAT identification numbers: the member state prefix and its format; the French key and the Belgian check are verified. Reported as VatNumber.

EmailAddress = 64

E-mail addresses. Reported as EmailAddress.

PhoneNumber = 128

Phone numbers in international form (+ and 8 to 15 digits) and French national form (10 digits starting with 0). Reported as PhoneNumber.

IpAddress = 256

IPv4 and IPv6 addresses. Reported as IpAddress.

All = Iban | PaymentCard | FrenchSocialSecurityNumber | Siren | Siret | VatNumber | EmailAddress | PhoneNumber | IpAddress

Every detector.

Share