Comments (7)
Fixed now. Thanks.
from codespell.
That was fast!
Thanks, but it seem that if two words are speparated by a '-' it codespell does not detect it correctly.
$ tail test.txt
multy-thread
$ tail dict.txt
multy-thread->multithread
$ ./codespell.py dict.txt test.txt
$
from codespell.
Are you using the correct version? I just fixed codespell to allow hiphens:
$ cat /tmp/a.txt2
multy-thread
$ ./codespell.py data/dictionary.txt /tmp/a.txt2
/tmp/a.txt2:1: multy-thread ==> multithread
from codespell.
Thanks, i updated the version and now it works.
Thank you for your help!
Best regards
Martin
from codespell.
Whait,
now the rest of the dictionary files are not detected anymore.
Try reverting to recent version
rx = re.compile(r"[\w']+")
and current head
rx = re.compile(r"[\w-']+")
With the current version, multy-thread is detected, but all other entries are ignored.
from codespell.
ahn? it works just fine here. your revert to recent version is wrong... there's a trailing slash.
$ cat /tmp/a.txt2
multy-thread
licenced
worls
$ ./codespell.py data/dictionary.txt /tmp/a.txt2
/tmp/a.txt2:1: multy-thread ==> multithread
/tmp/a.txt2:2: licenced ==> licensed
/tmp/a.txt2:3: worls ==> world
from codespell.
Ah, thanks again, my fault! It works perfectly now.
from codespell.
Related Issues (20)
- Feature Request: Ignore URL/URIs by default? HOT 2
- codespell exits brutally on ill-formed config file
- .codespellrc file doesn't work HOT 8
- Codespell don't handle KeyboardInterrupt exception
- "--interactive" useless without "-w" HOT 1
- Feature Request: "--builtin=all"
- Feature request: support for lapce editor HOT 3
- Share dictionaries with typos?
- False positive with accented last name HOT 6
- Does `.codespellrc` support comments? HOT 2
- [2.2.6] `--ignore-words-list Nd` has no effect, "Nd" is still reported as a typo HOT 2
- [wishlist]: annotate PDFs
- [wishlist]: Add a way to enter an alternative word in "Choose an option (blank for none):
- [wishlist]: Add a way to enter an alternative word in "Choose an option (blank for none):"
- codespell complains about its `ignore-words-list` in pyproject.toml HOT 5
- Reports spelling error in a format string HOT 4
- RFC: improve diagnostic formatting HOT 4
- How do I found error: OnwerName ==> OwnerName ? HOT 1
- Repo-Review
- Missing typos in dictionary.txt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codespell.