Module: PromptSanitizer::EntityType

Defined in:
lib/prompt_sanitizer/entities.rb

Overview

All PII / sensitive entity types the gem can detect. Values are symbols — mirror the Python/JS string enum names.

Constant Summary collapse

PERSON =

── Personal identifiers ──────────────────────────────────────────────

:person
EMAIL =
:email
PHONE =
:phone
DATE_OF_BIRTH =
:date_of_birth
AGE =
:age
ADDRESS =

── Location ──────────────────────────────────────────────────────────

:address
ZIP_CODE =
:zip_code
CREDIT_CARD =

── Financial ─────────────────────────────────────────────────────────

:credit_card
IBAN =
:iban
BANK_ACCOUNT =
:bank_account
CRYPTO_ADDRESS =
:crypto_address
SSN =

── Government IDs ────────────────────────────────────────────────────

:ssn
PASSPORT =
:passport
DRIVING_LICENSE =
:driving_license
IP_ADDRESS =

── Network / Digital ─────────────────────────────────────────────────

:ip_address
MAC_ADDRESS =
:mac_address
URL =
:url
API_KEY =

── Secrets & credentials ─────────────────────────────────────────────

:api_key
JWT =
:jwt
BEARER_TOKEN =
:bearer_token
AWS_ACCESS_KEY =
:aws_access_key
AWS_SECRET_KEY =
:aws_secret_key
PRIVATE_KEY =
:private_key
DB_CONNECTION =
:db_connection
DATE =

── Temporal ──────────────────────────────────────────────────────────

:date
ORGANIZATION =

── NER-only (detected by SMART / FULL mode) ──────────────────────────

:organization
LOCATION =
:location
MISC =
:misc
CUSTOM =

── User-defined ──────────────────────────────────────────────────────

:custom
ALL =
constants(false).map { |c| const_get(c) }.freeze