Closed marchezinixd closed 6 years ago
Well I found that i can pass a file in the local_dictionary, i tryed to pass one .dic that i download at https://www.karamasoft.com/UltimateSpell/Dictionary.aspx by i get the error
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)
You can load a new dictionary in, but it is actually more of a word frequency. So instead of it being a list of words (which you can also use by using the load_text
or load_text_file
functions) it would need to be in JSON format with the key the term and an int as the key or frequency.
A unicode error means that you are likely on python 2.7. Can you confirm which python version you are on?
Also, I am happy to support other dictionaries; PRs are appreciated!
I think we can close this, it's the same problem in https://github.com/barrust/pyspellchecker/issues/21
Hello,
I'm trying to use this library to fix typos done when adding additional information about a problem, but it's no restricted to english and spanish, we would like portuguese etc. Is there a way for me to download a dict and add it to the library?