Vale Rule Generator
Generate a Vale YAML rule based on the following style requirement.
Output Format
Section titled “Output Format”Produce a single Vale YAML file with the following fields:
extends— the Vale extension point (existence,substitution,occurrence,repetition,consistency,conditional,capitalization)message— an actionable message shown when the rule triggers; use%swhere the matched text should appearlevel—suggestion,warning, orerrortokens(forexistence) orswap(forsubstitution) — the list of patterns or preferred replacements
Guidelines
Section titled “Guidelines”- Use
existencefor terms to avoid outright - Use
substitutionfor preferred alternatives - Prefer plain token lists over regular expressions unless the rule requires pattern matching
- Write
messagein the imperative: “Avoid ‘%s’.” or “Use ‘%s’ instead of ‘%s’.” - Use
level: suggestionfor style preferences,level: warningfor consistency requirements,level: errorfor hard violations - Name the file in PascalCase matching the rule intent — for example,
NoEmDash.ymlorPreferSelect.yml
Style Requirement
Section titled “Style Requirement”$ARGUMENTS