Skip to content

Commit

Permalink
Add test for CL
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Mar 17, 2022
1 parent 8132595 commit 04fe2a1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
6 changes: 6 additions & 0 deletions testdata/ColemanLiau/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
StylesPath = ../../

MinAlertLevel = suggestion

[*.md]
Readability.ColemanLiau = YES
15 changes: 15 additions & 0 deletions testdata/ColemanLiau/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Example

The Flesch Reading Ease gives a text a score between 1 and 100, with 100 being
the highest readability score. Scoring between 70 to 80 is equivalent to school
grade level 8. This means text should be fairly easy for the average adult to
read.

The formula was developed in the 1940s by Rudolf Flesch. He was a consultant
with the Associated Press, developing methods for improving the readability of
newspapers.

Now, over 70 years later, the Flesch Reading Ease is used by marketers,
research communicators and policy writers, amongst many others. All use it to
help them assess the ease by which a piece of text will be understood and
engaged with.
6 changes: 5 additions & 1 deletion testdata/test.ct
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
$ cdf ${ROOTDIR}/LIX
$ vale --output=line --sort --normalize --relative test.md
test.md:1:1:Readability.LIX:Try to keep the LIX score (38.27) below 35.
test.md:1:1:Readability.LIX:Try to keep the LIX score (38.27) below 35.

$ cdf ${ROOTDIR}/ColemanLiau
$ vale --output=line --sort --normalize --relative test.md
test.md:1:1:Readability.ColemanLiau:Try to keep the Coleman–Liau Index grade (9.58) below 9.

0 comments on commit 04fe2a1

Please sign in to comment.