{
  "id": "ch_canton_code",
  "kind": "pattern",
  "status": "draft",
  "name": "Swiss canton abbreviation",
  "doc": "Two-letter abbreviation of a Swiss canton, such as ZH (Zürich), BE (Bern) or TI (Ticino). It is used on vehicle plates and in ISO 3166-2:CH after CH-.",
  "semantic_type": "ch_canton",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "CH"
  ],
  "classification": "categorical",
  "regexp": "^(?:AG|AI|AR|BE|BL|BS|FR|GE|GL|GR|JU|LU|NE|NW|OW|SG|SH|SO|SZ|TG|TI|UR|VD|VS|ZG|ZH)$",
  "examples": [
    {
      "value": "ZH",
      "description": "Zürich",
      "valid": true
    },
    {
      "value": "GE",
      "description": "Geneva",
      "valid": true
    },
    {
      "value": "TI",
      "description": "Ticino",
      "valid": true
    },
    {
      "value": "CH",
      "description": "the country code",
      "valid": false
    }
  ],
  "mappings": {
    "fta": "STATE_PROVINCE.CANTON_CH"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Cantons_of_Switzerland"
    },
    {
      "type": "other",
      "url": "https://github.com/tsegall/fta/blob/main/SemanticTypes.md"
    }
  ],
  "translations": {
    "ru": {
      "name": "Сокращение кантона Швейцарии"
    }
  },
  "detected_by": {
    "tools": [
      "fta"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/CH/geo/ch_canton_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CH/geo/ch_canton_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CH/geo/ch_canton_code.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/ch_canton_code",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/ch_canton_code.json"
  }
}