# Python Estimate Reading Time by Word Amounts – Machine Learning Tutorial

By | July 23, 2019

One of important functionality is to estimate reading time by word amounts in wordpress, in this tutorial, we will introduce how to estimate it. You can learn and do step by step.

## Relation between word numbers  and reding senconds.

Here is a relation table.

 Word Numbers Reading Senconds 130 60 260 120 390 180 520 240 650 300 780 360 910 420 1040 480 1170 540 1300 600 1430 660 1560 720 1690 780 1820 840 1950 900 2080 960 2210 1020 2340 1080 2470 1140 2600 1200

To estimate the reading time, we can use excel. Then we can get the estimate formula is:

y = 0.4615x

where x is word number, y is reading time.

as to minute, it will be

y = (0.4615/60)x

As to python, we can define a functionto calculate.

def estimateReadingtime(words_number):
return reading
words_number = 1230
print(str(reading_time) + " minutes")