Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/styles/.vale-config/0-irwell.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
StylesPath = styles

MinAlertLevel = suggestion

[*.md]
BasedOnStyles = Irwell
16 changes: 16 additions & 0 deletions .github/styles/Irwell/Spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
extends: spelling
message: |
Did you really mean '%s'?

If intentional, try code/bold formatting.

# Further details:
# For UI elements, use bold formatting.
#
# For paths; configuration; user input; code; class, method, and variable names; statuscodes; and console output, use code formatting.
#
# The spell checker doesn't check words with bold or code formatting.
level: error
dictionaries:
- en_GB
dicpath: config/dictionaries/
8 changes: 8 additions & 0 deletions .github/styles/Readability/AutomatedReadability.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: metric
message: "Try to keep the Automated Readability Index (%s) below 8."
link: https://en.wikipedia.org/wiki/Automated_readability_index

formula: |
(4.71 * (characters / words)) + (0.5 * (words / sentences)) - 21.43

condition: "> 8"
8 changes: 8 additions & 0 deletions .github/styles/Readability/ColemanLiau.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: metric
message: "Try to keep the Coleman–Liau Index grade (%s) below 9."
link: https://en.wikipedia.org/wiki/Coleman%E2%80%93Liau_index

formula: |
(0.0588 * (characters / words) * 100) - (0.296 * (sentences / words) * 100) - 15.8

condition: "> 9"
8 changes: 8 additions & 0 deletions .github/styles/Readability/FleschKincaid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: metric
message: "Try to keep the Flesch–Kincaid grade level (%s) below 8."
link: https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests

formula: |
(0.39 * (words / sentences)) + (11.8 * (syllables / words)) - 15.59

condition: "> 8"
8 changes: 8 additions & 0 deletions .github/styles/Readability/FleschReadingEase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: metric
message: "Try to keep the Flesch reading ease score (%s) above 70."
link: https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests

formula: |
206.835 - (1.015 * (words / sentences)) - (84.6 * (syllables / words))

condition: "< 70"
8 changes: 8 additions & 0 deletions .github/styles/Readability/GunningFog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: metric
message: "Try to keep the Gunning-Fog index (%s) below 10."
link: https://en.wikipedia.org/wiki/Gunning_fog_index

formula: |
0.4 * ((words / sentences) + 100 * (complex_words / words))

condition: "> 10"
17 changes: 17 additions & 0 deletions .github/styles/Readability/LIX.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
extends: metric
message: "Try to keep the LIX score (%s) below 35."

link: https://en.wikipedia.org/wiki/Lix_(readability_test)
# Very Easy: 20 - 25
#
# Easy: 30 - 35
#
# Medium: 40 - 45
#
# Difficult: 50 - 55
#
# Very Difficult: 60+
formula: |
(words / sentences) + ((long_words * 100) / words)

condition: "> 35"
8 changes: 8 additions & 0 deletions .github/styles/Readability/SMOG.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: metric
message: "Try to keep the SMOG grade (%s) below 10."
link: https://en.wikipedia.org/wiki/SMOG

formula: |
1.0430 * math.sqrt((polysyllabic_words * 30.0) / sentences) + 3.1291

condition: "> 10"
4 changes: 4 additions & 0 deletions .github/styles/Readability/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"feed": "https://github.com/errata-ai/Readability/releases.atom",
"vale_version": ">=2.13.0"
}
3 changes: 3 additions & 0 deletions .github/styles/config/dictionaries/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# en_GB dictionaries

We are using [LibreOffice's open source Hunspell compatible dictionaries](https://github.com/LibreOffice/dictionaries/tree/master/en).
Loading