Skip to content

fix: oxford-comma-consistency reads the item after 'and then' by the word past then - #2985

Merged
isamu merged 4 commits into
mainfrom
fix/oxford-comma-then-after-conjunction
Nov 30, 2026
Merged

isamu merged 4 commits into
mainfrom
fix/oxford-comma-then-after-conjunction

Conversation

@isamu

@isamu isamu commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

oxford-comma-consistency compared the shape of the last item with the shape of the item after the and / or. After "and then" (or "and finally"), the item opened with the sequence word, an adverb, so an aside opened by an adverb before it ("Take a bus to the station, easily spotted from afar, and then ride the lift") matched it and the sentence was read as a list of three.

A sequence word right after the conjunction now marks a step, and the item is read by the word past it ("We visited Paris, Rome, and then Berlin" is a list of three names). Where the sequence word matches an adverb that opens the last item, the items stay a run of adverb-led items ("sorted primarily by stage, secondarily by size, and finally by date"), unless the words past it take the first item's shape: then the and / or goes on from the first item past an aside, and there is no list.

Items to Confirm / Review

  • The words are the language's sequence-opener lexicon (first, next, then, finally, …), only right after the and / or.
  • Lists ending in "and then X" now vote where they did not before. yarn corpus and yarn planted did not move.
  • A clause past the sequence word ("We fixed the parser, the renderer, and then we rested.") is no item (test_l3_en).
  • Judged corpus (isamu/chaff-corpus) on every document with an oxford-comma entry or an "and then / and finally …" shape: every correct finding kept (including an agenda's "primarily …, secondarily …, and finally …"), no new finding, the target false positive gone.
  • The test is self-written (the document is hash-only).

Closes #2979

🤖 Generated with Claude Code
work in lab

isamu and others added 4 commits November 30, 2026 07:18
…word past then

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in 'and finally'

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
@isamu
isamu merged commit 2d3f52c into main Nov 30, 2026
40 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: wikivoyage-one-day-in-bangkok — oxford-comma-consistency

1 participant