Message
(
alt-text
, long-desc
) should not be too short (fewer than 5 words). Counted $word-length-min words.
(
alt-text
, long-desc
) should not be too short (fewer than 5 words). Counted $word-length-min words.
This rule REPORTS an alert when the following is TRUE:
let $word-length-min := min((count(local:normalize-words(.)), (string-length(local:normalize-text(.))
div 4.7 (: English average word length :) ))) return$word-length-min lt 5 and not(matches(normalize-space(), '^decorative\.$', 'i'))