.vale/styles: Removing Foreign Language references from English contents

e.g/eg or ie/i.e actually hails from Latin root and do not have any
specific general acceptance in any English standards or at least should
not be written in technical documentation. But we have a lot of these in
our documentation. Throw errors for such occurrences and replace those
with for example or that is.

Approved by:	carlavilla
This commit is contained in:
Muhammad Moinur Rahman 2023-08-01 15:26:43 +02:00
parent f2d4b6884e
commit fbc71f58e8
2 changed files with 12 additions and 0 deletions

View File

@ -18,6 +18,7 @@ BasedOnStyles = FreeBSD, Vale
FreeBSD.BrandTerms = NO
FreeBSD.ConsciousLanguage = NO
FreeBSD.Contractions = NO
FreeBSD.ForeignLanguage= NO
FreeBSD.Hang = NO
FreeBSD.Hyphens = NO
FreeBSD.Pronouns = NO

View File

@ -0,0 +1,11 @@
---
extends: substitution
message: "Use '%s' instead of '%s'."
ignorecase: true
level: error
nonword: true
action:
name: replace
swap:
'\b(?:eg|e g|e\.g\.|e\. g\.)[\s,]': for example
'\b(?:ie|i e|i\.e\.|i\. e\.)[\s,]': that is