Skip to content

URL Slug

Type Registry

URL Slug

technology.internet.slug

URL-friendly string for use in paths. Only lowercase alphanumerics, hyphens, and underscores. Common in blogs and content management systems.

Domain technologyinternet
Casts to VARCHAR
Scope Universal

Try it

CLI
$ finetype infer -i "my-blog-post"
→ technology.internet.slug

DuckDB

Detect
SELECT finetype('my-blog-post');
-- → 'technology.internet.slug'
Cast expression
CAST({col} AS VARCHAR)
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'technology.internet.slug';

JSON Schema

finetype schema technology.internet.slug
{
  "$id": "https://noon.sh/schemas/technology.internet.slug",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "URL-friendly string for use in paths. Only lowercase alphanumerics, hyphens, and underscores. Common in blogs and content management systems.",
  "examples": [
    "my-blog-post",
    "product_name_123",
    "hello-world"
  ],
  "pattern": "^[a-z0-9]+(?:[-_][a-z0-9]+)*$",
  "title": "URL Slug",
  "type": "string"
}

Examples

my-blog-postproduct_name_123hello-world

Also known as

slug

Types in technology