{
  "id": "slug",
  "kind": "datatype",
  "status": "draft",
  "name": "URL slug",
  "doc": "Readable part of a URL that names a page or a record, written in lowercase Latin letters and digits joined by hyphens, such as model-gruzovogo-parohoda-donec. Content management systems and web frameworks make it from the title, transliterated when the title is not in Latin script, and add a number when the slug is already taken (kochedyk-10). APIs and exports keep it in a field named slug. Some frameworks also allow underscores and uppercase letters; the regular expression covers only the common lowercase form. A lowercase word without hyphens is also a valid slug, so the value alone is weak evidence.",
  "is_pii": false,
  "categories": [
    "internet",
    "identifiers"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
  "examples": [
    {
      "value": "model-gruzovogo-parohoda-donec",
      "description": "transliterated Russian title of a museum object",
      "valid": true
    },
    {
      "value": "kochedyk-10",
      "description": "number added to keep the slug unique",
      "valid": true
    },
    {
      "value": "oil-on-canvas",
      "valid": true
    },
    {
      "value": "Model Donec",
      "description": "uppercase letters and a space",
      "valid": false
    },
    {
      "value": "model--donec",
      "description": "two hyphens in a row",
      "valid": false
    },
    {
      "value": "-donec",
      "description": "starts with a hyphen",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Clean_URL#Slug"
    },
    {
      "type": "doc",
      "url": "https://docs.djangoproject.com/en/stable/ref/models/fields/#slugfield"
    }
  ],
  "translations": {
    "ru": {
      "name": "Слаг (человекопонятная часть URL)"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/internet/slug.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/internet/slug.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/slug.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/slug",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/slug.json"
  }
}