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

Question: how can I create a space seperated word in a dictionary? #3342

Closed
commodis opened this issue Jan 30, 2024 · 1 comment
Closed

Question: how can I create a space seperated word in a dictionary? #3342

commodis opened this issue Jan 30, 2024 · 1 comment
Labels

Comments

@commodis
Copy link

cat dictionary.txt
"mime type"->mediatype
mime type->mediatype

cat example.txt
In this line the mime type should be called media type.

codspell --dictionary dictionary.txt

does not match against a file containing mime type.

Is this currently possible? Looking at #3305 (comment) it seems not possible because it parses by words and thus only the words mime and type are identified and the context is lost?

@DimitriPapadopoulos
Copy link
Collaborator

Indeed, codespell currently operates on single words. Operating on N-grams would be a nice improvement, but that would be a major change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants