Spaced repetition examples?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Spaced repetition examples?

Post by AndyP » Mon Oct 10, 2016 4:16 pm

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.
Andy .... LC CLASSIC ROCKS!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Spaced repetition examples?

Post by dunbarx » Tue Oct 11, 2016 3:39 am

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

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: Spaced repetition examples?

Post by AndyP » Tue Oct 11, 2016 8:48 am

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)
Andy .... LC CLASSIC ROCKS!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Spaced repetition examples?

Post by dunbarx » Tue Oct 11, 2016 3:37 pm

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

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Spaced repetition examples?

Post by jmburnod » Wed Oct 12, 2016 9:08 am

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
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Spaced repetition examples?

Post by dunbarx » Wed Oct 12, 2016 2:50 pm

What Jean-Marc said about what I said.

Let's do it in LC.

So what are your requirements?

Craig

Post Reply