Releases: hhzl/LearnWords2
BoxOfQuestions library with data export options
- 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
- 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
suggestedNumberOfWordsInASessionwhich has a default value of20. - New method
addMoreWordsForLearning(): it is used to move words withstep < 0tostep =0which means that the words are part of the collectionwordsToRepeat. This method is called bywordsToRepeatat 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
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
-
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.htmlinpublicdirectory -
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
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
MVP = minimum viable product.
LW.js updated.
27 specs, 0 failures
BoxOfQuestions specs and MVP implementation
MVP = minimum viable product.
BoxOfQuestions specs and implementation draft
With a draft of a node REPL test environment.
BoxOfQuestions specs and implementation draft
Merge pull request #81 from hhzl/rel-v0.2alpha1 Update package.json
MVP database access layer LWdb and Jasmine spec/test environment
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,