Expand description
Validation functions for PII patterns.
These functions provide additional validation beyond regex matching to reduce false positives. For example, credit card numbers must pass the Luhn checksum, and IBANs have country-specific formats.
Functionsยง
- validate_
credit_ card - Validate credit card number using Luhn algorithm.
- validate_
entity - Validate a detected entity value based on its type.
- validate_
iban - Validate IBAN format and checksum.
- validate_
ip_ address - Validate IPv4 address octets are in valid range.
- validate_
isbn - Validate ISBN-10 or ISBN-13 checksum.
- validate_
uk_ nhs - Validate UK NHS Number using mod-11 checksum.
- validate_
uk_ nino - Validate UK National Insurance Number format.
- validate_
us_ ssn - Validate US Social Security Number format.