Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dictionary-en

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dictionary-en

English spelling dictionary in UTF-8

  • 3.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18K
decreased by-5.85%
Maintainers
1
Weekly downloads
 
Created
Source

dictionary-en

English spelling dictionary in UTF-8.

Useful with hunspell, nodehun, nspell, Open Office, LibreOffice, Firefox and Thunderbird, or macOS.

Generated by dictionaries from wordlist.aspell.net.

Install

npm:

npm install dictionary-en

Use

var en = require('dictionary-en')

en(function (err, result) {
  console.log(err || result)
})

Yields:

{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:

var path = require('path')
var base = require.resolve('dictionary-en')

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). Rest: MIT © Titus Wormer.

Keywords

FAQs

Package last updated on 16 Jun 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc