% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/key-wrb2022.R
\name{classify_wrb2022}
\alias{classify_wrb2022}
\title{Classify a pedon under WRB 2022}
\usage{
classify_wrb2022(
  pedon,
  prior = NULL,
  prior_threshold = 0.01,
  on_missing = c("warn", "silent", "error"),
  rules = NULL
)
}
\arguments{
\item{pedon}{A \code{\link{PedonRecord}}.}

\item{prior}{Optional spatial prior -- a \code{data.table} with
columns \code{rsg_code} and \code{probability}, typically the
return value of \code{\link{spatial_prior}}. If supplied, the
result records a \code{prior_check} entry from
\code{\link{prior_consistency_check}}; an inconsistent prior
also emits a warning. The deterministic key is NEVER
overridden by the prior.}

\item{prior_threshold}{Probability below which the prior triggers
an "inconsistent" warning (default 0.01).}

\item{on_missing}{One of \code{"warn"} (default), \code{"silent"},
\code{"error"}. Behaviour when the trace reports missing
attributes.}

\item{rules}{Optional pre-loaded rule set.}
}
\value{
A \code{\link{ClassificationResult}}.
}
\description{
High-level classification entry point. Pre-computes the implemented
diagnostic horizons (argic, ferralic, mollic) for transparent
reporting, runs the key, and assembles a
\code{\link{ClassificationResult}} with the trace, ambiguities,
missing-data hints, evidence grade, and (in future) prior sanity
check.
}
