Skip to content

Commit

Permalink
Add typos to score
Browse files Browse the repository at this point in the history
  • Loading branch information
otacke committed Sep 8, 2020
1 parent b3e7639 commit b450a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/h5p-dictation.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class Dictation extends H5P.Question {

// Number of mistakes shall not be higher than number of words.
this.mistakesCapped = Math.min(mistakesTotal, this.maxMistakes);
this.correctTotal = scoreTotal.match;
this.correctTotal = scoreTotal.match + scoreTotal.typo * (1 - this.params.behaviour.typoFactor);

let generalFeedback;
if (this.params.behaviour.zeroMistakeMode) {
Expand Down

0 comments on commit b450a1f

Please sign in to comment.