3 ## module for getting estimated time to read an article
7 ## READING_TIME in minutes
12 # first clean special symbols and lines with whitespace
13 wordcount=`sed -e 's/[^A-Za-z0-9 ]//g' -e '/^\s*$/d' "$1" | wc -w`
14 export READING_TIME=$(expr $(expr $wordcount + $wordsPerMinute) / $wordsPerMinute)