Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@cspell/dict-en-common-misspellings
Advanced tools
Common English misspellings dictionary for cspell.
@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
FAQs
Common English misspellings dictionary for cspell.
The npm package @cspell/dict-en-common-misspellings receives a total of 501,022 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.