Skip to content

fix: number-style-consistency skips a figure glued to a name and one opening a log entry - #2986

Merged
isamu merged 2 commits into
mainfrom
fix/number-style-glued-and-log-lead
Nov 30, 2026
Merged

isamu merged 2 commits into
mainfrom
fix/number-style-glued-and-log-lead

Conversation

@isamu

@isamu isamu commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

number-style-consistency counted English figures that are not counts written in prose:

  • a figure glued to the word or dot before it, part of a name or a version (php7.4-fpm read as "4 fpm…");
  • a figure right after the clock time that opens a log entry (- 17:59 4 pages are sent), which opens a log line rather than prose;
  • a figure before a unit of data or of short time (4 bits, 2 bytes, 4 microseconds, 2 megabits), which specifications write in figures as the lexicon already reads hours, miles and percent. These are added to the figure-noun lexicon.

With those votes gone, a small count spelled out in an incident report's prose ("these three patches") is no longer the minority against log lines and package names.

Items to Confirm / Review

  • The log-entry shape is a list marker (optional), a clock time H:MM or HH:MM[:SS], then the figure. A figure later in the same entry is still counted (tested).
  • The units were added after the judged corpus showed that dropping the glued figures (IPv4-style names) left a protocol specification's "4 bits" and "2 bytes" as a new minority against its spelled-out counts.
  • yarn corpus and yarn planted did not move. Judged corpus (isamu/chaff-corpus) on every document with a number-style entry or the shapes above: every correct finding kept, no new finding, the target false positive gone.
  • Tests are self-written (the document is hash-only).

Closes #2972

🤖 Generated with Claude Code
work in lab

isamu and others added 2 commits November 30, 2026 07:43
…opening a log entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…easures

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@isamu isamu mentioned this pull request Nov 30, 2026
@isamu
isamu merged commit fcb5428 into main Nov 30, 2026
10 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chaff-corpus: wikimedia-incident-2022-12-18-world-cup — number-style-consistency

1 participant