{
  "id": "phone",
  "kind": "datatype",
  "status": "stable",
  "name": "Phone number",
  "doc": "Telephone number in standard format (RFC3966), without 'tel:' prefix",
  "children": [
    "msisdn"
  ],
  "patterns": [
    "nanpphone",
    "phone_e164",
    "tel_uri"
  ],
  "is_pii": true,
  "categories": [
    "pii",
    "common",
    "telecom"
  ],
  "langs": [
    "common"
  ],
  "regexp": "(?=.*\\d)(?:(?:(?:\\+|00|011)[\\.\\/\\-\\ \\t]*([17]|2(?:[07]|[1-689]\\d)|3(?:[0-4679]|[578]\\d)|4(?:[013-9]|2\\d)|5(?:[1-8]|[09]\\d)|6(?:[0-6]|[789]\\d)|8(?:[1246]|[035789]\\d)|9(?:[0-58]|[679]\\d))[\\.\\/\\-\\ \\t]*|([17])[\\.\\/\\-\\ ])?(?:\\((\\d{1,6})\\)[\\.\\/\\-\\ \\t]*)?(?:(\\d{1,6})[\\.\\/\\-\\ ])?(?:(\\d{1,6})[\\.\\/\\-\\ ])?(?:(\\d{1,6})[\\.\\/\\-\\ ])?(?:(\\d{1,6})[\\.\\/\\-\\ ])?(\\d{0,10}?)(\\d{1,4})(?:[\\.\\/\\-;\\ \\t]*e?xt?[\\.\\/\\-=\\ \\t]*(\\d{1,14}))?)?",
  "examples": [
    {
      "value": "+1-202-456-1414",
      "description": "White House",
      "valid": true
    },
    {
      "value": "+1-514-954-8219",
      "description": "International Civil Aviation Organization",
      "valid": true
    }
  ],
  "mappings": {
    "autotype": "phone-3",
    "cdm": "means.identity.service.phone",
    "dpv": "pd:TelephoneNumber",
    "fibo": "FND/Places/VirtualPlaces/TelephoneNumber",
    "fta": "TELEPHONE",
    "google_dlp": "PHONE_NUMBER",
    "presidio": "PHONE_NUMBER",
    "schema_org": "telephone",
    "wikidata": "P1329"
  },
  "links": [
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P1329"
    },
    {
      "type": "schema.org",
      "url": "https://schema.org/telephone"
    },
    {
      "type": "schema.org",
      "url": "https://schema.org/faxNumber"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Telephone_number"
    }
  ],
  "detected_by": {
    "tools": [
      "amazonmacie",
      "autotype",
      "awscomprehend",
      "awsglue",
      "azureailanguage",
      "collibra",
      "csvdetective",
      "databricks",
      "datahub",
      "dataprep",
      "dataprofiler",
      "fta",
      "googledlp",
      "greatexpectations",
      "ibmguardium",
      "metacrafter",
      "metadata-guardian",
      "nightfall",
      "openmetadata",
      "oracledatasafe",
      "presidio",
      "scrubadub",
      "snowflake",
      "soda",
      "sqldatacatalog",
      "talend",
      "woodwork"
    ],
    "metacrafter_rules": [
      {
        "rule": "arphoneknown",
        "type": "field",
        "match": "text",
        "file": "ar_country/ar_common.yaml"
      },
      {
        "rule": "faxknownpat",
        "type": "field",
        "match": "ppr",
        "file": "common/common.yaml"
      },
      {
        "rule": "phoneknown",
        "type": "field",
        "match": "text",
        "file": "common/common.yaml"
      },
      {
        "rule": "phoneknownpat",
        "type": "field",
        "match": "ppr",
        "file": "common/common.yaml"
      },
      {
        "rule": "phoneknownprefix",
        "type": "field",
        "match": "ppr",
        "file": "common/common.yaml"
      },
      {
        "rule": "esphoneknown",
        "type": "field",
        "match": "text",
        "file": "es/es_common.yaml"
      },
      {
        "rule": "phonebyvalue",
        "type": "data",
        "match": "func",
        "file": "ext/ext_common.yaml"
      },
      {
        "rule": "frphoneknown",
        "type": "field",
        "match": "text",
        "file": "fr/fr_common.yaml"
      },
      {
        "rule": "hiphoneknown",
        "type": "field",
        "match": "text",
        "file": "hi/hi_common.yaml"
      },
      {
        "rule": "jpphoneknown",
        "type": "field",
        "match": "text",
        "file": "jp/jp_common.yaml"
      },
      {
        "rule": "kophoneknown",
        "type": "field",
        "match": "text",
        "file": "ko/ko_common.yaml"
      },
      {
        "rule": "krphoneknown",
        "type": "field",
        "match": "text",
        "file": "kr/kr_common.yaml"
      },
      {
        "rule": "auphoneknown",
        "type": "field",
        "match": "text",
        "file": "pii/au/au_pii.yaml"
      },
      {
        "rule": "brphoneknown",
        "type": "field",
        "match": "text",
        "file": "pii/br/br_pii.yaml"
      },
      {
        "rule": "cnphoneknown",
        "type": "field",
        "match": "text",
        "file": "pii/cn/cn_pii.yaml"
      },
      {
        "rule": "inphoneknown",
        "type": "field",
        "match": "text",
        "file": "pii/in/in_pii.yaml"
      },
      {
        "rule": "jp_pii_jpphoneknown",
        "type": "field",
        "match": "text",
        "file": "pii/jp/jp_pii.yaml"
      },
      {
        "rule": "mxphoneknown",
        "type": "field",
        "match": "text",
        "file": "pii/mx/mx_pii.yaml"
      },
      {
        "rule": "nlphoneknown",
        "type": "field",
        "match": "text",
        "file": "pii/nl/nl_pii.yaml"
      },
      {
        "rule": "ptphoneknown",
        "type": "field",
        "match": "text",
        "file": "pii/pt/pt_pii.yaml"
      },
      {
        "rule": "ruphoneknown",
        "type": "field",
        "match": "text",
        "file": "ru/ru_common.yaml"
      },
      {
        "rule": "sgphoneknown",
        "type": "field",
        "match": "text",
        "file": "sg/sg_common.yaml"
      },
      {
        "rule": "zhphoneknown",
        "type": "field",
        "match": "text",
        "file": "zh/zh_common.yaml"
      }
    ]
  },
  "quality": {
    "score": 80,
    "missing": [
      "anchored regexp",
      "negative example",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/common/phone.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/common/phone.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/common/phone.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/phone",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/phone.json"
  }
}