Skip to content

Commit

Permalink
Adds Readability levels
Browse files Browse the repository at this point in the history
  • Loading branch information
rachfop committed Jan 2, 2024
1 parent 539608d commit a2275b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ StylesPath = vale/styles
MinAlertLevel = suggestion
Packages = Google, proselint
[*]
BasedOnStyles = Vale, Google, proselint
BasedOnStyles = Vale, Google, proselint, Readability
8 changes: 8 additions & 0 deletions vale/styles/Readability/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"

0 comments on commit a2275b5

Please sign in to comment.