Conversation
A marker after more than one closing bracket. Parentheticals nest -- "5 wt% of Super P carbon (Tim-cal) in N-Methylpyrrolidone (Aldrich)).19" closes two of them between the sentence's last letter and its full stop -- and matching a single one was still one short. The brackets are consumed and put back now rather than looked behind, because a lookbehind in Python has to be a fixed width and a run of them is not. A designation that begins where a number ends. A hydrate is written with the ether welded to the stoichiometry, "AlH3·0.25Et2O", and the pattern refused to start on a token with a digit in front of it -- so the plain pass said "zero point two five" and left the ether spelled out as a number. The leftmost match still wins, so a coefficient in front is claimed with its token as before. And the Norwegian company suffix, which is not the English word "as". Written a/?s under re.I alongside "university" and "institute", it matched every front-matter block containing that word -- including one paper's title, "Aluminum hydride as a hydrogen and energy storage material". Triage dropped the title as content-free while the orientation went on saying it, which is what rule STR-01 asks for and what COH-01 then reported as a leak. Two hints either side of it had never matched anything at all: the pattern ends in a word boundary and there is none between "Dept." and the space after it, nor after "Inc." at the end of a phrase. Corpus: two errors across the twelve papers, and ten of them build clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
A marker after more than one closing bracket
Parentheticals nest:
Two brackets close at once between the sentence's last letter and its full stop, and matching a single one was still one short. They are consumed and put back now rather than looked behind — a lookbehind in Python has to be a fixed width, and a run of them is not.
A designation that begins where a number ends
A hydrate is written with the ether welded to the stoichiometry —
AlH3·0.25Et2O— and the designation pattern refused to start on a token with a digit in front of it. So the plain pass said "zero point two five" and left the ether spelled out as a number.The leftmost match still wins, so a coefficient in front is claimed with its token as before:
4AlH3→ "four AlH three". Tested.The Norwegian company suffix is not the English word "as"
a/?s, written underre.Ialongsideuniversityandinstitute, matched as. Every front-matter block containing that word was called an affiliation — including one paper's title:Triage dropped the title as content-free, the orientation went on saying it (which is what
STR-01asks for), andCOH-01reported the result as a leak.While there: two hints either side of it had never matched anything at all. The pattern ends in a word boundary, and there is none between
Dept.and the space after it, nor afterInc.at the end of a phrase.Corpus
The two that remain are both understood and both narrow: a DOI fragment inside a reference line, and a second, much poorer scan of a paper the corpus already contains, where only one superscript marker survives extraction — too few for
MIN_SUPERSCRIPT_EVIDENCEto let the stripper touch anything, which is the gate working as designed.🤖 Generated with Claude Code