All Collections
Custom Check Library
Alt Text quality add-on checks
Search for unwanted language or characters in ALT Text
Search for unwanted language or characters in ALT Text
Certain language is not descriptive enough for users who are visually impaired. This check helps to uncover the usage of generic language.
Blaine Herman avatar
Written by Blaine Herman
Updated over a week ago

Type of policy: XPath

What it is used for: You might want to identify certain words or special characters that a digital camera might have added to default ALT text. The following example contains multiple checks, all in a single check. This example is looking for parentheses  (  and ) , underscore _ , the word Image  or the shortened version of image, img .

How to set it up:

  • Use XPath

  • Set policy to “Page contains" the Regular Expression

  • Add the following portions that you'd like to use (you can add or remove as needed)

//img[contains(@alt, '(') or contains(@alt, ')') or contains(@alt, '_') or contains(@alt, 'image') or contains(@alt, 'Image') or contains(@alt, 'img')]
Did this answer your question?