SEO + AEO on AutopilotFrom the team at Stackmatix
The Growth Library

Make Editorial Style Rules Respect Code, Quotations and Exceptions

Validate a scoped editorial rule with positive, negative, code, quotation, and narrow exception fixtures before trusting its alerts.

An editorial lint rule should identify a reviewable writing concern without rewriting code, accurate quotations, or supported product names. Define what it flags, where it runs, what an alert means, and how a justified exception is recorded. A low alert count is not proof of clear or accurate writing.

The example below flags the word just for human review because it can conceal an omitted prerequisite or unsupported claim of ease. It is a fictional local editorial policy, not a universal ban on the word. Some uses preserve a meaningful restriction or an exact name and should not be deleted automatically.

The glossary guide maintains definitions and aliases. This method tests an operational rule against actual writing contexts rather than redefining a term.

Read scope and token behavior from current documentation

Vale's scope documentation explains selecting parsed content, including prose, headings, blockquotes, and inline scopes. Its existence-check documentation describes tokens, case-insensitive matching, default word boundaries, and review messages.

The IgnoredScopes guidance explains excluding inline tag contents and warns that setting the key replaces its default list. Configuration should preserve the exclusions the project actually needs rather than accidentally enabling code review while trying to suppress one span.

The configuration here is illustrative and was not executed by an installed Vale binary. Actual parser and configuration behavior must be checked under the deployed version before this becomes a production gate. The populated fixtures specify what that validation should establish.

Provide the complete candidate configuration

Place the following configuration in a local demonstration project's .vale.ini, and the rule in styles/Editorial/Just.yml. These paths describe a proposed fixture layout; no production repository is changed by this article.

StylesPath = styles
IgnoredScopes = code, tt, kbd, samp

[*.md]
BasedOnStyles = Editorial
extends: existence
message: "Review '%s'; state the actual effort or prerequisite."
level: suggestion
scope: 'text & ~blockquote'
ignorecase: true
tokens:
  - just

The rule requests a suggestion rather than an automatic replacement. Its word-boundary behavior should distinguish just from the substring inside adjust. The blockquote exclusion and code handling are part of the acceptance contract, not a reason to assume every format or future configuration behaves identically.

Keep the rule name and guidance specific. “Bad writing” is difficult to act on; “state the actual effort or prerequisite” asks the editor to inspect a concrete missing explanation.

Populate ten scope and meaning fixtures

Fictional style-rule acceptance matrix
IDDeclared contextExact inspected textExpected raw candidatesException
L1proseJust connect the source.1None
L2proseAdjust the setting.0None
L3inline codejust0None
L4fenced codejust setup0None
L5blockquoteJust connect the source.0None
L6proseOpen Just Orchard.1E1
L7proseUse just one file.1None
L8headingJust connect1None
L9proseFixture text: "Just connect."1E2
L10proseJust connect; just save.2None

The context column matters. L3 and L4 are genuine code representations in the complete fixture file, not ordinary paragraphs merely labeled code in a spreadsheet. L5 is a blockquote. A test that runs a regex across the raw entire Markdown source would violate those intended boundaries.

L6 and L9 deliberately produce raw candidates before editorial exception review. The rule should not guess that every capitalized word is a product name or that every inline quoted phrase is approved verbatim evidence.

Keep real markup in the fixture file

Save the following complete sample as sample.md in the local demonstration layout. The labels connect each item to the acceptance matrix; they are not part of a real product instruction. Preserve the code spans, fenced block, blockquote, and heading rather than pasting all ten strings into plain paragraphs.

L1: Just connect the source.

L2: Adjust the setting.

L3: `just`

L4:

```text
just setup
```

> L5: Just connect the source.

L6: Open Just Orchard.

L7: Use just one file.

# L8: Just connect

L9: Fixture text: "Just connect."

L10: Just connect; just save.

Record narrow exceptions instead of disabling the word

Complete fictional exception record
IDExact scopeReasonAuthority and recheck
E1The Just token inside fictional product name Just Orchard in L6Preserve the declared exact product nameFictional name owner; recheck if name/context changes
E2The Just token in the exact fictional source-text specimen in L9Preserve the specimen when discussing its wordingEditorial specimen owner; recheck if no longer quoted as evidence

Both exceptions are teaching records, not real brand endorsements or customer quotations. They do not authorize ignoring every use of just across the library. A global allowlist for that word would erase the rule's useful findings along with its false positives.

For L7, the editor should preserve the one-file restriction. Replacing just with only may clarify the constraint; deleting it could weaken the meaning. A style alert does not establish that the matched word is semantically disposable.

Separate token checks from end-to-end parser evidence

A local Python word-boundary check on the preclassified fixture strings found seven candidate tokens across the intended eligible cases. Applying the two declared occurrence-specific exceptions leaves five review candidates. This is a harmless local pattern observation, not a claim that Vale parsed the source files or produced those exact alerts.

The actual release check must run the supported Vale version on real fixture markup and compare locations, scope selection, candidate counts, messages, and exceptions. Preserve the tool version and configuration. A correct regex against manually classified strings cannot prove that a parser assigns the expected scopes.

The snippet-sync guide preserves source and excerpt relationships. Here the central issue is which writing contexts a style rule is allowed to inspect.

Challenge the rule with meaningful failures

Remove the scope protection in a disposable test and check whether code or blockquotes become candidates. Remove the word boundaries and see whether adjust is falsely selected. Remove the narrow exception and confirm that the protected name becomes visible for review rather than silently changed.

These negative cases test distinct parts of the policy. Do not declare the rule better simply because fewer alerts appear. An overly broad exclusion can hide ordinary instructional prose, while an automatic fix can damage names or faithful source specimens.

Keep reviewer judgment attached to consequential findings. A rule can locate a possible issue but cannot prove that the product is easy, the prerequisites are complete, or the resulting sentence is factually supported.

Release an auditable style aid

Save the rule, configuration, actual fixture markup, expected findings, observed tool output when run, exception evidence, and known limits. Recheck when parsers, scopes, file formats, or terminology change.

The verification worksheet covers factual support separately. A lint pass is not an editorial approval and does not establish readability, accuracy, accessibility, or search performance.

Approve the aid when it catches the intended prose concern, preserves protected contexts, and leaves justified exceptions narrow. The useful outcome is a repeatable prompt for better editing, with evidence about what the tool did and no claim that automation has replaced the editor.

Sources

Matt Pru

Co-founder and CEO of Stackmatix. Writing about growth, customer acquisition, and the decisions behind useful marketing. Connect on LinkedIn.

Developed with AI assistance under Matt's editorial direction. Our Editorial Approach