achalagarwal / keystrokes

extensible and powerful framework for keystroke analysis
GNU General Public License v3.0
2 stars 0 forks source link

Word context for a mistake #8

Closed achalagarwal closed 4 years ago

achalagarwal commented 4 years ago

To be able to learn from user typing corrections / show notifications / better statistics, it is important to be able to know the word context for the type and not just the letter mistyped.

achalagarwal commented 4 years ago

This is better done with two combined streams

achalagarwal commented 4 years ago

Added word context streams using

  1. Word stream that separates words using predefined word separators and maintains a buffer for fixing backspace corrections

  2. Typo stream that sends typos up to the sync value sent by the word stream

781bf2197ca0c1243a61f73355c11c777fdd9559

achalagarwal commented 4 years ago

Moving ahead in word context errors:

  1. Improve cascading metric with the counter value
  2. Add per letter flags, is it a cascading error, adjacent error, finger typo, not an error

What's next with this?

  1. fix letters on the fly, by detecting the correct word alternatives, might need to include spacy in this but want to first try without spacy
  2. the data collection for labels, enable this asap

Opening a new issue for this: https://github.com/achalagarwal/keystrokes/issues/14