Crear slug
text-slugGenera un slug para URL: quita tildes, pasa a minúsculas y reemplaza símbolos por un separador. Cuándo: hay que transformar, comparar o medir un texto con exactitud y no por aproximación. No para: crear un slug desde texto en español sin convertir ñ en n (es-slug). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Makes a URL slug: transliterates accents and common ligatures to ASCII, lowercases, replaces non-alphanumerics with a separator, and trims to a max length at a word boundary. When: text has to be transformed, compared or measured exactly instead of approximated. Not for: building a URL slug from Spanish text without collapsing ñ into n (es-slug). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text (string; required; up to 4096 chars). | |
| lowercase | No | Lowercase (boolean; optional; default true). | |
| separator | No | Separator (optional; one of: -, _, .; default "-"). | - |
| max_length | No | Max length (integer; optional; default 80; min 1; max 512). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No |