{
  "id": "esnif",
  "kind": "datatype",
  "status": "stable",
  "name": "Spanish Tax identification number",
  "doc": "Spanish tax identification number used to identify tax paying individuals",
  "children": [
    "es_dni"
  ],
  "is_pii": true,
  "categories": [
    "pii",
    "persons"
  ],
  "country": [
    "ES"
  ],
  "langs": [
    "es"
  ],
  "classification": "identifier",
  "regexp": "[0-9]?[0-9]{7}[-]?[A-Z]",
  "mappings": {
    "dpv": "pd:OfficialID",
    "google_dlp": "SPAIN_NIF_NUMBER",
    "presidio": "ES_NIF",
    "purview": [
      "Spain tax identification number",
      "EU Tax Identification Number (TIN)",
      "EU Tax identification number"
    ],
    "schema_org": "taxID",
    "stdnum": "es.nif"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://es.wikipedia.org/wiki/N%C3%BAmero_de_identificaci%C3%B3n_fiscal"
    }
  ],
  "detected_by": {
    "tools": [
      "amazonmacie",
      "awsglue",
      "azureailanguage",
      "dataprep",
      "googledlp",
      "ibmguardium",
      "ibmknowledgecatalog",
      "metacrafter",
      "microsoftpurview",
      "openmetadata",
      "presidio",
      "pythonstdnum",
      "snowflake"
    ],
    "metacrafter_rules": [
      {
        "rule": "esniffield",
        "type": "field",
        "match": "text",
        "file": "es/es_persons.yaml"
      },
      {
        "rule": "esnifvalue",
        "type": "data",
        "match": "ppr",
        "file": "es/es_persons.yaml"
      },
      {
        "rule": "es_pii_esniffield",
        "type": "field",
        "match": "text",
        "file": "pii/es/es_pii.yaml"
      },
      {
        "rule": "es_pii_esnifvalue",
        "type": "data",
        "match": "ppr",
        "file": "pii/es/es_pii.yaml"
      }
    ]
  },
  "quality": {
    "score": 65,
    "missing": [
      "anchored regexp",
      "examples",
      "negative example",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/ES/persons/esnif.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/ES/persons/esnif.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/ES/persons/esnif.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/esnif",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/esnif.json"
  }
}