$ npm install rousseau
var rousseau = ;;
results is an array of object like:
// Type of check that output this suggestiontype: "so"// Level of importance// "suggestion", "warning", "error"level: "warning"// Index in the textindex: 10// Size of the section in the textoffset: 2// Message to describe the suggestionmessage: "omit 'So' from the beginning of sentences"// Replacements suggestionreplacements:value: ""
You can disable any combination of the following by providing a key with value
false as option
||Checks for passive voice|
||Checks for lexical illusions – cases where a word is repeated.|
||Checks for adverbs that can weaken meaning: really, very, extremely, etc.|
||Checks for readibility of sentences.|
||Checks for simpler expressions|
||Checks for "weasel words."|
||Checks that sentence is preceded by a space|
||Checks that there is no space between a sentence and its ending punctuation|
||Checks that sentences are starting with uppercase letter|
Example: Extend rousseau with a Spellchecker.
Rousseau use an internal cache for certain operations (tokenization, spellchecking, ...); this cache can be configured using the option
We'd love to accept your patches and contributions to improve Rousseau (supported languages, checks, ...). Learn more about how to contribute in CONTRIBUTING.md.