Check a report paragraph
check_paragraphVerify a draft report paragraph against lab data and guideline values. Flags inconsistent, untraced, or ambiguous claims about numbers, trends, guideline compliance, and detection for your review.
Instructions
Check a draft report paragraph against the lab data and guideline values, without any language model.
It finds (a) every number with a unit (ug/L, µg/L, ng/L, mg/L) and traces it to a lab row, a detection limit, a computed sum or difference, or a guideline table, or flags it as untraced; (b) claims of change between two dates (increased, fell, lower than, stable) and tests them against the data; (c) claims that a result is above, below or within the guideline, evaluated under each rule; (d) claims that an analyte was or was not detected. Negation such as 'did not increase' is handled.
Every checked item has a status: consistent, inconsistent, untraced, depends_on_rule or needs_judgement. Anything it could not read confidently is listed under not_checked with the reason. Show the person every item that is not 'consistent' and every not_checked item; the person decides what to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The draft report paragraph to check, in plain English. | |
| well | Yes | Monitoring well id, for example 'MB2'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| well | Yes | ||
| notes | Yes | ||
| scope | Yes | What kinds of statement this checker covers. | |
| checked | Yes | ||
| summary | Yes | ||
| sentences | Yes | ||
| not_checked | Yes | ||
| needs_attention | Yes | Checked items whose status is not 'consistent'. |