Skip to content

FactPack 0.3.0: guards that check what a number describes

Latest

Choose a tag to compare

@Horace-Maxwell Horace-Maxwell released this 04 Dec 01:41

The guards were rebuilt so that "checked against its sources" covers more of what a sentence says. On 8 production days they caught 92.2% of 1,933 errors planted into published sentences (0.2.2: 29.6%) and would cut 4.1% of published sentences (0.2.2: 3.1%). Method, per-error results and limits: eval/README.en.md.

  • Numbers agree on kind and currency, not only value. 48% no longer matches a bare 48, 2 percentage points no longer matches 2%, $1.2bn no longer matches ¥1.2bn. Chinese numerals (十二亿, 三成, 两倍) and English number words are read.
  • A number must be about the same thing. If the sentence ties it to a metric, a direction or a known company, the source must not tie it to a different one; casualty counts need the source to give that number for the same thing.
  • Names are checked: Latin-script names and well-known Chinese names (英伟达 = Nvidia) must appear in the source.
  • Quotes are matched word for word (one slip per twelve words), and the named speaker must appear in the source.
  • factpack check says why a sentence failed (reasons, unsupported_names).
  • New factpack eval guards: cuts on published cards and planted errors caught, by error type.

Still not caught: a reversed cause, a number the source uses elsewhere without saying what it is, and most company swaps when the source doesn't say whose number it is.

uv tool upgrade factpack