defmodule Text.Slug do @moduledoc """ URL-safe slug generation with locale-aware Unicode folding. Produces a lowercase, separator-joined ASCII string suitable for URLs, filenames, and other identifiers from any UTF-8 input. Unlike a naive ASCII filter, this module handles: * **Latin diacritics** — `"café résumé"` → `"cafe-resume"`. * **Locale-specific folding rules** baked into CLDR — German `"ß"` folds to `"ss"`, Turkish `"İ"` to `"i"`, Vietnamese `"Đ"` to `"D"`, etc. (via the [`unicode_transform`](https://hex.pm/packages/unicode_transform) package's `Latin-ASCII` transform). * **Cross-script transliteration** — `"Привет мир"` → `"privet-mir"`, `"北京"` → `"beijing"`, `"こんにちは"` → `"konnichiha"` — for inputs in any script `unicode_transform` has a `