Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@cspell/cspell-bundled-dicts
Advanced tools
@cspell/cspell-bundled-dicts is a package that provides a collection of pre-bundled dictionaries for use with the CSpell spell checker. It allows developers to easily integrate various language dictionaries into their projects to enhance spell-checking capabilities.
Loading a Dictionary
This feature allows you to load a specific dictionary by its language code. In this example, the 'en_us' dictionary is loaded and logged to the console.
const { getDictionary } = require('@cspell/cspell-bundled-dicts');
async function loadDictionary() {
const dictionary = await getDictionary('en_us');
console.log(dictionary);
}
loadDictionary();
Listing Available Dictionaries
This feature provides a list of all available dictionaries bundled with the package. The example code retrieves and logs the list of dictionaries.
const { getDictionaryList } = require('@cspell/cspell-bundled-dicts');
function listDictionaries() {
const dictionaries = getDictionaryList();
console.log(dictionaries);
}
listDictionaries();
hunspell-dict-en-us provides the English (US) dictionary for Hunspell, a popular spell checker. Unlike @cspell/cspell-bundled-dicts, which offers multiple dictionaries for different languages, hunspell-dict-en-us focuses solely on the US English dictionary.
dictionary-en is part of the `wooorm/dictionaries` collection and provides English dictionaries for use with various spell checkers. It is similar to @cspell/cspell-bundled-dicts in that it offers pre-bundled dictionaries, but it is more focused on the English language.
spellchecker-wasm is a WebAssembly-based spell checker that includes dictionaries for multiple languages. It is similar to @cspell/cspell-bundled-dicts in providing multi-language support but differs in its use of WebAssembly for performance optimization.
This package contains all the dictionaries bundled with cspell.
It has been pull into its own package to make it easier to Webpack cspell.
Example webpack.config.js
modification:
externals: [
/^@cspell\/cspell-bundled-dicts/,
],
Example: package.json
:
"devDependencies": {
"cspell": "^5",
},
"dependencies": {
"@cspell/cspell-bundled-dicts": "^5"
}
FAQs
Dictionaries bundled with cspell
The npm package @cspell/cspell-bundled-dicts receives a total of 543,720 weekly downloads. As such, @cspell/cspell-bundled-dicts popularity was classified as popular.
We found that @cspell/cspell-bundled-dicts 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.