MCPcopy Create free account
hub / github.com/vale-cli/vale / Readability

Struct Readability

internal/check/readability.go:13–20  ·  view source on GitHub ↗

Readability checks the reading grade level of text.

Source from the content-addressed store, hash-verified

11
12// Readability checks the reading grade level of text.
13type Readability struct {
14 Definition `mapstructure:",squash"`
15 // `metrics` (`array`): One or more of Gunning Fog, Coleman-Liau,
16 // Flesch-Kincaid, SMOG, and Automated Readability.
17 Metrics []string
18 // `grade` (`float`): The highest acceptable score.
19 Grade float64
20}
21
22// NewReadability creates a new `readability`-based rule.
23func NewReadability(_ *core.Config, generic baseCheck, path string) (Readability, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected