localgov icon indicating copy to clipboard operation
localgov copied to clipboard

Install content readability modules

Open willguv opened this issue 1 year ago • 2 comments

Mentioned at LGD camp, content designers may benefit from automatic calculation of a page's reading age

We should test https://www.drupal.org/project/content_readability for starters

willguv avatar May 08 '24 09:05 willguv

The content readability module currently only supports a body field. It won't work on any other field that we have - e.g. page components, teaser fields, image caption, etc.

Until it's more fleshed out, I don't think it's work us installing.

This module on Drupal looks interesting: Reading Rating - https://www.drupal.org/project/reading_rating

It's only installed on one site, which is a concern - you'd like it to be more battle-tested before we add it to LGD. However, it is being developed by Four Kitchens who are a very reputable Drupal agency, so perhaps is worth trying out.

=== Thanks to Big Blue Door for sponsoring my time to work on this.

markconroy avatar May 22 '24 11:05 markconroy

From https://github.com/localgovdrupal/localgov/issues/539#issuecomment-1563184538 How hard would it be to write a small module that implements the JS included there.

let level = Math.round(4.71 * (letters / words) + 0.5 * words / sentences — 21.43);

andybroomfield avatar May 22 '24 12:05 andybroomfield