Docs
Checks
repetition

repetition

Learn about the repetition extension point.

NameTypeDescription
ignorecaseboolMakes all matches case-insensitive.
alphaboolLimits all matches to alphanumeric tokens.
tokensarrayA list of tokens to be transformed into a non-capturing group.
exceptionsarrayAn array of strings to be ignored.
vocabboolIf false, disables all active vocabularies for this rule (default: true).

repetition looks for repeated occurrences of its tokens.

yaml
extends: repetition message: "'%s' is repeated!" level: error alpha: true tokens: - '[^s.!?]+'

Vale.Repetition

Vale includes a built-in implementation of repetition that can be used to flag repeated words such as “the the” or “and and”. This rule will catch almost any instance of a repeated word, including across markup boundaries:

markdown
See the Mermaid [Mermaid user guide][1].