Skip to content

How does it work?

Mislav Vuletić edited this page Jul 15, 2021 · 1 revision

Choosing a typing test

  • from a file by using the flags --input/-i or --test e.g. typetest -i ~/tmp.txt
  • by redirecting a text file into typetest by using the < shell operator e.g. typetest < ~/tmp.txt
  • by piping text into it by using the | shell operator e.g. cat tmp.txt | typetest

Storing results

Typetest stores different types of results after each typing test.

  • character speeds are stored in the char_speeds.csv file
  • word speeds are stored in the word_speeds.csv file
  • mistyped words are stored in the mistyped_words.csv file
  • test speed is stored in the results.csv file

By default, these files are located where ever you installed typetest. If you installed it using pip they probably in ~/.local/lib/python3.9/site-packages/typetest/results. You can specify a different location in a keyword argument or in the config file.

char_speeds.csv

char,duration[seconds],speed[wpm],timestamp
o,0.09359264373779297,128.21520496438725,05/01/2021 11:12:19
m,0.0007371902465820312,16278.023285899095,05/01/2021 11:12:19
e,0.09922480583190918,120.9375004505273,05/01/2021 11:12:19
o,0.0694437026977539,172.80184572283946,05/01/2021 11:12:19
n,0.03977012634277344,301.73401755311494,05/01/2021 11:12:19
e,0.09994769096374512,120.06280369551372,05/01/2021 11:12:19
 ,0.0806574821472168,148.77727001318348,05/01/2021 11:12:19

word_speeds.csv

word,duration[seconds],speed[wpm],timestamp
mother,0.5621612071990967,128.07714064570854,05/01/2021 11:12:19
today,0.5436687469482422,110.36131897740309,05/01/2021 11:12:19
want,0.3485288619995117,137.72173622759325,05/01/2021 11:12:19
dead,0.4929375648498535,97.3754151088497,05/01/2021 11:12:19
plastic,0.7052490711212158,119.10685662649014,05/01/2021 11:12:19
story,0.5420382022857666,110.69330491279202,05/01/2021 11:12:19

mistyped_words.csv

test_word,typed_word,timestamp
pupil,pupi.,05/01/2021 11:12:19
same,smae,05/01/2021 11:12:19
die,diea,05/01/2021 11:12:19
remember,rememver,05/01/2021 11:12:19
lose,ose,05/01/2021 11:12:19
six,sicx,05/01/2021 13:36:16

results.csv

timestamp,speed[wpm],accuracy[%],duration[seconds],expected_duration[seconds],test_hash
08/11/2020 20:46:43,80,96,59.349228382110596,60.0,275eb003c4fba77d7e61893c3d9fa869822e06c8
08/11/2020 20:48:19,76,93,59.479318618774414,60.0,275eb003c4fba77d7e61893c3d9fa869822e06c8
10/11/2020 19:54:38,79,97,59.63251304626465,60.0,275eb003c4fba77d7e61893c3d9fa869822e06c8
Clone this wiki locally