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

[2.2.6] --ignore-words-list Nd has no effect, "Nd" is still reported as a typo #3233

Closed
hartwork opened this issue Nov 26, 2023 · 2 comments
Closed

Comments

@hartwork
Copy link

Hi!

Thanks for making and sharing codespell as Software Libre! 🙏 I'm happily using codespell in CI with libexpat (libexpat/libexpat#739).

I ran into an issue with recent codespell where two-letter word "Nd" in --ignore-words-list is ignored apparently. To reproduce:

# codespell --version
2.2.6

# cd "$(mktemp -d)"
# git clone --depth 1 https://github.com/tenox7/ttyplot
# cd ttyplot/
# codespell  --skip ./.git --ignore-words-list Nd
./ttyplot.1:6: Nd ==> And, 2nd

# sed -n 6p ttyplot.1
.Nd realtime terminal plotting utility

This seems like a bug in codespell?

For a workaround, is there some way I can make this work without sacrificing all typo detection for the man page?

Thanks and best, Sebastian

@DimitriPapadopoulos
Copy link
Collaborator

See #3210 which is itself a duplicate of a multitude of other issues.

@hartwork
Copy link
Author

@DimitriPapadopoulos thanks for your reply! It took me a bit to understand #3210 and how it would be related to my case given title "Case-sensitivity of ignored words" but now it's clear that to ignore Nd (with uppercase "N") I need to pass --ignore-words-list nd (with lowercase "n"). Good to know!

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

No branches or pull requests

2 participants