Skip to content

hashobject/time-to-read

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

time-to-read

Clojure library for estimating text's time to read. Inspired by time to read feature on Medium.

Build Status Dependencies Status Downloads

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.

Install

[time-to-read "0.1.0"]

Usage

user=> (use 'time-to-read.core)
nil
user=> (estimate-for-text "$SOME_TEXT_SHOULD_GO_HERE" 200)
1
user=> (estimate 900 200)
4

Contributions

We love contributions. Please submit your pull requests.

License

Copyright © 2013-2015 Hashobject Ltd ([email protected]).

Distributed under the Eclipse Public License.

About

Clojure library for estimating text's time to read

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published