Slug en español (con ñ)
es-slugCrea un slug desde texto en español sin convertir ñ en n ("año" no queda "ano"): ñ → ni/ny/nn o se conserva; quita tildes y opcionalmente palabras vacías. Cuándo: hay que tratar texto, números o fechas en español según las reglas escritas del idioma y no por aproximación. No para: generar un slug para URL (text-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: Builds a URL slug from Spanish text without collapsing ñ into n (so "año" does not become "ano"): ñ becomes "ni", "ny", "nn" or is kept; accents are removed and stopwords can be dropped. When: Spanish text, numbers or dates have to be handled by the written rules of Spanish instead of by approximation. Not for: making a URL slug (text-slug). Side effects: none (read-only, no network access, no stored state). [EN completo / full EN: inputSchema.description]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enye | No | How to write ñ (optional; one of: ni, ny, nn, keep; default "ni"). | ni |
| text | Yes | Text (string; required; up to 4096 chars). | |
| max_length | No | Max length (integer; optional; default 80; min 1; max 512). | |
| drop_stopwords | No | Drop de, la, el, y, en… (boolean; optional; default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No |