{
  "id": "ordinal_number",
  "kind": "datatype",
  "status": "draft",
  "name": "Ordinal number in English (1st, 2nd, 3rd)",
  "doc": "Number written as an English ordinal with its suffix: 1st, 2nd, 3rd, 4th, 11th, 22nd, 103rd. Tables of results, rankings, percentiles, draft rounds, periods of games and school grades write ranks and positions this way (1st Place, T-3rd for a tie). The suffix follows the last digit, except 11th, 12th and 13th.",
  "is_pii": false,
  "categories": [
    "values"
  ],
  "langs": [
    "en"
  ],
  "classification": "categorical",
  "regexp": "^(?:\\d*1[1-3]th|(?:\\d*[02-9])?1st|(?:\\d*[02-9])?2nd|(?:\\d*[02-9])?3rd|\\d*[04-9]th)$",
  "examples": [
    {
      "value": "1st",
      "valid": true
    },
    {
      "value": "2nd",
      "valid": true
    },
    {
      "value": "3rd",
      "valid": true
    },
    {
      "value": "4th",
      "valid": true
    },
    {
      "value": "11th",
      "valid": true
    },
    {
      "value": "22nd",
      "valid": true
    },
    {
      "value": "103rd",
      "valid": true
    },
    {
      "value": "11st",
      "description": "a wrong suffix",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Ordinal_numeral"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/English_numerals"
    }
  ],
  "translations": {
    "ru": {
      "name": "Порядковое числительное на английском (1st, 2nd, 3rd)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "ordinalnumbervalue",
        "type": "data",
        "match": "func",
        "file": "common/values.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/values/ordinal_number.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/values/ordinal_number.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/values/ordinal_number.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ordinal_number",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ordinal_number.json"
  }
}