---
tags : keystrokes
---
# Keystrokes/database tasks
- Create database that stores the data to compare to
- start by storing data in a json-file
- n-gram representation from Map<string, number>
- takes timing of the keystrokes to create n-gram representation (Map<string, number>)
- sorted n-gram representation
- sorted on ascending delta
- calculate permutation
- calculates how one list of keystrokes is permutated in terms of the order of another
- calculates this 'distance'