Files
archie/.vale/styles/Archie/Readability.yml
T

22 lines
1.1 KiB
YAML

# Calibrated for developer documentation: crisp technical docs with domain
# terminology typically score 8-11 on Flesch-Kincaid; higher scores usually
# signal dense paragraphs that benefit from simpler structure.
extends: metric
message: "Try to keep the Flesch-Kincaid grade level (%s) at or below 11."
link: https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests
level: warning
formula: |
(0.39 * (words / sentences)) + (11.8 * (syllables / words)) - 15.59
condition: "> 11"
tests:
- name: flags dense technical prose
input: |
Notwithstanding architectural encapsulation prerequisites, interdepartmental orchestration mechanisms necessitate comprehensive deterministic authentication verification across heterogeneous distributed administrative infrastructures.
want: |
1:1:Archie.Readability:Try to keep the Flesch-Kincaid grade level (42.40) at or below 11.
- name: accepts clear technical prose
input: |
A source receives events and checks their HMAC signature. A mapping extracts named fields from the payload. A binding selects the workflow to run.
want: ""