{
  "id": "year_jp_era",
  "kind": "pattern",
  "status": "draft",
  "name": "Year in a Japanese era (wareki)",
  "doc": "Year written with a Japanese era name and the year of that era, in full (平成4年) or with the one-character abbreviation of the era (昭58, 平5, 令元). 元 stands for the first year of an era. Municipal data often uses it for fiscal years (年度). Digits may be full-width (平９).",
  "semantic_type": "year",
  "is_pii": false,
  "categories": [
    "datetime"
  ],
  "country": [
    "JP"
  ],
  "langs": [
    "ja"
  ],
  "regexp": "^(?:明治|大正|昭和|平成|令和|明|大|昭|平|令)\\s*(?:元|[0-9０-９]{1,2})(?:年度?)?$",
  "examples": [
    {
      "value": "平成4年",
      "description": "1992",
      "valid": true
    },
    {
      "value": "昭58",
      "description": "1983",
      "valid": true
    },
    {
      "value": "平５",
      "description": "1993, with a full-width digit",
      "valid": true
    },
    {
      "value": "令元",
      "description": "2019",
      "valid": true
    },
    {
      "value": "1992年",
      "description": "Gregorian year",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Japanese_era_name"
    }
  ],
  "translations": {
    "ja": {
      "name": "和暦の年"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/JP/datetime/year_jp_era.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/JP/datetime/year_jp_era.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/JP/datetime/year_jp_era.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/year_jp_era",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/year_jp_era.json"
  }
}