Accuracy screenshots

For you Accuracy aficionados, I would be curious to see your accuracy by SRS level.

If you have Open Framework script installed, paste this in the Javascript console:

Click to open code
wkof.include('Apiv2');
wkof.ready('Apiv2').then(fetch_data).then(process_data);
function fetch_data() {
	return wkof.Apiv2.fetch_endpoint('/reviews');
}
function process_data(json) {
	let stages = ['Lessons', 'Apprentice 1', 'Apprentice 2', 'Apprentice 3', 'Apprentice 4', 'Guru 1', 'Guru 2', 'Master', 'Enlightened'];
	let reviews = json.data;
	let srs_total = new Array(9).fill(0);
	let srs_correct = new Array(9).fill(0);
	reviews.forEach(review => {
		srs_total[review.data.starting_srs_stage]++;
		if (review.data.ending_srs_stage > review.data.starting_srs_stage) {
			srs_correct[review.data.starting_srs_stage]++;
		}
	});
	let output = ['Accuracy:'];
	for (let i=1; i<9; i++) {
		if (srs_total[i] > 0) {
			output.push('  '+stages[i]+': '+(srs_correct[i] / srs_total[i] * 100).toFixed(2)+'%');
		} else {
			output.push('  '+stages[i]+': ---');
		}
	}
	console.log(output.join('\n'));
}

And after it finishes loading the data, you’ll get something like this:

Accuracy:
  Apprentice 1: 85.78%
  Apprentice 2: 96.92%
  Apprentice 3: 96.34%
  Apprentice 4: 94.23%
  Guru 1: 86.94%
  Guru 2: 80.85%
  Master: 79.42%
  Enlightened: 73.54%

(Note: This only covers reviews since about Fall of last year, since that’s when Wanikani added review results to the API)
(Also, if you don’t have Open Framework installed, you can also run it from the Javascript console while on the new in-development version of wkstats.com [here])

7 Likes