-
Notifications
You must be signed in to change notification settings - Fork 195
Adding vale for spell and style checking #519
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
Conversation
…es in the Structured patterns, some for the Initial patterns as well.
In the last commit I am trying out Vale, which can check both spelling and style apparently. |
Examples of repos using vale rather extensively: |
I have not been able to check for American English ( I was able to do that with Aspell - config in https://github.com/InnerSourceCommons/InnerSourcePatterns/blob/pyspelling/.pyspelling.yml#L5 |
From here:
So that means that vale will check for American English by default. However it turns out that the dictionary mentioned above contains words that we considered to be strictly British English, like Therefore we will check if we can find a As vale supports "Hunspell-compatible dictionaries", I am starting my search at https://github.com/hunspell/hunspell |
…lish spelling. Also adding some custom ISC rules.
I got vale to work mostly the way I wanted now. Some open questions:
Todos:
References:
|
This is great work! We're very excited to see how this goes and see what can also apply to the Learning Path! |
Thanks @rrrutledge. Now I just need to find time to get it to a state where it provides value (and can be merged). |
That makes sense and sounds like a good approach. |
… spell-checker" This reverts commit 02ad1b2.
Updated the main description of this PR to reflect the status quo (switching implementation from pyspelling to vale). |
This is a long standing branch, and the actual spelling fixes introduced here are mostly trivial (mostly switching BE spelling to AE spelling + some other glitches). Therefore I am opting to merge this now, so that we can get more working experience with this on branches of other contributors (i.e. how is the style/spell checking experience for them). For further details about the approach with vale also see https://github.com/InnerSourceCommons/isc-styles |
Adds a spellchecker for our patterns.
For now, only the English version of our structured patterns located in
/patterns/2-structured/
.I opted to ignore the patterns of lower maturity for now, i.e.
/patterns/1-initial/
, as it would have been a lot more work to get the spellchecker to pass on those. It is not clear when those pattern will be leveled up to be published in our book, therefore it isn't as important that their spelling is 100% correct right now.For more info about the spellchecking approach see
.vale.ini
as well as the isc-styles that I created for this purposes.Key parts of the implementation
/.github
folder)Observations
My goal was to keep the custom dictionary extensions (wordlists) to a minimum.
i.e. for the most part I tried to fix the wording in the patterns. If that wasn't possible, I added custom words to a wordlist, so that the spellchecker will accept those as well.
Many of those custom words are org and author names that are mentioned in our patterns.
The rest are words and acronyms that are used frequently in software development but are apparently not proper words.
References