Microsoft icon indicating copy to clipboard operation
Microsoft copied to clipboard

Microsoft.Headings "sentence-style capitalization" for brands with hyphen

Open BenRoe opened this issue 4 years ago • 1 comments

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?

BenRoe avatar Dec 03 '21 00:12 BenRoe

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 TokenIgnores pattern, such as TokenIgnores = (Plaid-Pad).

jdkato avatar Dec 07 '21 22:12 jdkato

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?

JamesDuff2021 avatar Jun 12 '23 19:06 JamesDuff2021

This should be fixed in newer versions of Vale.

jdkato avatar Mar 22 '24 20:03 jdkato