Skip to content

Releases: hhzl/LearnWords2

BoxOfQuestions library with data export options

28 Jan 23:08
Compare
Choose a tag to compare
  • input data is in CSV form in directory data/csv (var INPUT_DIR = 'data')
  • data is converted to JSON
  • added export of wordlist to Anki package file (does not include pictures yet)
  • draft version of a html report
  • draft version of a html presentation for spelling

BoxOfQuestions library

30 Dec 06:55
Compare
Choose a tag to compare
  • Added a simple learning session implementation. When a learning session starts words are added to the wordsToRepeat collection if there are not enough words. This is determined by a new setting suggestedNumberOfWordsInASession which has a default value of 20.
  • New method addMoreWordsForLearning() : it is used to move words with step < 0 to step =0 which means that the words are part of the collection wordsToRepeat. This method is called by wordsToRepeat at a start of a session.
  • Added synonyms for
    • moveQuestionForward -> answerWasCorrect
    • moveQuestionBackwards -> answerWasWrong
  • For test purposes the default setting for the delay value after which a question might be asked again has been set to one tenth of a day

BoxOfQuestions library

28 Dec 14:12
Compare
Choose a tag to compare

A release adding requirements from the LWKids app.

  • step value indicates the number of correct answers in a row.
  • New method: wordsWithStepValue(from,to)
  • New step property initialisation value for imported words.

BoxOfQuestions specs and MVP implementation

20 Dec 00:21
Compare
Choose a tag to compare
  • Construction is now

    var lw = LW.BoxOfQuestions(LW.LWdb('learnWords'));
    lw.importFrom(wordlist);

  • Library file is generated and may be included with <script src="<path>/LW.js"></script>

  • See updated demo.html in public directory

  • Added shuffle function for lw.getAnswerOptions()

  • SPEC now uses ECMAscript 6 with node 6.9.2

  • README updated.

  • 27 specs, 0 failures, 1 pending spec

BoxOfQuestions specs and MVP implementation

17 Dec 01:50
Compare
Choose a tag to compare

27 specs, 0 failures, 1 pending spec

Functional style

var LW = BoxOfQuestions(LWdb('learnWords'));
if (LW.db.numberOfWords() == 0) {LW.db.loadWords(wordList)};

BoxOfQuestions specs and MVP implementation

15 Dec 20:36
Compare
Choose a tag to compare

MVP = minimum viable product.

LW.js updated.

27 specs, 0 failures

BoxOfQuestions specs and MVP implementation

15 Dec 19:21
Compare
Choose a tag to compare

MVP = minimum viable product.

BoxOfQuestions specs and implementation draft

09 Dec 11:15
Compare
Choose a tag to compare

With a draft of a node REPL test environment.

BoxOfQuestions specs and implementation draft

06 Dec 19:02
Compare
Choose a tag to compare
Merge pull request #81 from hhzl/rel-v0.2alpha1

Update package.json

MVP database access layer LWdb and Jasmine spec/test environment

06 Dec 11:42
Compare
Choose a tag to compare

Aim

The aim of this release is to have the project set up with a Jasmine test environment which works both in the browser and with node on the command line.

In addition a minimally useful set of methods to access the words and settings database has been defined.

See API 1 in the diagram here https://github.com/hhzl/LearnWords2

Setup

git clone https://github.com/hhzl/LearnWords2.git
cd LearnWords2
npm install -g grunt-cli
npm install

Note that maybe you have to do

sudo npm install -g grunt-cli
sudo npm install

Test and build

npm test runs the Jasmine specs and tests on the command line.

npm start does grunt,

npm test does scripts/test.js,