Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shouldnt calling supermemo with a poor grade keep the interval as 0? #8

Open
udit99 opened this issue May 7, 2023 · 1 comment
Open

Comments

@udit99
Copy link

udit99 commented May 7, 2023

Hey all
In this example

let flashcard: Flashcard = {
  front: 'programer',
  back: 'an organism that turns caffeine in software',
  interval: 0,
  repetition: 0,
  efactor: 2.5,
  dueDate: dayjs(Date.now()).toISOString(),
};

console.log(flashcard);

flashcard = practice(flashcard, 1);
console.log(flashcard);

I would expect the dueDate for the flashcard to continue to be today's date, since the grade was 1 (incorrect response). In other words, I'd expect the card to remain due until the user selects 3/4/5 as the grade. At least thats is my expectation as an Anki user. Am I mistaken about how Supermemo algorithm works or am I misunderstanding something?

Thank you

@Badestrand
Copy link

Instinctively I would agree but according to the algorithm description itself at https://super-memory.com/english/ol/sm2.htm it is clear that the interval for an incorrect response is 1.

I(1):=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants