-
Notifications
You must be signed in to change notification settings - Fork 467
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
Is it possible to detect wrong spelled words like this: #6
Comments
Right now it's not possible. With the following patch it would detect misspellings, but it fixing the word doesn't work. If you find the right regex, I could apply this patch diff --git a/codespell.py b/codespell.py
|
Thank you. This patch works perfectly for my needs. Is it possible you apply this patch to mainline, because there is no reason against to always replace all '_' with ' ' before checking. |
Sorry, I can't... not until we find a proper solution to have "-w" argument working with that. |
Ok, i understand. Thank you for your help! |
$ more test.cpp
enum
{
ID_ESTABLISED = 0;
};
$ more dictionary.txt
establised->established
$ codespell.py dictionary.txt
$
In this case codespell does not detect the error. But if i remove the preceeding ID_ from the enum definition, codespell is able
to detect the error. Is it possible to detect the errror without modification of the code?
Many thanks in advance
Martin Ettl
The text was updated successfully, but these errors were encountered: