Checks a piece of text for population-estimate language and, unless the run
is a calibrated inference (or carries an attached calibration), either
appends a scope caveat (action = "scope", the default) or raises
llmragent_claim_error (action = "error"). Calibrated runs pass through
unchanged. Used by report(); exported so custom report code can reuse it.
Usage
llm_claim_lint(text, run = NULL, action = c("scope", "error"))Arguments
- text
Character vector of prose to check.
- run
An object accepted by
as_agent_run()(supplies the claim type and calibration status), orNULLto treat the text as uncalibrated.- action
"scope"(append a caveat when a population claim is found) or"error"(raise).
