bragefuglseth / keypunch

Practice your typing skills
GNU General Public License v3.0
133 stars 23 forks source link

[Suggestion]: Keystrokes per minute #19

Closed developomp closed 3 months ago

developomp commented 3 months ago

Is your suggestion related to a problem? Please describe.

Average length of words vary significantly between languages and runs.

Describe the solution you'd like

Show Keystrokes per minute stats alongside Words per minute at the end of each run.

Describe alternatives you've considered

None

Additional context

None

bragefuglseth commented 3 months ago

Hi, and thanks for your suggestion! The term "words per minute" is actually slightly misleading, since it equates to roughly 5 characters/keystrokes. This is how most typing trainers, including Keypunch, calculate it. For languages with "compund characters", those can be "split up" into individual parts when calculating the WPM.

I'm unsure about the usefulness of showing KPM alongside WPM, since it's always going to be WPM * 5, and is harder to grasp / compare for the human brain. I'll close this for now, but leave the thread open for objections.

developomp commented 3 months ago

Can confirm: https://github.com/bragefuglseth/keypunch/blob/b593cde6866843cb3f1fa04250b08f4a4d3647b1/src/text_utils.rs#L167

Thanks for the explanation!