Skip to content

st fact

b2o2i edited this page Apr 3, 2026 · 8 revisions

st-fact — Fact-check stories in a container

Sends a single story to an AI and asks it to fact-check every claim, scoring each one true, partially true, or false. Appends the result to the container.

Run after: st-prep · Run before: st-fix · st-heatmap

Examples

st-fact subject.json                    # fact-check story 1 with default AI
st-fact -s 2 --ai gemini subject.json  # fact-check story 2 with Gemini
st-fact --no-cache subject.json        # bypass API cache

Options: -s story --ai --no-cache -v -q

Related: st-cross · st-fix · st-heatmap


For developers

Splits the story into segments via mmd_util.build_segments(), sends them to the AI, and appends a fact[] entry to the container. The entry includes score, counts, summary, claims[] (per-segment verdicts), and timing{}.

Clone this wiki locally