% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clean_text.R
\name{clean_text}
\alias{clean_text}
\title{Clean text for analysis}
\usage{
clean_text(x)
}
\arguments{
\item{x}{A character vector of text to clean.}
}
\value{
A character vector with annotations removed and whitespace normalized.
}
\description{
Removes editorial annotations in square brackets, parentheses, and
curly braces from political speech transcripts. Also normalizes
whitespace and collapses double em-dashes left behind by removals.
}
\examples{
clean_text("We must act now [applause] for the future.")
clean_text("The president (speaking loudly) left the room.")
}
