mirror of https://git.FreeBSD.org/doc.git
.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:
parent
f2d4b6884e
commit
fbc71f58e8
|
|
@ -18,6 +18,7 @@ BasedOnStyles = FreeBSD, Vale
|
||||||
FreeBSD.BrandTerms = NO
|
FreeBSD.BrandTerms = NO
|
||||||
FreeBSD.ConsciousLanguage = NO
|
FreeBSD.ConsciousLanguage = NO
|
||||||
FreeBSD.Contractions = NO
|
FreeBSD.Contractions = NO
|
||||||
|
FreeBSD.ForeignLanguage= NO
|
||||||
FreeBSD.Hang = NO
|
FreeBSD.Hang = NO
|
||||||
FreeBSD.Hyphens = NO
|
FreeBSD.Hyphens = NO
|
||||||
FreeBSD.Pronouns = NO
|
FreeBSD.Pronouns = NO
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue