Page 1 of 1

Spaced repetition examples?

Posted: Mon Oct 10, 2016 4:16 pm
by AndyP
Has anyone done any work with Spaced repetition in LiveCode.

I'm building a little Android Latin-German-English tester for one of my boys at the moment and I am at the stage where I need to implement weighted questioning.

Any help much appreciated.

Re: Spaced repetition examples?

Posted: Tue Oct 11, 2016 3:39 am
by dunbarx
Hi.

Is it that you need to set a timer that increases in value as each question is asked? And that subsequent questions are presented after those intervals/

Or after answers are submitted? Or after only correct answers?

All seems straightforward for LC, but not sure exactly what is needed.

Craig Newman

Re: Spaced repetition examples?

Posted: Tue Oct 11, 2016 8:48 am
by AndyP
OK, Ive been doing some research on this and have found the key spaced rep code as used in Anki, an open source flashcard app.

https://github.com/nicolas-raoul/Anki-Android

So now just need to convert this Java ... ouch >

Code: Select all

public static void calcuateInterval(Card card) {
  if (card.getEFactor() < 3) {
      card.setCount(1);
  }
  int count = card.getCount();
  int interval = 1;
  if (count == 2) {
      interval = 6;
  } else if (count > 2) {
     interval =  Math.round(card.getInterval() * card.getEFactor());
  }
  card.setInterval(interval);
}
to LiveCode 8)

Re: Spaced repetition examples?

Posted: Tue Oct 11, 2016 3:37 pm
by dunbarx
Weel, you will likely find someone to translate the Java to LC.

Or we can try to examine what your requirements are, and do it all here.

Craig

Re: Spaced repetition examples?

Posted: Wed Oct 12, 2016 9:08 am
by jmburnod
Or we can try to examine what your requirements are, and do it all here.
Yes, that is for me the best way which allows to define what you need and make development and update easier. When we cook, we learn other ways to do the same things and we are able to generalise scripts.

You can use pseudocode, something like that:
define the time limit for one question
answer a question (with a time limit or not) (with checking the answer immediately or at the end of all questions).

Best regards
Jean-Marc

Re: Spaced repetition examples?

Posted: Wed Oct 12, 2016 2:50 pm
by dunbarx
What Jean-Marc said about what I said.

Let's do it in LC.

So what are your requirements?

Craig