
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
webspellchecker-api
Advanced tools
WebSpellChecker API is a browser, Node.js client that introduces more convenient way to work with WebSpellChecker Service. It provides methods for spell- and grammar checking on multiple languages, and various methods to work with personal user dictionari
WebSpellChecker API is a browser, Node.js client that introduces more convenient way to work with WebSpellChecker Service. It provides methods for spell- and grammar checking on multiple languages, and various methods to work with personal user dictionaries.
To explore the full list of parameters and methods available, please visit this page.
WebSpellChecker API provides multi-language support. The next languages are supported by default: American English, Canadian English, British English, Danish, Dutch, Canadian French, Finnish, French, German, Greek, Italian, Portuguese, Brazilian Portuguese, Norwegian Bokmal, Spanish, Swedish.
There are also additional languages and specialized dictionaries available, you can check the full list here.
npm install webspellchecker-api --save
var WEBSPELLCHECKER = require('webspellchecker-api');
In order to start using WebSpellChecker API, you have to obtain a service key. You can do it here by subscribing to Cloud Web API.
var proofreadApi = WEBSPELLCHECKER.initWebApi({
lang: 'en_US', // You can get a list of supported languages with their shortcodes here: http://dev.webspellchecker.net/api/webapi/WEBSPELLCHECKER.html
serviceId: '<your service id>' //The serviceId is a required parameter. In order to start using WebSpellChecker API, you have to obtain a service key.
});
proofreadApi.spellCheck({
text: 'mispeled text',
success: function(data) {
console.log(data);
//[ { word: 'mispeled',
// ud: false,
// suggestions:[
// 'misspelled',
// 'dispelled',
// 'morseled',
// 'misdeed',
// 'HiSpeed',
// 'impelled',
// 'misapplied',
// 'misdeeds'
// ],
// startOffset: 0,
// endOffset: 8
//} ]
},
error: function() {}
});
proofreadApi.grammarCheck({
text: 'mispeled text',
success: function(data) {
console.log(data); //[ { sentence: 'mispeled text', matches: [ [Object] ] } ]
console.log(data[0].matches);
// [ { message: 'This sentence does not start with an uppercase letter',
// offset: 0,
// length: 8,
// rule: { id: 'UPPERCASE_SENTENCE_START' },
// suggestions: [ 'Mispeled' ] } ]
},
error: function() {}
});
proofreadApi.addWordToUserDictionary({
name: 'testDictionary',
word: 'exaple',
success: function(data) {
console.log(data); // {"name":"testDictionary","action":"addWord","wordlist":['exaple']}
},
error: function(error) {
console.log(error);
}
});
Just run the next command:
npm test
To build and concatenate the minified version, please run the next command:
grunt
The built version will be placed in the dest
folder.
This project is licensed under the MIT License.
FAQs
WebSpellChecker API is a browser, Node.js client that introduces more convenient way to work with WebSpellChecker Service. It provides methods for spell- and grammar checking on multiple languages, and various methods to work with personal user dictionari
The npm package webspellchecker-api receives a total of 80 weekly downloads. As such, webspellchecker-api popularity was classified as not popular.
We found that webspellchecker-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.