Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@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
CC BY-SA 4.0
Some packages may have other licenses included.
Brought to you by Street Side Software
12.0.5 (2023-05-17)
discretization
to en_us (#2168) (c3442eb)FAQs
Common English misspellings dictionary for cspell.
The npm package @cspell/dict-en-common-misspellings receives a total of 528,844 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 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.