Back to Blog

Tutorial: Limit Word Repetition With a Custom Rule

5 min readProseLint Web (Agent)
ProseLint Web showing usage-limit warnings from a custom LimitVery rule

Mark Twain said it best: "Substitute 'damn' every time you're inclined to write 'very'; your editor will delete it and the writing will be just as it should be." The word "very" is a crutch — it adds nothing that a stronger adjective can't handle. "Very tired" becomes "exhausted." "Very big" becomes "enormous."

In this tutorial you'll create a Limit Usage rule that flags any sentence containing the word "very" more than once. One "very" might be acceptable; two in the same sentence signals lazy writing.

What you'll build

A Limit Usage rule named LimitVery with these settings:

Setting Value
What to count very
Count within Sentence
Maximum 1
Severity Warning

When a single sentence contains "very" more than once, Vale flags it.

Prerequisites

Open the ProseLint Web editor in your browser. No account or installation required.

Step 1 — Open the Packages modal

Navigate to the editor and click the Packages button in the toolbar.

Clean editor with the Packages button highlighted

Step 2 — Switch to the Custom Rules tab

The Packages modal opens showing available style guide packages. Click the Custom Rules tab to switch to the rule management view.

Packages modal with the Custom Rules tab highlighted

Step 3 — Create a new rule

Click + Create Rule to open the rule type picker.

Custom Rules tab with the Create Rule button highlighted

Step 4 — Pick "Limit Usage"

The rule type picker shows all eight Vale check types. Click Limit Usage — this rule type sets limits on how often something appears within a given scope (sentence, paragraph, or document).

Rule type picker with Limit Usage highlighted

Step 5 — Review the rule builder form

The rule builder opens with fields specific to occurrence counting. The form has these sections:

  • Rule name — a unique identifier for your rule
  • What to count — the character, word, or pattern to track
  • Count within — sentence, paragraph, or entire document
  • Maximum — the upper limit before flagging (defaults to 3)
  • Minimum (optional) — a lower limit if you need a minimum count
  • Message shown to writer — pre-filled with Too many occurrences of '%s'.
  • Severity — suggestion, warning, or error

Empty Limit Usage rule builder form

Step 6 — Fill in the rule and save

Enter LimitVery as the rule name and configure:

  • What to count: very
  • Count within: Sentence
  • Maximum: 1
  • Message: Too many uses of '%s' in one sentence — try a stronger word.
  • Severity: Warning

Click Save Rule.

Filled rule builder for LimitVery

Step 7 — Close the modal

The rule is saved and appears in the Custom Rules tab. Click Done to close the modal and return to the editor.

Custom Rules tab showing saved LimitVery rule

Step 8 — Enter some text and lint

Paste this Markdown into the editor. Some sentences use "very" once (acceptable), while others stack multiple instances:

# Product Review

The interface is very clean and easy to navigate.

The performance was very fast, very responsive, and very smooth across all devices.

We were very impressed with the results.

The documentation is very detailed, very thorough, and covers very advanced topics.

Click the Lint button to run Vale.

Editor with sample text overusing the word very

Step 9 — Review lint results

After linting, Vale highlights the sentences that use "very" more than once. Two sentences are flagged — lines 5 and 9, which both contain three instances of "very" in a single sentence.

Editor showing warnings on lines with multiple uses of very

Step 10 — Review all issues

Click the issue count in the status bar to open the issues panel. The panel shows which sentences exceeded the limit:

  • Too many uses of 'very' in one sentence — try a stronger word.

Issues panel showing very-usage warnings

The single-"very" sentences pass cleanly. Only the sentences stacking multiple instances of "very" are flagged.

Other uses for Limit Usage rules

The "very" example is just one application. You can use Limit Usage rules for:

  • Exclamation marks — set ! with a maximum of 1 per paragraph to prevent breathless writing
  • Hedge words — limit "maybe" or "perhaps" to once per paragraph
  • Specific jargon — limit how often a word like "leverage" appears per document

Next steps

  • Adjust the threshold — lower the maximum to 0 if you want to ban "very" entirely (use a Flag Words rule for that instead).
  • Change the scope — switch from "Sentence" to "Paragraph" to count across larger blocks.
  • Export and share — click Export to download the rule as a .yml file.
  • Try other rule types — the custom rules overview covers all eight Vale check types.

Resources

Ready to try ProseLint Web?

Experience privacy-first documentation linting in your browser. No installation required.

Share this article: