{
  "id": "espostcode",
  "kind": "pattern",
  "status": "draft",
  "name": "Spanish postal code (by language)",
  "doc": "Spanish postal code (by language)",
  "semantic_type": "postindex",
  "is_pii": true,
  "categories": [
    "geo"
  ],
  "country": [
    "ES",
    "MX"
  ],
  "langs": [
    "es"
  ],
  "classification": "categorical",
  "regexp": "\\d{5}",
  "examples": [
    {
      "value": "07002",
      "description": "Palma, Majorca",
      "valid": true
    },
    {
      "value": "27722",
      "description": "Veigas, Asturias",
      "valid": true
    }
  ],
  "mappings": {
    "fta": "POSTAL_CODE.POSTAL_CODE_ES",
    "stdnum": "es.postal_code"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Postal_codes_in_Spain"
    }
  ],
  "detected_by": {
    "tools": [
      "fta",
      "metacrafter",
      "pythonstdnum"
    ],
    "metacrafter_rules": [
      {
        "rule": "espostcodefield",
        "type": "field",
        "match": "text",
        "file": "es/es_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 60,
    "missing": [
      "description",
      "anchored regexp",
      "negative example",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/ES/geo/espostcode.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/ES/geo/espostcode.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/ES/geo/espostcode.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/espostcode",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/espostcode.json"
  }
}