% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forest_utils.R
\name{is_affirmative_category}
\alias{is_affirmative_category}
\title{Check if category name should be suppressed in condensed label}
\usage{
is_affirmative_category(
  category,
  label = NULL,
  norm_category = NULL,
  norm_label = NULL
)
}
\arguments{
\item{category}{Character string with the category name.}

\item{label}{Optional character string with the variable label. If provided,
returns \code{TRUE} when category is a case-insensitive match or substring.}

\item{norm_category}{Optional pre-normalized category (lowercase, trimmed).
If provided, skips normalization for performance.}

\item{norm_label}{Optional pre-normalized label (lowercase, trimmed).
If provided, skips normalization for performance.}
}
\value{
Logical indicating whether category should be suppressed.
}
\description{
Determines whether a category name should be suppressed when condensing
binary variables. Returns \code{TRUE} for standard affirmative values (\emph{e.g.,} "Yes", 
"1", "Positive"), standard reference values (\emph{e.g.,} "No", "Absent", "None"),
or when the category name essentially matches the variable label 
(case-insensitive comparison).
}
\keyword{internal}
