% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/orm_run_guarded.R
\name{orm_run_guarded}
\alias{orm_run_guarded}
\title{Run ORISMA with a relevance-control layer}
\usage{
orm_run_guarded(
  refs,
  topic = NULL,
  exclude_non_relevant = TRUE,
  min_records = 50,
  topic_regex = NULL,
  occupational_regex = NULL,
  noise_regex = NULL,
  mode = c("conservative", "flag", "strict"),
  ...
)
}
\arguments{
\item{refs}{A data frame of references, usually produced by \code{orm_load()}.}

\item{topic}{Topic label passed to \code{orm_relevance_guard()} and \code{orm_run()}.}

\item{exclude_non_relevant}{Logical. If \code{TRUE}, records flagged as non-relevant
are excluded before running the main ORISMA pipeline.}

\item{min_records}{Minimum number of records required after filtering. If the
filter leaves fewer records, the function stops to avoid accidental over-filtering.}

\item{topic_regex}{Optional topic regex.}

\item{occupational_regex}{Optional occupational relevance regex.}

\item{noise_regex}{Optional noise regex.}

\item{mode}{Relevance filtering mode. \code{"flag"} excludes only records outside
the target topic and marks uncertain records for review. \code{"conservative"}
excludes off-topic and likely non-occupational biomedical/clinical records.
\code{"strict"} also excludes records with weak occupational context.}

\item{...}{Additional arguments passed to \code{orm_run()}.}
}
\value{
An ORISMA result object with an added \code{relevance_guard} component.
}
\description{
Runs ORISMA after applying \code{orm_relevance_guard()}. This is useful for
real-world bibliographic searches where broad database queries may retrieve
technically related but non-occupational or off-topic records.
}
