---
id: "gw_country_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Gleditsch-Ward country code"
regexp: "^\\d{1,3}$"
categories: ["geo", "government"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/gw_country_code"
---

# Gleditsch-Ward country code (`gw_country_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Numeric code of an independent state in the list of Kristian Skrede Gleditsch and Michael D. Ward, a revision of the Correlates of War state numbers used in conflict datasets (UCDP/PRIO, the gwno and gwcode variables): 2 United States, 200 United Kingdom, 710 China. Most numbers equal the COW ones.

- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\d{1,3}$
```

## Examples

- `2` — United States
- `200` — United Kingdom
- `710` — China
- `USA` (invalid example) — The letter abbreviation, not the number

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `gwcountrycodebyname` (field, `common/research_codes.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Код страны по Гледичу и Уорду

## Sources

- doc: <http://ksgleditsch.com/statelist.html>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/gw_country_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/geo/gw_country_code.yaml>
