Skip to content
amoslivesPublic

About

Vale style for ASD-STE100 Simplified Technical English

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

vale-ste

A Vale style for ASD-STE100 Simplified Technical English. It encodes the mechanical rules of the standard that a regular expression can find. It does not contain the STE dictionary.

Install

Add the package to .vale.ini, then sync:

StylesPath = styles
MinAlertLevel = suggestion
Packages = https://github.com/amoslives/vale-ste/releases/download/v0.1.0/ste.zip

[*.md]
BasedOnStyles = Vale, ste
vale sync
vale README.md

For every project on a machine, put the same lines in ~/.vale.ini and set StylesPath to a directory such as ~/.local/share/vale/styles. Vale reads the global file when a project has no .vale.ini, and it merges the two when both exist.

Rules

Rule STE rule Level What it flags
SentenceLength 5.1, 6.3 warning A sentence of more than 25 words.
Modals 3.2 error should, would, may, might, could. The approved modals are can, will, and must.
Contractions 4.2 error 'll, 're, 've, n't, it's, and the other common contractions.
Perfect 3.4 warning has, have, or had with a past participle.
Semicolon 8.1 error A semicolon outside code.
Latin GR-6 error e.g., i.e., etc., vs.
IngClause 3.5 warning A comma followed by an -ing verb, as in , making or , allowing.
Passive 3.6 warning A form of "be" followed by a past participle.
OneVerb 1.11, 9.4 error verify, confirm, ensure, validate. The replacement is "make sure that".
Slop none error Words that carry no fact: leverage, utilize, in order to, robust, seamless, and the rest of the table in the rule file.

Each rule file has a header comment that names the STE rule it encodes.

Limits

  • The rules are approximations. Passive flags each "is" or "was" with an -ed word after it, which includes some adjectives. Modals flags may in every sense. SentenceLength counts each word inside inline code, where STE counts quoted text as one word (rule 8.6). These three rules run at the warning level for that reason.
  • The official dictionary decides the approved words. This style does not contain it. ASD-STE100 is a free download at asd-ste100.org.
  • Vale skips code blocks, inline code, and front matter in Markdown by default, so the style does not check them.

Vocabulary

Put project terms in styles/config/vocabularies/<Name>/accept.txt and set Vocab = <Name> in .vale.ini. Vale adds them to the exception list of every style. When a global ~/.vale.ini already uses a vocabulary name, Vale takes the global one, so give the project vocabulary a unique name.

Test

tests/run.sh runs the style against tests/bad.md, which holds one violation per rule, and against tests/good.md and this README, which hold none. Each rule must fire at least once on the first file and not at all on the others.

Release

scripts/release.sh v0.2.0 runs the tests, builds dist/ste.zip with the ste folder at its root, checks the layout, tags the commit, and creates the GitHub release with the zip attached.

License

MIT.

About

Vale style for ASD-STE100 Simplified Technical English

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages