Share one prose matcher between both gates - #1
Merged
Conversation
…aries The advisory voice gate and the blocking jargon gate each carried their own matching logic, and both were naive substring scans: case-sensitive in one, boundary-blind in both, so a listed phrase hiding inside a longer word tripped the gate and a capitalized one sailed past it. One shared matcher now owns the semantics for both: case folding, word-edge boundaries (punctuation-edged entries like the em dash keep substring behavior on that side), markdown code exclusion, and the one deliberate exception where a whole-document markdown fence is a handoff copy wrapper whose contents are still prose. Hits carry original line numbers. Also adds the clear-technical-writing wiki page: six principles informed by ASD-STE100 and the W3C/DfE plain-language guidance, with the scope boundary stated (no reproduction, no compliance claim, conversation is not a maintenance manual) and the index route phrased for the question a future agent will actually ask.
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
scripts/prose-matcher.js) now owns matching semantics for both the advisory voice gate and the blocking jargon gate, so the two can't drift: case-insensitive, word-boundary aware (punctuation-edged entries keep substring behavior on that side), markdown code excluded, hits carry original line numbers.engineering/clear-technical-writing.md: six principles informed by ASD-STE100 and W3C/DfE plain-language guidance, with the no-reproduction, no-compliance-claim boundary stated plainly, listed in the enforced index.Test plan
npm run checkgreen (tests, command shapes, links, jargon gate)