Other
Monkeytype source code: frontend/src/ts/test/events/stats.ts (getAccuracy)
GitHub (monkeytypegame/monkeytype), main branch, n.d.
Read the originalRead on October 17, 2026
- What it is
- The file in the Monkeytype source code that counts correct and incorrect inputs and computes the accuracy percentage shown after a test.
- How much weight it carries
- The project's own code, so it shows how the site calculates accuracy on the date read. It describes the site's rule, not an independent check of its results.
Facts taken from this source
- Monkeytype's accuracy percentage is the number of correct inputs divided by all inputs, multiplied by 100.
“const percentage = total === 0 ? 0 : (correct / total) * 100;” (getAccuracy function)