Parameters

ParameterTypeDefaultDescription
mask_piiboolFalseWhether to mask the PII in the input, rather than raising an error.
enable_ssn_checkboolTrueWhether to check for Social Security Numbers.
enable_credit_card_checkboolTrueWhether to check for credit cards.
enable_email_checkboolTrueWhether to check for emails.
enable_phone_checkboolTrueWhether to check for phone numbers.
custom_patternsdict{}A dictionary of custom PII patterns to detect. This is added to the default patterns.