larztype
A typing-practice engine.
Fast, accurate typing is a quiet superpower for coders. larztype scores a typed attempt for words-per-minute and accuracy, diffs the mistakes character by character, and generates practice drills - the engine behind a typing tutor.
larzscript pkg install type
What you get
- Score WPM (net & gross) + accuracy
- Character diff (ok/wrong/missing/extra)
- Generate practice drills
- Deterministic when seeded
Try it
import "type" as typing
let score = typing.score("the quick fox", "the qick fox", 12.0)
print(round(score["wpm_gross"], 1), round(score["wpm_net"], 1), score["accuracy"])Output
12 0 0.384615
Why it's in the Larz Stack
larztype is a real Larzscript package (larzscript pkg install type) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.