New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dictionary-en-us

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dictionary-en-us - npm Package Compare versions

Comparing version

to
3.0.0

32

package.json
{
"name": "dictionary-en-us",
"version": "2.2.1",
"description": "English (United States) spelling dictionary in UTF-8",
"license": "(MIT AND BSD)",
"keywords": [
"spelling",
"myspell",
"hunspell",
"dictionary",
"en",
"us",
"english",
"united",
"states"
],
"repository": "https://github.com/wooorm/dictionaries/tree/master/dictionaries/en-US",
"bugs": "https://github.com/wooorm/dictionaries/issues",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
},
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"Thomas Beverley <tom.beverley101@gmail.com>"
],
"files": [
"index.js",
"index.aff",
"index.dic"
]
"version": "3.0.0",
"description": "Deprecated: use dictionary-en instead for English as spoken in the United States"
}
# dictionary-en-us
English (United States) spelling dictionary in UTF-8.
Useful with [hunspell][], [`nodehun`][nodehun], [`nspell`][nspell],
Open Office, LibreOffice, Firefox and Thunderbird, or [macOS][].
Generated by [`dictionaries`][dictionaries], from
[`wordlist.aspell.net`][source].
## Install
[npm][]:
```sh
npm install dictionary-en-us
```
## Use
```js
var enUS = require('dictionary-en-us')
enUS(function (err, result) {
console.log(err || result)
});
```
Yields:
```js
{ dic: <Buffer>,
aff: <Buffer> }
```
Where `dic` is a buffer for the dictionary file at `index.dic` (in UTF-8), and
`aff` is a buffer for the affix file at `index.aff` (in UTF-8).
Or directly load the files, using something like:
```js
var path = require('path')
var base = require.resolve('dictionary-en-us')
fs.readFileSync(path.join(base, 'index.dic'), 'utf-8')
fs.readFileSync(path.join(base, 'index.aff'), 'utf-8')
```
## License
Dictionary and affix file: [(MIT AND BSD)](https://github.com/wooorm/dictionaries/blob/master/dictionaries/en-US/license).
Rest: [MIT][] © [Titus Wormer][home].
[hunspell]: https://hunspell.github.io
[nodehun]: https://github.com/nathanjsweet/nodehun
[nspell]: https://github.com/wooorm/nspell
[macos]: https://github.com/wooorm/dictionaries#macos
[source]: http://wordlist.aspell.net/dicts/
[npm]: https://docs.npmjs.com/cli/install
[dictionaries]: https://github.com/wooorm/dictionaries
[mit]: https://github.com/wooorm/dictionaries/blob/master/LICENSE
[home]: https://wooorm.com
Deprecated: use [dictionary-en](https://github.com/wooorm/dictionaries/tree/master/dictionaries/en) instead for English as spoken in the United States.