Skip to content

Fork of btford's write-good, with different output and some extras

Notifications You must be signed in to change notification settings

duereg/write-gooder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Dependencies devDependencies

write gooder

Naive linter for English prose for developers who can't write good and wanna do other stuff good too.

A fork of write-good by Brian Ford.

Use

npm install duereg/write-gooder

Important: Do not use this tool to be a jerk to other people about their writing.

API

writeGooder is a function that takes a string and returns an array of suggestions.

var writeGooder = require('write-gooder');

var suggestions = writeGooder('So the cat was stolen.');

// suggestions:
//
// [{
//   suggestion: "omit 'So' from the beginning of sentences",
//   index: 0, offset: 2
// }, {
//   suggestion: "'was stolen' is passive voice",
//   index: 11, offset: 10
// }]

CLI

You can use write-gooder as a command-line tool by installing it globally:

npm install -g duereg/write-gooder

write-gooder takes a glob and prints suggestions to stdout:

$ write-gooder *.md

In README.md
=============
 = writeGooder('So the cat was stolen.');
"was stolen" is passive voice
line 20 column 40
-------------
//   suggestion: "'was stolen' is passive voice",
"was stolen" is passive voice
line 28 column 19

You can run just specific checks like this:

write-gooder *.md --weasel --so

Or exclude checks like this:

write-gooder *.md --no-passive

License

MIT

About

Fork of btford's write-good, with different output and some extras

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •