datle-dev / yubi

Minimalist typing test
MIT License
0 stars 0 forks source link

Accuracy calcs #9

Closed datle-dev closed 3 months ago

datle-dev commented 3 months ago

Changes

Major Changes

Update the WPM and accuracy calculations to include extra and missed characters.

Bug Fixes / Minor Changes

Why

For net WPM, it should consider all uncorrected errors, which would include extra or missed characters that were not corrected before moving onto the next word.

For accuracy, extra and missed characters are also included because extra characters were incorrectly typed when a space was expected and missed characters were incorrectly typed because a space was typed and the user then moved onto the next word.

How

An update to the net WPM and accuracy calculations to include extra and missed character counts.

Notes

The way the app works right now is that as soon as you type space, you are moved to the next word and cannot go back to make changes. So extra or missed characters are permanent once the user has moved on. I'm wondering if the net gain in WPM by just ignoring mistakes and moving on would be balanced out by having the ability to return to previous words and fixing mistakes. I think this is fine for now, and this matter is just me nit-picking.