localgovdrupal / localgov

Installation profile for the LocalGov Drupal distribution.
GNU General Public License v2.0
82 stars 18 forks source link

Install content readability modules #701

Open willguv opened 4 months ago

willguv commented 4 months ago

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

markconroy commented 4 months ago

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.

andybroomfield commented 4 months ago

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);