diff options
Diffstat (limited to 'public/vale/.vale-styles/Readability')
8 files changed, 69 insertions, 0 deletions
diff --git a/public/vale/.vale-styles/Readability/AutomatedReadability.yml b/public/vale/.vale-styles/Readability/AutomatedReadability.yml new file mode 100644 index 0000000..dd9fe66 --- /dev/null +++ b/public/vale/.vale-styles/Readability/AutomatedReadability.yml @@ -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" diff --git a/public/vale/.vale-styles/Readability/ColemanLiau.yml b/public/vale/.vale-styles/Readability/ColemanLiau.yml new file mode 100644 index 0000000..3d56c6a --- /dev/null +++ b/public/vale/.vale-styles/Readability/ColemanLiau.yml @@ -0,0 +1,8 @@ +extends: metric +message: "Try to keep the Coleman–Liau Index grade (%s) below 19." +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" diff --git a/public/vale/.vale-styles/Readability/FleschKincaid.yml b/public/vale/.vale-styles/Readability/FleschKincaid.yml new file mode 100644 index 0000000..3f60f20 --- /dev/null +++ b/public/vale/.vale-styles/Readability/FleschKincaid.yml @@ -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" diff --git a/public/vale/.vale-styles/Readability/FleschReadingEase.yml b/public/vale/.vale-styles/Readability/FleschReadingEase.yml new file mode 100644 index 0000000..6179766 --- /dev/null +++ b/public/vale/.vale-styles/Readability/FleschReadingEase.yml @@ -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" diff --git a/public/vale/.vale-styles/Readability/GunningFog.yml b/public/vale/.vale-styles/Readability/GunningFog.yml new file mode 100644 index 0000000..302c0ee --- /dev/null +++ b/public/vale/.vale-styles/Readability/GunningFog.yml @@ -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" diff --git a/public/vale/.vale-styles/Readability/LIX.yml b/public/vale/.vale-styles/Readability/LIX.yml new file mode 100644 index 0000000..f5b0f4e --- /dev/null +++ b/public/vale/.vale-styles/Readability/LIX.yml @@ -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" diff --git a/public/vale/.vale-styles/Readability/SMOG.yml b/public/vale/.vale-styles/Readability/SMOG.yml new file mode 100644 index 0000000..e7f5913 --- /dev/null +++ b/public/vale/.vale-styles/Readability/SMOG.yml @@ -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" diff --git a/public/vale/.vale-styles/Readability/meta.json b/public/vale/.vale-styles/Readability/meta.json new file mode 100644 index 0000000..0ff71c3 --- /dev/null +++ b/public/vale/.vale-styles/Readability/meta.json @@ -0,0 +1,4 @@ +{ + "feed": "https://github.com/errata-ai/Readability/releases.atom", + "vale_version": ">=2.13.0" +}
\ No newline at end of file |