Skip to content

Entity Types

The following entity types are detected by the PII and NER models.

PII Entities

NameDescriptionExample
PERSON_NAMEPeople's names (first, last, full)John Doe, Sarah J. Parker
NATIONAL_IDNational IDs: SSN, driver's license, passport numbers123-45-6789
EMAIL_ADDRESSEmail addressesjohn@example.com
PHONE_NUMBERPhone numbers (landline, mobile, international)+1-555-1234
ADDRESSStreet addresses, cities, states, ZIP codes123 Main St, New York, NY 10001
DATEDates (absolute and relative)2024-01-15
CREDIT_CARDCredit/debit card numbers (PAN)4111-1111-1111-1111
IBANInternational Bank Account NumbersGB82 WEST 1234 5698 7654 32
VAT_NUMBERTax registration IDs (VAT, GST, EIN, ITIN)GB123456789
USERNAMEUsernames and account identifiersjohndoe
ZIP_CODEUS ZIP codes (5 or 9 digit)10001
LICENSE_KEYSoftware license keysXXXXX-XXXXX-XXXXX-XXXXX
API_KEYAPI keys for SaaS servicessk-abc..., qa_live_xxx

NER Entities

NameDescriptionExample
ORGANIZATIONCompanies, agencies, institutionsAcme Corp, Stanford University
LOCATIONGeographic locations, landmarksEiffel Tower, Grand Canyon
GPEGeo-political entities (countries, cities, states)France, California, London

How Detection Works

The PII recognizer and the NER recognizer run in parallel. Results are merged, deduplicated, and sorted by position in the original text.

Specifying Entities

By default, all entity types are detected. Use the entities parameter with a comma-separated string of entity names to filter:

json
{
  "text": "My name is John Doe and my SSN is 123-45-6789.",
  "entities": "PERSON_NAME,NATIONAL_ID"
}

List available entities at runtime:

bash
curl https://demo.questa-ai.online/anonymize/entities

Next: Custom Entities

Questa AI documentation.