I'm trying this package but the console message is never shown
const nspell = require('nspell')
const dictionaryPt = require('dictionary-pt')
function testSpell(txt){
dictionaryPt((error, pt) => {
if (error) throw error
var spell = nspell(pt)
console.log(spell.suggest(txt))
})
}
testSpell("Maquina")
dictionary-pt: "^3.1.0",
nspell: "^2.1.5"
I checked the programs stucks at var spell = nspell(pt) line. Any idea what's wrong?
I'm trying this package but the console message is never shown
const nspell = require('nspell')
const dictionaryPt = require('dictionary-pt')
dictionary-pt: "^3.1.0",
nspell: "^2.1.5"
I checked the programs stucks at
var spell = nspell(pt)line. Any idea what's wrong?