r/madeinpython • • 8h ago

[Python] scientific-reasoning-auditor: recompute the reported statistics, abstain when the inputs are ambiguous

Repo: https://github.com/Furox-Art/scientific-reasoning-auditor - Python 0.11.0 (HEAD d9f0e14), Node adapter 0.4.0. No required Python dependencies; the PDF/statistics extras bring the optional backends.

It takes a manuscript, extracts the reported statistics and method claims, and recomputes the ones that are checkable: statistic consistency against the stated degrees of freedom, multiple-testing corrections, regression and meta-analysis inputs, power and sample size, declared-DAG adjustment, MCMC diagnostics, ML split manifests. The manuscript stays read-only and findings land in separate report files:

sra audit manuscript.md --out reports/sample

The behaviour that makes it usable is abstention. The newest commit is exactly that: when a discrepancy sits under an undeclared tail or degrees-of-freedom correction, it now abstains instead of declaring a reporting error. Same for the SymPy/Pint/SciPy toolkit checks and the spaCy sentence candidates - they are candidates a human confirms, never truth claims.

Install:

python -m pip install --upgrade "scientific-reasoning-auditor[pdf,statistics]"

There is an npm adapter too, but it is a thin wrapper around the Python engine and the engine has to be installed first.

One honest limit: the published-reference pilot compared the unchanged 0.9.0 engine against historical manual labels for 1120 selected psychology results - 60% decision coverage, 34 of 49 reference errors flagged, 34 of 54 flags agreeing with the reference. That is retrospective conditional agreement on third-party input strings, not whole-paper validation, and it does not test the text extraction.

1 Upvotes

0 comments sorted by