Rule Source
This rule comes from: https://github.com/mesosphere/dcos-docs-site
Rule Definition
extends: repetition
message: "'%s' is repeated!"
level: warning
alpha: true
action:
name: edit
params:
- truncate
- " "
tokens:
- '[^\s]+'
This rule identifies instances where a word is immediately repeated in text. It helps catch unintentional word duplication, which is a common typing error that can distract readers and reduce the professionality of your content.
The rule is particularly useful because repeated words are easy to miss during proofreading, especially in longer texts. While some word repetitions are intentional (like "very very"), most are typographical errors that should be corrected.
✗ Incorrect:
✓ Correct:
Note: The rule uses a truncate action, which means it will suggest removing one of the repeated instances when triggered. The rule works by matching any non-whitespace characters ([^\s]+) and checking if they're repeated consecutively.
This rule comes from: https://github.com/mesosphere/dcos-docs-site
extends: repetition
message: "'%s' is repeated!"
level: warning
alpha: true
action:
name: edit
params:
- truncate
- " "
tokens:
- '[^\s]+'