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

dictionary-en-za

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dictionary-en-za

English (South Africa) spelling dictionary in UTF-8

  • 1.2.0
  • Source
  • npm
  • Socket score

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

dictionary-en-za

English (South Africa) spelling dictionary in UTF-8.

Useful with hunspell (node bindings), Open Office, LibreOffice, FireFox and Thunderbird, or place them in ~/Library/Spelling on OS X.

Generated by wooorm/dictionaries, from this dictionary.

Installation

npm:

npm install dictionary-en-za

Usage

var enZA = require('dictionary-en-za');

enZA(function (err, result) {
    if (err) throw err;

    console.log(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-za');

// NEVER USE `readFileSync` IN PRODUCTION.
fs.readFileSync(path.join(base, 'index.dic'), 'utf-8');
fs.readFileSync(path.join(base, 'index.aff'), 'utf-8');

License

Dictionary and affix file: LGPL-2.1. Rest: MIT © Titus Wormer.

Keywords

FAQs

Package last updated on 05 Nov 2016

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