Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@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"
}
8.9.0 (2024-06-18)
Note: Version bump only for package cspell-monorepo
FAQs
Dictionaries bundled with cspell
The npm package @cspell/cspell-bundled-dicts receives a total of 297,984 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 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.