Microsoft
Microsoft copied to clipboard
Microsoft.Headings "sentence-style capitalization" for brands with hyphen
Hello,
i have a heading like Build guide for the Plaid-Pad and added the Plaid-Pad to my accept.txt, but the suggestion is still triggered.
How can i avoid that, without disabling the Headings rule?
This is https://github.com/errata-ai/vale/issues/346. As a workaround, you could:
- Selectively disable the rule for that heading with a comment.
- Add either (or both) of the terms individually.
- Write a
TokenIgnorespattern, such asTokenIgnores = (Plaid-Pad).
Hello! I have a similar problem. We've been working on a Vale rule that enforces sentence style capitalization. We have included a few exceptions for some proper nouns that we use. Everything seems to be working well, except for some terms with hyphens. Here is the rule: extends: capitalization message: "'%s' should use sentence-style capitalization." level: warning match: $sentence threshold: 0.9 exceptions:
- Package Builder
- High-Def Render Pipeline
- H-Def Render Pipeline
- High Definition Render Pipeline Vale allows all exceptions except for: High-Def Render Pipeline. I've tried a bunch of other terms with hyphens and as long as the first part of the word is more than 1 character, it doesn't work as an exception. Do you have any idea why this one exception is not working or any suggestions to get it working?
This should be fixed in newer versions of Vale.