{
  "id": "us_congressional_district",
  "kind": "datatype",
  "status": "draft",
  "name": "US congressional district code",
  "doc": "Code of a district of the US House of Representatives: the two-letter postal abbreviation of the state and the two-digit district number, with or without a hyphen, such as NY10 or CA-12. States with one representative are written AL (at large), 00 or 01.",
  "is_pii": false,
  "categories": [
    "government",
    "geo"
  ],
  "country": [
    "US"
  ],
  "langs": [
    "en"
  ],
  "classification": "identifier",
  "regexp": "^(?:A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])-?(?:0?\\d|[1-4]\\d|5[0-3]|AL)$",
  "examples": [
    {
      "value": "NY10",
      "description": "10th district of New York",
      "valid": true
    },
    {
      "value": "CA-12",
      "description": "With a hyphen",
      "valid": true
    },
    {
      "value": "WY-AL",
      "description": "At-large district",
      "valid": true
    },
    {
      "value": "XX10",
      "description": "XX is not a state",
      "valid": false
    },
    {
      "value": "NY99",
      "description": "No state has 99 districts",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/List_of_United_States_congressional_districts"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код избирательного округа Конгресса США"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "uscongressionaldistrictbyname",
        "type": "field",
        "match": "regex",
        "file": "us/us_politics.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/US/government/us_congressional_district.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/US/government/us_congressional_district.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/US/government/us_congressional_district.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/us_congressional_district",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/us_congressional_district.json"
  }
}