{
  "id": "inseecode",
  "kind": "datatype",
  "status": "stable",
  "name": "INSEE code",
  "doc": "The INSEE code is a numerical indexing code used by the French National Institute for Statistics and Economic Studies (INSEE) to identify various entities, including communes and départements.",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "country": [
    "FR"
  ],
  "langs": [
    "fr"
  ],
  "classification": "identifier",
  "regexp": "\\d[0-9AB][0-9P]\\d\\d",
  "examples": [
    {
      "value": "75056",
      "description": "Paris",
      "valid": true
    },
    {
      "value": "48095",
      "description": "Mende",
      "valid": true
    }
  ],
  "mappings": {
    "fta": "STATE_PROVINCE.INSEE_CODE_FR",
    "wikidata": "P374"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/INSEE_code"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P374"
    }
  ],
  "detected_by": {
    "tools": [
      "csvdetective",
      "fta",
      "metacrafter",
      "talend"
    ],
    "metacrafter_rules": [
      {
        "rule": "frinseecodebyknown",
        "type": "field",
        "match": "text",
        "file": "fr/fr_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 80,
    "missing": [
      "anchored regexp",
      "negative example",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/FR/geo/inseecode.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/FR/geo/inseecode.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FR/geo/inseecode.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/inseecode",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/inseecode.json"
  }
}