spellcheck-js
Checks if a english sentence or word is spelled correctly in JavaScript.
Installation
npm i spellcheck-js
Usage
First import:
const spellcheck = require("spellcheck-js");
Check if a word is spelled correctly:
spellcheck("hello");
spellcheck("fsdklfjas");
Or a sentence:
spellcheck("sentence correct");
spellcheck("sentecees corecte");
Get more advanced info:
spellcheck("which wordd wrong");
Or add your own words
spellcheck("customword");
spellcheck("customword", false, ["customword"]);
License
spellcheck-js is MIT-licensed open-source software created by Bharadwaj Duggaraju.