Ye Xiaoguo AI TeamHome · 中文

ToolTested: Yes

Number check: every number in your draft must exist in the source

Purpose: Catch numbers that are not in your source before you publish or submit

Download: numcheck.py Runs in a clean environment, Python standard library only

The most common mistake in reports and posts is a wrong number: mistyped, misremembered, or written from memory. This small tool takes every number in your draft and looks for it in your source files. Any number it cannot find is listed.

Usage: run python numcheck.py DRAFT SOURCE on the command line. You can pass several source files.
If everything matches, it reports a pass. If not, it lists each missing number and exits with an error code, so you can put it in an automated check.
Thousands separators are ignored, so different number formats still match.

Limits: it only checks that a number appears in the source. It does not judge whether the number is used correctly, and it does not check the wording.

Our own site runs the same number check before every release.