Skip to content

Commit 04fe2a1

Browse files
committedMar 17, 2022
Add test for CL
1 parent 8132595 commit 04fe2a1

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed
 

‎testdata/ColemanLiau/.vale.ini

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
StylesPath = ../../
2+
3+
MinAlertLevel = suggestion
4+
5+
[*.md]
6+
Readability.ColemanLiau = YES

‎testdata/ColemanLiau/test.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Example
2+
3+
The Flesch Reading Ease gives a text a score between 1 and 100, with 100 being
4+
the highest readability score. Scoring between 70 to 80 is equivalent to school
5+
grade level 8. This means text should be fairly easy for the average adult to
6+
read.
7+
8+
The formula was developed in the 1940s by Rudolf Flesch. He was a consultant
9+
with the Associated Press, developing methods for improving the readability of
10+
newspapers.
11+
12+
Now, over 70 years later, the Flesch Reading Ease is used by marketers,
13+
research communicators and policy writers, amongst many others. All use it to
14+
help them assess the ease by which a piece of text will be understood and
15+
engaged with.

‎testdata/test.ct

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
$ cdf ${ROOTDIR}/LIX
22
$ vale --output=line --sort --normalize --relative test.md
3-
test.md:1:1:Readability.LIX:Try to keep the LIX score (38.27) below 35.
3+
test.md:1:1:Readability.LIX:Try to keep the LIX score (38.27) below 35.
4+
5+
$ cdf ${ROOTDIR}/ColemanLiau
6+
$ vale --output=line --sort --normalize --relative test.md
7+
test.md:1:1:Readability.ColemanLiau:Try to keep the Coleman–Liau Index grade (9.58) below 9.

0 commit comments

Comments
 (0)
Please sign in to comment.