Commit fac712a 1 parent 0c87806 commit fac712a Copy full SHA for fac712a
File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,35 @@ body’s reading level.
110
110
This plugin works on a per-sentence basis and that makes the results quite
111
111
skewered when a short sentence has a few long words or some unknown ones.
112
112
113
+ ### Messages
114
+
115
+ Each message is emitted as a [ ` VFileMessage ` ] [ message ] on ` file ` , with the
116
+ following fields:
117
+
118
+ ###### ` message.source `
119
+
120
+ Name of this plugin (` 'retext-readability' ` ).
121
+
122
+ ###### ` message.ruleId `
123
+
124
+ Name of this rule (` 'readability' ` ).
125
+
126
+ ###### ` message.actual `
127
+
128
+ Current not ok sentence (` string ` ).
129
+
130
+ ###### ` message.expected `
131
+
132
+ Empty array as there is no direct fix for ` actual ` (` [] ` ).
133
+
134
+ ###### ` message.confidence `
135
+
136
+ Number between ` 0 ` and ` 1 ` to represent how many algorithms agreed (` number ` ).
137
+
138
+ ###### ` message.confidenceLabel `
139
+
140
+ String representing the fraction of ` confidence ` (` string ` , such as ` 4/7 ` ).
141
+
113
142
## Related
114
143
115
144
* [ ` retext-syntax-mentions ` ] ( https://github.com/retextjs/retext-syntax-mentions )
@@ -177,6 +206,8 @@ abide by its terms.
177
206
178
207
[ retext ] : https://github.com/retextjs/retext
179
208
209
+ [ message ] : https://github.com/vfile/vfile-message
210
+
180
211
[ dale-chall ] : https://github.com/words/dale-chall-formula
181
212
182
213
[ automated-readability ] : https://github.com/words/automated-readability
You can’t perform that action at this time.
0 commit comments