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

What should/does the cpp dictionary contain #54

Closed
nschonni opened this issue Mar 8, 2019 · 6 comments
Closed

What should/does the cpp dictionary contain #54

nschonni opened this issue Mar 8, 2019 · 6 comments

Comments

@nschonni
Copy link
Collaborator

nschonni commented Mar 8, 2019

I was looking to see if I could clean up the cpp dictionary since i've hit a few questions. It looks like it was probably sourced from some header files for some different things (EX: found that a chunk was from the CUPS printer header files).
I'm wondering what should be in here?

  • CPP keywords
  • standard library headers
  • other headers

I'll submit some PRs for some things, but I was wondering if these should get split into separate files, then rejoined at the compile time.

@d2s
Copy link
Contributor

d2s commented Mar 8, 2019

Makes sense to split the dictionary to smaller parts. Would it be a good idea to have more specific subsets as a separate dictionaries, so that potential users could only load those sets that they most likely need?

@Jason3S
Copy link
Collaborator

Jason3S commented May 5, 2019

Please feel free to clean it up. The original was sourced from XCode header files.

@Jason3S
Copy link
Collaborator

Jason3S commented Jan 22, 2020

To have better support for compound words and checking case, version 5 of the spell checker will support a simple dictionary definition syntax: cspell/wordlists.md at master · streetsidesoftware/cspell

I want to turn of allowCompoundWords for the C/C++ and Python dictionaries since it leads to a lot of false negatives (meaning it allows strange misspelled words).

So, what should be in the cpp dictionary?

  • Common library functions / methods / constants
  • Common variable name constructs *error*, *msg*, *adr* etc. so that words like errormsg` are considered correct.

@david-fong
Copy link
Contributor

david-fong commented May 20, 2022

I have started some work on this here.

I have a file for keywords and basic vocabulary, files for the standard library functions and constants (I manually went through all the standard library documentation pages on cppreference; I may have missed a couple things by accident though), a file for jargon, a file for notable people in the ecosystem, keywords and names of tools in the ecosystem, and I'm working on a file for the boost library.

My repo is licensed as public domain.

Let me know if there's any way I can help integrate this work into this repo.

@Jason3S
Copy link
Collaborator

Jason3S commented May 20, 2022

@david-fong,

Very cool!. Please feel free to make a PR updating dictionaries/cpp by adding a src directory and putting your files there.

@david-fong
Copy link
Contributor

I feel like this issue can be closed now. @Jason3S do you think so? For anyone who finds this thread in the future, the next step right now is #1167.

@Jason3S Jason3S closed this as completed Jun 29, 2022
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

4 participants