【文件属性】:
文件名称:spell-checker.js:简单的可扩展工具,用于拼写检查
文件大小:1.02MB
文件格式:ZIP
更新时间:2021-05-27 14:16:48
language spellcheck dictionary english russian
Spell-checker.js
简单的可扩展工具,用于拼写检查
自述: English
支持的语言
英语
俄语
快速开始
安装: npm i spell-checker-js
代码
const spell = require ( 'spell-checker-js' )
// Load dictionary
spell . load ( 'en' )
// Checking text
const check = spell . check ( 'Some text to check, blahblahblah, olololo' )
console . log ( check )
// -> ['blahblahblah', 'olololo']
方法与性质
spell.load(dictionary)或spell.load(options) —加载字典文件
例子:
//
【文件预览】:
spell-checker.js-master
----.gitignore(13B)
----package.json(932B)
----src()
--------index.ts(9KB)
----.travis.yml(35B)
----dist()
--------index.js(10KB)
--------index.js.map(6KB)
----LICENSE(1KB)
----tsconfig.json(435B)
----.gitmodules(131B)
----dictionaries()
--------ru()
--------en()
----README.md(2KB)
----.npmignore(56B)
----test()
--------test.js(9KB)
--------test_dict.txt(56B)
----README.RU.md(3KB)
----.editorconfig(210B)
----yarn.lock(36KB)