News for hackers. Stuff that matters.
Re:Show HN: Estimated Reading Time API by lucb1e on Friday February 19, 2016 @12:29PM (#11134886)
Why do we need an API for this? A library seems easier, and even that is a stretch for doing `$wordcount / 200 = minutes required to read`. Does this make an estimate of the article's complexity and adjust how many words a person reads per minute?

(Source for 200 words per minute: https://en.wikipedia.org/wiki/Words_per_minute#Reading_and_c... )

Re:Show HN: Estimated Reading Time API by mklopets on Friday February 19, 2016 @12:31PM (#11134908)
We definitely don't need an API. Then again, we basically don't need most APIs. This doesn't estimate the article's complexity as of now, but its main point is not just getting the length of the entire site, but locating the most likely main content area and THEN doing the /250.
Re:Show HN: Estimated Reading Time API by fweespeech on Friday February 19, 2016 @12:53PM (#11135112)
You can use something like:

https://github.com/grangier/python-goose

https://pypi.python.org/pypi/textstat/

+ using word counts that adjust for reading ease