% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download.R
\name{get_bill_texts}
\alias{get_bill_texts}
\title{Download bill propose-reason texts}
\usage{
get_bill_texts(cache_dir = NULL, force_download = FALSE)
}
\arguments{
\item{cache_dir}{Directory to cache downloaded files. Defaults to
\code{tools::R_user_dir("assemblykor", "cache")}.}

\item{force_download}{Logical. If \code{TRUE}, re-download even if cached.}
}
\value{
A data frame with 60,925 rows and 3 variables:
\describe{
\item{bill_id}{Bill identifier (links to \code{bills$bill_id})}
\item{propose_reason}{Full text of the propose-reason statement (Korean)}
\item{scrape_status}{Data collection status: "ok", "empty", "no_csrf", or "error"}
}
}
\description{
Downloads the full propose-reason texts (jean-iyu) for all 60,925 bills.
The file is approximately 25 MB and is cached locally after the first
download. Requires the \pkg{arrow} package to read parquet files.
}
\examples{
\donttest{
if (requireNamespace("arrow", quietly = TRUE)) {
  texts <- get_bill_texts(cache_dir = tempdir())
  nchar_dist <- nchar(texts$propose_reason)
  hist(nchar_dist, breaks = 100, main = "Length of Propose-Reason Texts")
}
}

}
