{
  "id": "bg_postcode",
  "kind": "pattern",
  "status": "draft",
  "name": "Bulgarian postal code",
  "doc": "Postal code (пощенски код) in Bulgaria: four digits, from 1000 for central Sofia.",
  "semantic_type": "postindex",
  "is_pii": true,
  "categories": [
    "geo",
    "pii",
    "common"
  ],
  "country": [
    "BG"
  ],
  "langs": [
    "bg"
  ],
  "classification": "categorical",
  "regexp": "^[1-9]\\d{3}$",
  "examples": [
    {
      "value": "1000",
      "description": "Sofia",
      "valid": true
    },
    {
      "value": "4000",
      "description": "Plovdiv",
      "valid": true
    },
    {
      "value": "9000",
      "description": "Varna",
      "valid": true
    },
    {
      "value": "100",
      "valid": false
    }
  ],
  "mappings": {
    "fta": "POSTAL_CODE.POSTAL_CODE_BG"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Postal_codes_in_Bulgaria"
    },
    {
      "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/BG/geo/bg_postcode.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BG/geo/bg_postcode.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BG/geo/bg_postcode.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/bg_postcode",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/bg_postcode.json"
  }
}