Anyone having any leads on a 'reading time algorithm'?

后端 未结 3 1403
甜味超标
甜味超标 2021-01-19 18:48

Just curious how to calculate the length of time it would take someone to read a paragraph with x characters and/or y words. Any thoughts on this?

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-19 18:58

    I used an approximate 233 words per minute reading time as shown in the fiddle HERE.

    Rounded up the result to one decimal using readingtime = +readingtime.toFixed(1);.

    Cross checked the result with MS Word count and seems acceptable. Did also some stopwatch timing with reading time and seems reasonable.

    The code for word count was taken from stackoverflow

    Late response but hope it helps!

提交回复
热议问题