---
id: "gb_scotland_electoral_ward_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Scottish electoral ward code (GSS)"
regexp: "^S13\\d{6}$"
categories: ["geo"]
country: ["GB"]
langs: ["en"]
quality: 85
url: "https://registry.apicrafter.io/datatype/gb_scotland_electoral_ward_code"
---

# Scottish electoral ward code (GSS) (`gb_scotland_electoral_ward_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.

GSS code of a multi-member electoral ward of a Scottish council, entity code S13. Stirling has seven wards, S13003115 to S13003121.

- Parent datatype: [`ukwardcode`](https://registry.apicrafter.io/datatype/ukwardcode.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: United Kingdom (GB)
- Languages: English (en)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^S13\d{6}$
```

## Examples

- `S13003118` — Stirling North
- `S13003117` — Dunblane and Bridge of Allan
- `S16000144` (invalid example) — A Scottish Parliament constituency code (S16)

## Metacrafter rules

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

- `gbscotlandelectoralwardcodevalue` (data, `gb/gb_geo.yaml`)

## Supported by tools

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

## Sources

- doc: <https://www.ons.gov.uk/methodology/geography/geographicalproducts/namescodesandlookups/codehistorydatabasechd>
- wikipedia: <https://en.wikipedia.org/wiki/Wards_and_electoral_divisions_of_the_United_Kingdom>

## Quality

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

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