Skip to content

Commit

Permalink
Prioritize previously wrongly answered words when selecting words
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Kumar <abhi.kr.2100@gmail.com>
  • Loading branch information
abhi-kr-2100 committed Mar 24, 2024
1 parent 037d7e5 commit ec0c970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/PlayPage/Questions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ function getFillInTheBlanksQuestion(question: SentenceData, lm: LanguageModel) {
-lastReviewDate.diffNow('days').days,
);
const level = Math.max(
0,
1,
word.score!.interRepetitionIntervalInDays! - daysSinceLastReview,
);

return level === 0 ? 1.0 : 1.0 / level;
return 1.0 / (level * word.score!.easinessFactor);
});

console.log(weights);
Expand Down

0 comments on commit ec0c970

Please sign in to comment.