michael-lynch/reading-time — pull request #12 by stevelacey (2014-06-04 21:12:48+00:00)
Title: Improved total words calculation

If the target is a complex DOM node, the amount of chained whitespace can be quite significant. I've seen it double the estimated word count because of the way the total is calculated here, this change yields far more accurate counts.