spellcheck a text by using technical-word-rules.
npm install spellcheck-technical-wordThis library provide check function of azu/technical-word-rules.
npm install spellcheck-technical-word
``js`
var spellcheck = require("spellcheck-technical-word").spellCheckText;
var results = spellcheck("git");
assert(results.length > 0);
var result = results.pop();
/*
{ actual: 'git', expected: 'Git', paddingLine: 0, paddingColumn:0 }
*/
Result data structure
`js`
/**
*
* @typedef {{actual: string, expected: string, paddingLine: number, paddingColumn: number}} SpellCheckResult
*/
var result = {
actual: "string",
expected: "string",
paddingLine: 0,// start with 0
paddingColumn: 0// start with 0
};
Use case: azu/textlint-rule-helper
npm test
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT