The project is run on Github, in the typical free software way - we'd love to accept your patches and contributions to this project.
Prerequisites: familiarity with GitHub PRs (pull requests) and issues. Knowledge of Javascript.
This community seeks the following types of contributions:
- ideas: participate in an Issues thread or start your own to have your voice heard.
- new languages: submit a PR to add your language
- new checks or improve existing ones
- copy editing: fix typos, clarify language, and generally improve the quality of the content
- documentation: help keep the README easy to read and understadable with consistent formatting
- Describe your check in the
README.md
. - Create a file named with the
ID
for the new check, example:end-with-right.js
. - Include it in the
<language>/index.js
. - Add some unit tests corresponding to yoru check.
- Use the
tokenizer
to return suggestions, example to signal sentences ending with "Right?":
var levels = require("../levels");
var tokenize = require("../tokenize");
module.exports = tokenize.check(
// Tokenize as sentences
tokenize.sentences(),
// Match the ones ending with "right?"
tokenize.re(/\bright\b\s\?$/i),
// Output
tokenize.define({
level: levels.WARNING,
message: "omit 'right?' at the end of sentences"
})
);
- Create a folder named with the ISO 639-1 language code.
- Add your language in the
lib/languages.js
file.