{
  "id": "us_nyc_borough_code",
  "kind": "datatype",
  "status": "draft",
  "name": "New York City borough code",
  "doc": "One-digit code of a borough of New York City used by city agencies: 1 Manhattan, 2 Bronx, 3 Brooklyn, 4 Queens, 5 Staten Island. It is the first digit of the BBL and of the BIN.",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "US"
  ],
  "langs": [
    "en"
  ],
  "classification": "categorical",
  "regexp": "^[1-5]$",
  "examples": [
    {
      "value": "1",
      "description": "Manhattan",
      "valid": true
    },
    {
      "value": "3",
      "description": "Brooklyn",
      "valid": true
    },
    {
      "value": "6",
      "description": "There are five boroughs",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Borough,_Block_and_Lot"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код боро Нью-Йорка"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "usnycboroughcodebyname",
        "type": "field",
        "match": "regex",
        "file": "us/us_nyc.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/US/geo/us_nyc_borough_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/US/geo/us_nyc_borough_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/US/geo/us_nyc_borough_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/us_nyc_borough_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/us_nyc_borough_code.json"
  }
}