Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@cspell/dict-en-common-misspellings
Advanced tools
@cspell/dict-en-common-misspellings is an npm package that provides a dictionary of common misspellings for use with the CSpell spell checker. It helps in identifying and correcting frequently misspelled words in English, enhancing the accuracy of spell-checking processes.
Integration with CSpell
This feature allows you to integrate the common misspellings dictionary with CSpell to check and correct text. The code sample demonstrates how to configure CSpell to use the 'en-common-misspellings' dictionary and check a text for common misspellings.
const cspell = require('cspell');
const settings = {
dictionaries: ['en', 'en-common-misspellings']
};
cspell.checkText('Ths is a smple txt with cmmon mispellings.', settings).then(result => {
console.log(result);
});
Custom Dictionary Usage
This feature allows you to use the common misspellings dictionary as a standalone dictionary for spell-checking. The code sample shows how to configure CSpell to use only the 'en-common-misspellings' dictionary to check a text.
const cspell = require('cspell');
const settings = {
dictionaries: ['en-common-misspellings']
};
cspell.checkText('Ths is a smple txt with cmmon mispellings.', settings).then(result => {
console.log(result);
});
cspell-dict-en_us is a dictionary for American English words used with CSpell. It provides a comprehensive list of correctly spelled words in American English, but does not specifically focus on common misspellings like @cspell/dict-en-common-misspellings.
cspell-dict-en-gb is a dictionary for British English words used with CSpell. It offers a list of correctly spelled words in British English, similar to cspell-dict-en_us, but does not address common misspellings specifically.
Common English Misspellings dictionary for cspell.
This is a pre-built dictionary for use with CSpell.
Tool | Version |
---|---|
cspell | >= 6.25.0 |
Code Spell Checker - Visual Studio Code | >= 2.17.0 |
Global Install and add to CSpell global settings.
npm install -g @cspell/dict-en-common-misspellings
cspell link add @cspell/dict-en-common-misspellings
cspell link remove @cspell/dict-en-common-misspellings
Manual installation is useful if you want to include this dictionary as part of your CI/CD lint process.
npm i @cspell/dict-en-common-misspellings
The cspell-ext.json
file in this package should be added to the import section in your cspell.json
file.
{
// …
"import": ["@cspell/dict-en-common-misspellings/cspell-ext.json"],
// …
}
The source of this dictionary comes from:
See: How to Create a New Dictionary
MIT
Some packages may have other licenses included.
Brought to you by Street Side Software
FAQs
Common English misspellings dictionary for cspell.
The npm package @cspell/dict-en-common-misspellings receives a total of 469,416 weekly downloads. As such, @cspell/dict-en-common-misspellings popularity was classified as popular.
We found that @cspell/dict-en-common-misspellings demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.