Skip to content

A VSCode extension that provides opinionated style checking for the English language

License

Notifications You must be signed in to change notification settings

alex9smith/writing-style-checker

Repository files navigation

Writing style checker

A VSCode extension that provides opinionated style checking for the English language. Heavily inspired by the Hemingway editor.

Use it on markdown files that go with code, for example repository READMEs. It will force you to write short, simple sentences in the active voice. You'll end up with documentation that's easier to understand.

It checks for:

  • Sentence complexity
  • Passive voice
  • Complex words
  • Adverbs
  • Qualifying words
  • Conjunctions at the start of sentences

Installation

Install from the (VSCode Marketplace)[https://marketplace.visualstudio.com/items?itemName=alex9smith.writing-style-checker].

Known issues

  • Doesn't detect multi-word complex phrases that span multiple lines
  • Doesn't ignore inline code
  • Only ignores code blocks for sentence analysis

To do

  • Refactor line level checks to use sentences
  • Ignore markdown headings & links
  • Add explanations for style rules to README

Developing the extension

Pull requests are very welcome. Please include unit tests for any new features.

You can run the test suite at the command line:

npm test

Since this is a VSCode extension you can also run the tests with the built in debugger.

Go to 'Run and Debug' (⇧⌘D), select 'Extension Tests', set a breakpoint and press F5 to start the debugger.

About

A VSCode extension that provides opinionated style checking for the English language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published