{
  "id": "roman_numeral",
  "kind": "datatype",
  "status": "draft",
  "name": "Roman numeral",
  "doc": "Number from 1 to 3999 written in Roman numerals, with the letters I, V, X, L, C, D and M in the standard subtractive form, where IV is 4 and CM is 900. Roman numerals number volumes, chapters, monarchs and recurring events, and some copyright notices and inscriptions give years in them. The regexp accepts uppercase standard forms only, not additive variants such as IIII or numbers above 3999.",
  "is_pii": false,
  "categories": [
    "values"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^(?=[MDCLXVI])M{0,3}(?:CM|CD|D?C{0,3})(?:XC|XL|L?X{0,3})(?:IX|IV|V?I{0,3})$",
  "examples": [
    {
      "value": "XIV",
      "description": "14",
      "valid": true
    },
    {
      "value": "MCMXCIX",
      "description": "1999",
      "valid": true
    },
    {
      "value": "MMXXVI",
      "description": "2026",
      "valid": true
    },
    {
      "value": "IV",
      "description": "4",
      "valid": true
    },
    {
      "value": "XIIII",
      "description": "Additive form of 14",
      "valid": false
    },
    {
      "value": "IC",
      "description": "Not a standard form of 99 (XCIX)",
      "valid": false
    }
  ],
  "mappings": {
    "autotype": "roman"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Roman_numerals"
    },
    {
      "type": "other",
      "url": "https://github.com/congy/AutoType/blob/master/data_release/roman.txt"
    }
  ],
  "translations": {
    "ru": {
      "name": "Римское число",
      "doc": "Число от 1 до 3999, записанное римскими цифрами I, V, X, L, C, D и M."
    }
  },
  "detected_by": {
    "tools": [
      "autotype",
      "greatexpectations"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/any/values/roman_numeral.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/values/roman_numeral.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/values/roman_numeral.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/roman_numeral",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/roman_numeral.json"
  }
}