-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Add spell checker action WordWarden #1239
Conversation
f050d50
to
f83120a
Compare
Hi :) This seems very usable, especially that there is a cli-tool so one doesn't have to wait for the action to process 👍 @leiserfg WDYT? |
This is mostly fine and mergeable but I noticed at least one link wrong: |
Hey, thanks for checking it! The link in
looks like this in the generated docs:
The backticks were added by me, and they explains why it breaks. I also agree that backticks is not the 'right' way to solve this 'spelling error'. Basically there are three other choices:
I'll also check for similar broken link cases after hearing what solution you prefer. |
Option 2 seems fine to me, let's wait for @L3MON4D3 |
Thank you for the detailed reply (and @leiserfg for taking a look ❤️)! I agree, option 2 is fine :) |
b577429
to
91287d5
Compare
Great! I've updated the PR. I also double checked that there are no other similar issues. |
4822a08
to
46c45ad
Compare
Is there a way to exempt links (the same way it happens with inline code)? So other links don't need to be changed (like vsnip.vim). |
It's possible to add a pre-processing sed script. So it would be possible to replace the pattern I think the easiest thing would be to just add This can also be done much cleaner, with all the benefits that come with using a loader, by using the [loader for Lua](https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#lua) so that it's "Lua" instead of "lua". If you agree that that is preferrable, I can remove the backticks from link texts. |
Yeah I'd agree, spellchecking in links ist useful, if they contain a word that is misspelled it should be corrected. |
c69390c
to
9487924
Compare
I've added a fixup commit which removes backticks from repo names. If it looks good, I can squash. |
Good choice, that seems more consistent👍 |
5c8889f
to
1707586
Compare
Done |
Awesome, thank you very much for the contribution! :) |
Hi I was searching for something else in the issues and noticed you guys were considering options for spellcheckers in #1189. So I thought I'd suggest my own action. It basically does pre-processing by converting to HTML and removing code and links, then runs aspell on it. It's possible to run offline by using the script https://github.com/gevhaz/Word-Warden/blob/main/spellcheck.py
My action seems to discover more spelling issues than the one in #1189, for better or for worse (it can be annoying with too many false positives). I tried either adding them to a dictionary or 'correcting' them so that the job passes. In the case of words that are arguably 'code', such as as
trigEngine
, I fix the issue by adding backticks, since inline code will be removed in the preprocessing.These things can be very subjective and I'm not attached to any choice between 'fixing' a word or adding it to the dictionary.
If you think that the changes I made to the markdown files are an improvement, consider merging this PR. Otherwise feel free to close it or ask for changes.