dictionary-en-us
Advanced tools
Comparing version
{ | ||
"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. |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
1
-50%328
-99.94%2
-66.67%0
-100%3
50%1
Infinity%4
-94.37%1
Infinity%