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

Support namespaced dictionary packages #3376

Open
Stealthii opened this issue Mar 4, 2024 · 1 comment
Open

Support namespaced dictionary packages #3376

Stealthii opened this issue Mar 4, 2024 · 1 comment

Comments

@Stealthii
Copy link

In an attempt to clean up common acronym and product name misspellings across various projects, it would be nice to provide auto-discovery of namespaced packages that contain dictionary definitions of various spellings.

As an example for the FooBar company, if I wanted to include a pre-commit dependency foobar-codespell, that provided the following dictionaries under a namespace:

src/codespell/contrib/foobar/__init__.py  # potential required export definitions
src/codespell/contrib/foobar/data/dictionary.txt
src/codespell/contrib/foobar/data/dictionary_product.txt

References to these as an aside to builtin via a new option contrib, such as the following:

builtin = "clear,usage,en-GB_to_en-US"
contrib = "foobar,foobar.product"
@Stealthii
Copy link
Author

This is a feature request, not a bug. The implementation specifics do not need to match my example, but I'm interested in discussion on how this could work, if the project was to consider such a feature.

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

1 participant