spellcheck-technical-word
v2.0.0
Published
spellcheck a text by using technical-word-rules.
Downloads
11,170
Readme
spellcheck-technical-word
This library provide check function of azu/technical-word-rules.
Installation
npm install spellcheck-technical-word
Usage
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
/**
*
* @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
Tests
npm test
Contributing
- 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
License
MIT