Accessible writing: alt text, link text, heading structure, table headers, instructions that rely on color or position, a reading grade per paragraph, and an inclusive-language word list, from the parts of WCAG 2.2 that live in the text.
Add it to your .vale.ini, then run vale sync.
Packages = A11y
[*.md]
BasedOnStyles = Vale, A11y The name installs the latest release each time vale sync runs. To stay on v0.1.0, the release this page describes, give its URL instead:
Packages = https://github.com/jdkato/a11y/releases/download/v0.1.0/A11y.zip Consider '%s' instead of '%s'.
An image with no alt text. Describe what it shows, or, if it's decorative, write it as an HTML img with alt="".
Alt text '%s' is a file name. Describe the image.
Alt text of %s characters. Keep it under 125, and put the detail in the body or a caption.
An img without an alt attribute. Describe it, or mark it decorative with alt="".
Alt text '%s' describes nothing. Say what the image shows.
Alt text opens with '%s'. A screen reader already says it's an image; start with what it shows.
Consider '%s' instead of '%s'.
This paragraph reads at grade %s. The reading-level target is about grade 9; shorter sentences and plainer words bring it down.
%d words in a heading. Keep it short enough to skim.
%s top-level headings. A page has one; the rest are sections.
This heading skips a level. Screen reader users navigate by heading level; use the next one down.
'%s' says nothing about where the link goes. Name the page or the action.
A URL as link text. A screen reader spells it out; name the page instead.
Consider '%s' instead of '%s'.
'%s' points by color, shape, or position. Name the control, or add a label.
%d words in one sentence. Split it.
'%s' is in all caps. Use emphasis markup, which a screen reader can announce.
A table without a header row. A screen reader announces the header with each cell; give the first row th cells.