Replies: 1 comment
-
extends: conditional
message: "'%s' has no definition"
level: error
ignorecase: false
first: '\b([A-Z]{3,5})(?=s\b|\b)'
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})s?\)' |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
daobrien
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://vale.sh/docs/topics/styles/#conditional
Is it currently possible to extend this to accept plurals? E.g., the existence of LAN requires that Local Area Network exist and that's fine, but we'd like to:
a) (ideally) Accept "LANs" and "LAN" and their definitions to cover both the singular and plural. This means that if LAN and LANs both appear in the same file then Vale is not going to trigger on both. Defining one would be enough to cover both.
b) Be able to modify the rule to recognize LAN and LANs and the associated definitions.
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions