% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/to_pinyin.R
\name{to_slug}
\alias{to_slug}
\title{Create URL-Friendly Slug from Chinese Text}
\usage{
to_slug(x, polyphone = FALSE, other_replace = NULL)
}
\arguments{
\item{x}{A character vector.}

\item{polyphone}{If \code{FALSE} (default), each character is converted
independently using its most common reading. If \code{TRUE}, a built-in phrase
table is used to resolve common polyphones via greedy longest-match
segmentation.}

\item{other_replace}{How to handle non-Chinese characters. \code{NULL} means
leave them as-is. A single character string replaces them.}
}
\value{
A character vector of URL-friendly slug strings.
}
\description{
Create URL-Friendly Slug from Chinese Text
}
\examples{
to_slug("2026\u5e74\u62a5\u544a")
}
