{
  "id": "fr_department_code",
  "kind": "pattern",
  "status": "draft",
  "name": "French department code (INSEE)",
  "doc": "Code of a French department in the INSEE Official Geographic Code (COG). Departments in metropolitan France use two characters from 01 to 95, with 2A (Corse-du-Sud) and 2B (Haute-Corse) in place of 20. Overseas departments use three digits, 971 to 974 and 976.",
  "semantic_type": "fr_department",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "FR"
  ],
  "langs": [
    "fr"
  ],
  "classification": "categorical",
  "regexp": "^(?:0[1-9]|1\\d|2[1-9AB]|[3-8]\\d|9[0-5]|97[1-46])$",
  "examples": [
    {
      "value": "01",
      "description": "Ain",
      "valid": true
    },
    {
      "value": "2A",
      "description": "Corse-du-Sud",
      "valid": true
    },
    {
      "value": "75",
      "description": "Paris",
      "valid": true
    },
    {
      "value": "974",
      "description": "La Réunion",
      "valid": true
    },
    {
      "value": "20",
      "description": "replaced by 2A and 2B",
      "valid": false
    },
    {
      "value": "975",
      "description": "Saint-Pierre-et-Miquelon is not a department",
      "valid": false
    }
  ],
  "mappings": {
    "wikidata": "P2586"
  },
  "links": [
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P2586"
    },
    {
      "type": "doc",
      "url": "https://www.insee.fr/fr/information/2560452"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Departments_of_France"
    }
  ],
  "translations": {
    "fr": {
      "name": "Code département"
    }
  },
  "detected_by": {
    "tools": [
      "csvdetective"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/FR/geo/fr_department_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/FR/geo/fr_department_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FR/geo/fr_department_code.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/fr_department_code",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/fr_department_code.json"
  }
}