A textlint rule check english sentence using rousseau.
See Checks of rousseau.
So the cat was stolen.
Lint results:
$ textlint --rule textlint-rule-rousseau README.md
textlint-rule-rousseau: omit 'So' from the beginning of sentences
/Users/textlint-rule/.ghq/github.com/textlint-rule/textlint-rule-rousseau/README.md:11:1
v
10.
11. So the cat was stolen.
12.
^
textlint-rule-rousseau: "was stolen" may be passive voice
Suggestions:
=> stole
/Users/textlint-rule/.ghq/github.com/textlint-rule/textlint-rule-rousseau/README.md:11:12
v
10.
11. So the cat was stolen.
12.
^
npm install textlint-rule-rousseau
Via .textlintrc
(Recommended)
{
"rules": {
"rousseau": {
"showLevels": ["suggestion", "warning", "error"]
}
}
}
Via CLI
textlint --rule rousseau README.md
Level of importance
- "suggestion",
- "warning"
- "error"
{
"rules": {
"rousseau": {
"showLevels": ["suggestion", "warning", "error"]
}
}
}
See https://github.com/textlint-rule/rousseau#checks
{
"rules": {
"rousseau": {
"ignoreTypes": ["sentence:uppercase"]
}
}
}
npm test
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT