Generate Word Count and Reading Time for Posts in Rails

A few weeks ago, I watched a video from Dean at Deanin on YouTube where he showed how to use StimulusJS to generate reading times for posts/articles in his demo application. In his video, he used a split method to…