{
  "id": "pt_quarter",
  "kind": "pattern",
  "status": "draft",
  "name": "Quarter of the year (Portuguese: trimestre)",
  "doc": "Calendar quarter written in Portuguese with an ordinal number and the word trimestre, optionally followed by the year, as in \"4º Trimestre\" or \"1.º trimestre de 2023\". The justice statistics of Portugal give the quarter of a row this way; Spanish and Italian tables write the same words.",
  "semantic_type": "quarter",
  "is_pii": false,
  "categories": [
    "datetime"
  ],
  "langs": [
    "pt",
    "es",
    "it"
  ],
  "regexp": "^[1-4]\\.?[ºo°]? ?[Tt]rimestre(?: (?:de )?\\d{4})?$",
  "examples": [
    {
      "value": "4º Trimestre",
      "description": "fourth quarter",
      "valid": true
    },
    {
      "value": "1.º trimestre de 2023",
      "description": "first quarter of 2023",
      "valid": true
    },
    {
      "value": "5º Trimestre",
      "description": "not a quarter",
      "valid": false
    }
  ],
  "translations": {
    "pt": {
      "name": "Trimestre"
    },
    "ru": {
      "name": "Квартал (на португальском)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "ptquartervalue",
        "type": "data",
        "match": "regex",
        "file": "pt/pt_codes.yaml"
      }
    ]
  },
  "quality": {
    "score": 75,
    "missing": [
      "source link",
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/datetime/pt_quarter.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/datetime/pt_quarter.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/pt_quarter.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/pt_quarter",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/pt_quarter.json"
  }
}