/ .github / styles / Microsoft / Foreign.yml
Foreign.yml
 1  extends: substitution
 2  message: "Use '%s' instead of '%s'."
 3  link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-us-spelling-avoid-non-english-words
 4  ignorecase: true
 5  level: error
 6  nonword: true
 7  action:
 8    name: replace
 9  swap:
10    '\b(?:eg|e\.g\.)[\s,]': for example
11    '\b(?:ie|i\.e\.)[\s,]': that is
12    '\b(?:viz\.)[\s,]': namely
13    '\b(?:ergo)[\s,]': therefore