{
  "id": "polity_score",
  "kind": "datatype",
  "status": "draft",
  "name": "Polity score",
  "doc": "Regime score of the Polity project (Polity IV and 5): an integer from -10 (hereditary monarchy) to 10 (consolidated democracy), the democracy score minus the autocracy score. The polity variable also holds the special codes -66 (foreign interruption), -77 (interregnum) and -88 (transition); polity2 replaces them.",
  "is_pii": false,
  "categories": [
    "government",
    "values"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^(?:-?(?:10|\\d)|-66|-77|-88)$",
  "examples": [
    {
      "value": "10",
      "description": "Full democracy",
      "valid": true
    },
    {
      "value": "-7",
      "description": "Autocracy",
      "valid": true
    },
    {
      "value": "-88",
      "description": "Transition period",
      "valid": true
    },
    {
      "value": "11",
      "description": "The scale ends at 10",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Polity_data_series"
    },
    {
      "type": "doc",
      "url": "https://www.systemicpeace.org/polityproject.html"
    }
  ],
  "translations": {
    "ru": {
      "name": "Оценка политического режима Polity"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "polityscorebyname",
        "type": "field",
        "match": "regex",
        "file": "common/research_codes.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/government/polity_score.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/government/polity_score.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/government/polity_score.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/polity_score",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/polity_score.json"
  }
}