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

Could you please compile a PL dictionary? #79

Closed
bartosz-antosik opened this issue Mar 23, 2017 · 9 comments
Closed

Could you please compile a PL dictionary? #79

bartosz-antosik opened this issue Mar 23, 2017 · 9 comments

Comments

@bartosz-antosik
Copy link

This is related to the discussion about #20266.

I started digging into cspell-tools but then, at the very beginning, decided to ask you: Could you please compile Polish dictionary for me? You can download it here, both DIC and AFF files. Beware, it's big: 300K word roots plus large affixes base.

I would love to see how does your implementation compare to hunspell.

@Jason3S
Copy link
Collaborator

Jason3S commented Mar 24, 2017

I just now setup a package on npm:
https://www.npmjs.com/package/cspell-dict-pl_pl

See if that works for you.

@bartosz-antosik
Copy link
Author

It seems like it has installed correctly a aside cspell, cspell-lib, cspell-trie etc. What should I put in "cSpell.language" to make it spell in polish? Seems that neither "pl_pl" nor "Polish" work.

@Jason3S
Copy link
Collaborator

Jason3S commented Mar 24, 2017

The way I described it, Polish is always on.

If it doesn't load, you will see something like this in the VSCode Output:

[Error - 5:10:59 PM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Unknown file format
  Code: -32603 

Yes, it is a poor error message. That needs some work.

If you do a:

npm install -g cspell-dict-pl_pl

Then something like this can be added to your user settings:

"cSpell.dictionaryDefinitions": [
    { "name": "Polish", "path": "/usr/local/lib/node_modules/cspell-dict-pl_pl/pl_pl.trie.gz"}
],
"cSpell.dictionaries": [
    "Polish"
],

You will need to change the path to match the location on your machine.

@Jason3S
Copy link
Collaborator

Jason3S commented Mar 24, 2017

Example of what it looks like for me:

image

I don't know what the words mean, so please forgive me if it is something strange.

@Jason3S
Copy link
Collaborator

Jason3S commented Mar 24, 2017

I am working on a way to make this easier, but for now only edit .json is possible.

I would like to have some UI that allows you to pick which dictionaries you want active.

@bartosz-antosik
Copy link
Author

OK, it is working fine. Thanks. I will try to perform some tests.

Is this compiled dictionary created using all of the affixes?

@Jason-Rev
Copy link
Collaborator

Jason-Rev commented Mar 24, 2017 via email

@Jason3S
Copy link
Collaborator

Jason3S commented Apr 2, 2017

I'm going to close this. Let me know if you see any issues.

@Jason3S Jason3S closed this as completed Apr 2, 2017
@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants