Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the dictionary-hu throwing error. #27

Closed
dskesavan opened this issue Mar 19, 2021 · 2 comments
Closed

Using the dictionary-hu throwing error. #27

dskesavan opened this issue Mar 19, 2021 · 2 comments

Comments

@dskesavan
Copy link

Code:
var dictionary = require('dictionary-hu')
var nspell = require('nspell')
dictionary(ondictionary)
function ondictionary(err, dict) {
if (err) {
throw err
}
var spell = nspell(dict)
console.log(spell.correct('Szerelem'))
}

Error:
C:\Program Files\nodejs\node.exe .\test.js
Process exited with code 3221225477

@wooorm
Copy link
Owner

wooorm commented Mar 20, 2021

You’re probably running out of memory. Set the --max-old-space-size=SIZE flag when running Node: https://nodejs.org/api/cli.html#cli_max_old_space_size_size_in_megabytes

@wooorm
Copy link
Owner

wooorm commented Mar 20, 2021

This is also probably more an issue for nspell

@wooorm wooorm closed this as completed Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants