{
  "id": "lk_nic",
  "kind": "datatype",
  "status": "draft",
  "name": "Sri Lankan national identity card number (NIC)",
  "doc": "Number of the Sri Lankan national identity card. Cards issued before 1 January 2016 have nine digits and a letter: the two-digit birth year, the day of the year of birth (500 is added for women), a three-digit serial number, a check digit and V or X, which tells whether the holder may vote. Newer cards have twelve digits: the four-digit birth year, the day of the year (plus 500 for women), a four-digit serial number and a check digit. The check digit algorithm is not published.",
  "is_pii": true,
  "categories": [
    "pii",
    "persons"
  ],
  "country": [
    "LK"
  ],
  "langs": [
    "si",
    "ta"
  ],
  "classification": "identifier",
  "regexp": "^(?:[0-9]{2}(?:[0-3][0-9]{2}|[5-8][0-9]{2})[0-9]{4}[VvXx]|(?:19|20)[0-9]{2}(?:[0-3][0-9]{2}|[5-8][0-9]{2})[0-9]{5})$",
  "examples": [
    {
      "value": "911042754V",
      "description": "Old format, from the format description in Wikipedia",
      "valid": true
    },
    {
      "value": "197419202757",
      "description": "New format, example from Wikipedia",
      "valid": true
    },
    {
      "value": "91104275V",
      "description": "Old format with eight digits",
      "valid": false
    }
  ],
  "mappings": {
    "dpv": "pd:OfficialID"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/National_identity_card_(Sri_Lanka)"
    }
  ],
  "detected_by": {
    "tools": [
      "validatorjs"
    ]
  },
  "quality": {
    "score": 95,
    "missing": [
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/LK/persons/lk_nic.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/LK/persons/lk_nic.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/LK/persons/lk_nic.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/lk_nic",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/lk_nic.json"
  }
}