Estimate the reading time of HTML and plain text using Ruby