Skip to content

PII detection

The pii detector

The pii detector identifies personally identifiable information (PII) and returns them together with their positions in the text as linked data in JSON-LD format (see also https://json-ld.org/).

The detector's output allows you to determine if a document contains potentially sensitive data and possibly create a new version of the text in which the PII is de-identified.

These are the information types pii can detect:

Information type Notes
Personal attributes Of a real person or a fictional character
Postal address
Bank account
IP address
E-mail address
URL
Financial product Credit or debit card
Phone number

These are the properties of each information type:

Information type Property Linked data reference
Personal attributes
Full name of the person https://schema.org/Person
First name https://schema.org/givenName
Last name https://schema.org/familyName
Age https://schema.org/Number
Gender https://schema.org/gender
Nationality https://schema.org/nationality
Date of birth https://schema.org/birthDate
Place of birth https://schema.org/birthPlace
Date of death https://schema.org/deathDate
Place of death https://schema.org/deathPlace
Any date or a time related to the person https://schema.org/Date
Postal address
Full address https://schema.org/Text
Street name and house number https://schema.org/streetAddress
Country https://schema.org/addressCountry
Postal code https://schema.org/postalCode
Locality https://schema.org/addressLocality
Region https://schema.org/addressRegion
PO box number https://schema.org/postOfficeBoxNumber
Bank account
IBAN code https://schema.org/PropertyValue
IBAN code country https://schema.org/Country
IP address
Address https://schema.org/Text
E-mail address
Address https://schema.org/email
URL
URL https://schema.org/URL
Financial product
Number of the credit/debit card https://schema.org/Text
Card Verification Value (CVV) or Card Verification Code (CVC) https://schema.org/Number
Card expiration date https://schema.org/Date
Phone number
Number https://schema.org/telephone

Useful resources:

Tip

To play with the JSON-LD object and get ideas for its possible uses, take a look at the JSON-LD playground site, where you can paste the JSON-LD object returned by the pii detector.