Repository navigation
fix: oxford-comma-consistency reads the item after 'and then' by the word past then - #2985
Merged
Merged
Conversation
…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>
…-after-conjunction
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
sequence-openerlexicon (first, next, then, finally, …), only right after the and / or.yarn corpusandyarn planteddid not move.Closes #2979
🤖 Generated with Claude Code
work in lab