{
  "id": "de_state_code",
  "kind": "pattern",
  "status": "draft",
  "name": "German state code (ISO 3166-2:DE)",
  "doc": "Two-letter code of a German state from ISO 3166-2:DE, such as BY (Bayern), NW (Nordrhein-Westfalen) or BE (Berlin), alone or after the country code as in DE-BY.",
  "semantic_type": "de_state",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "DE"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^(?:DE-)?(?:BB|BE|BW|BY|HB|HE|HH|MV|NI|NW|RP|SH|SL|SN|ST|TH)$",
  "examples": [
    {
      "value": "DE-BY",
      "description": "Bayern",
      "valid": true
    },
    {
      "value": "NW",
      "description": "Nordrhein-Westfalen",
      "valid": true
    },
    {
      "value": "DE-HH",
      "description": "Hamburg",
      "valid": true
    },
    {
      "value": "DE-BR",
      "description": "Draft code for Brandenburg, replaced by DE-BB in ISO 3166-2:1998",
      "valid": false
    },
    {
      "value": "DE-NS",
      "description": "Niedersachsen is NI",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://de.wikipedia.org/wiki/ISO_3166-2:DE"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/ISO_3166-2:DE"
    }
  ],
  "translations": {
    "de": {
      "name": "Kürzel des Bundeslandes (ISO 3166-2:DE)"
    },
    "ru": {
      "name": "Код земли Германии (ISO 3166-2:DE)"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/DE/geo/de_state_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/DE/geo/de_state_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/DE/geo/de_state_code.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/de_state_code",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/de_state_code.json"
  }
}