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

dictionary-isv

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dictionary-isv

Interslavic spelling dictionary in UTF-8

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

dictionary-isv

Interslavic spelling dictionary in UTF-8.

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

Generated by @orlean-git's Python package in this repository.

Install

npm:

npm install dictionary-isv

Use

The package exports multiple dictionaries:

  • combined (the default one), which can check Interslavic texts written both in Latin and Cyrillic scripts:
    var dictionary = require('dictionary-isv');
    // or the aliased version:
    var dictionary = require('dictionary-isv/combined');
    
  • etymological, not recommended for daily use, but useful for flavorizing texts to specific Slavic target languages and also for dictionary development:
    var dictionary = require('dictionary-isv/etymological');
    
  • Latin-only, a lightweight and a faster alternative to the default combined dictionary which works only for Interslavic written in Latin script:
    var dictionary = require('dictionary-isv/latin');
    
  • Cyrillic-only, a lightweight and a faster alternative to the default combined dictionary which works only for Interslavic written in Cyrillic script:
    var dictionary = require('dictionary-isv/cyrillic');
    

Every exported module is an asynchronous function with a callback, e.g.:

dictionary(function (err, result) {
  console.log(err || result)
  // -> {dic: <Buffer>, aff: <Buffer>}
});

where:

  • dic is a Buffer for the dictionary file at index.dic (in UTF-8)
  • aff is a Buffer for the affix file at index.aff (in UTF-8).

Also, you can directly load the files, using the respective IETF BCP 47 language codes:

var path = require('path')
var base = path.dirname(require.resolve('dictionary-isv'));

// combined:
fs.readFileSync(path.join(base, 'dict/art-x-interslv.dic'), 'utf-8')
fs.readFileSync(path.join(base, 'dict/art-x-interslv.aff'), 'utf-8')

// etymological:
fs.readFileSync(path.join(base, 'dict/art-Latn-x-interslv-etymolog.dic'), 'utf-8')
fs.readFileSync(path.join(base, 'dict/art-Latn-x-interslv-etymolog.aff'), 'utf-8')

// Latin:
fs.readFileSync(path.join(base, 'dict/art-Latn-x-interslv.dic'), 'utf-8')
fs.readFileSync(path.join(base, 'dict/art-Latn-x-interslv.aff'), 'utf-8')

// Cyrillic:
fs.readFileSync(path.join(base, 'dict/art-Cyrl-x-interslv.dic'), 'utf-8')
fs.readFileSync(path.join(base, 'dict/art-Cyrl-x-interslv.aff'), 'utf-8')

License

Acknowledgements

The original README: Titus Wormer.


Keywords

FAQs

Package last updated on 12 Feb 2022

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