Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

lightning-spell

0.3.0 • Public • Published

IN DEVELOPMENT DON'T USE !

lightning-spell

Spell checker and suggestions with lightning fast c++ sym spell engine.

Installing

npm install --save lightning-spell

Usage

const lightningSpell = new LightningSpell("test");
const defaultWordFrequency = 1;
        
lightningSpell.createDictionaryEntry('united state', defaultWordFrequency);
lightningSpell.createDictionaryEntry('united kingdom', defaultWordFrequency);

lightningSpell.isCorrectlySpelled('united state');
// Returns true

lightningSpell.isCorrectlySpelled('united stte');
// Returns false

lightningSpell.getSuggestions('united stte');
// Returns ["united state"]

Install

npm i lightning-spell

DownloadsWeekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

79.1 kB

Total Files

30

Last publish

Collaborators

  • avatar