UNPKG

nodehun

Version:

The Hunspell binding for nodejs that exposes as much of hunspell as possible and also adds new features. Hunspell is a first class spellcheck library used by Google, Apple, and Mozilla.

13 lines (12 loc) 410 B
const fs = require('fs') const path = require('path') module.exports = { en_US: { affix: fs.readFileSync(path.resolve(__dirname, './en_US.aff')), dictionary: fs.readFileSync(path.resolve(__dirname, './en_US.dic')) }, en_CA: { affix: fs.readFileSync(path.resolve(__dirname, './en_CA.aff')), dictionary: fs.readFileSync(path.resolve(__dirname, './en_CA.dic')) } }