Clojure library for estimating text's time to read. Inspired by time to read feature on Medium.
Calculation is done in very simple way:
time-to-read = word-count / words-per-minute
where
- word-count - number of words in the text
- words-per-minute - speed of reading. Default is 200 words per minute. This is customizable.
Output of this calculation is estimated number of minutes for reading of the text. Ceiling is used as rounding method.
[time-to-read "0.1.0"]
user=> (use 'time-to-read.core)
nil
user=> (estimate-for-text "$SOME_TEXT_SHOULD_GO_HERE" 200)
1
user=> (estimate 900 200)
4
We love contributions. Please submit your pull requests.
Copyright © 2013-2015 Hashobject Ltd ([email protected]).
Distributed under the Eclipse Public License.