{
  "id": "rusregioncode",
  "kind": "pattern",
  "status": "draft",
  "name": "Russian region unique code",
  "doc": "Two-digit code of a federal subject of Russia, numbered in the order of the list of subjects in the Constitution, such as 05 for Dagestan or 77 for Moscow. The register of cultural heritage objects (ЕГРОКН) uses these codes for regions and as the first two digits of its registration numbers.",
  "semantic_type": "rusregion",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "country": [
    "RU"
  ],
  "langs": [
    "ru"
  ],
  "classification": "categorical",
  "regexp": "^(?:0[1-9]|[1-9]\\d)$",
  "examples": [
    {
      "value": "77",
      "description": "Moscow",
      "valid": true
    },
    {
      "value": "05",
      "description": "Republic of Dagestan",
      "valid": true
    },
    {
      "value": "69",
      "description": "Tver Oblast",
      "valid": true
    },
    {
      "value": "5",
      "description": "Codes are written with a leading zero",
      "valid": false
    }
  ],
  "translations": {
    "ru": {
      "name": "Код субъекта Российской Федерации",
      "doc": "Двузначный код субъекта Российской Федерации в порядке перечня субъектов в Конституции, например 05 — Дагестан, 77 — Москва."
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter",
      "metacrafterpro"
    ],
    "metacrafter_rules": [
      {
        "rule": "ruregioncode",
        "type": "data",
        "match": "text",
        "file": "ru/ru_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 75,
    "missing": [
      "source link",
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/RU/geo/rusregioncode.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/RU/geo/rusregioncode.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/RU/geo/rusregioncode.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/rusregioncode",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/rusregioncode.json"
  }
}