Words due for review
list_due_wordsUse when the user wants to review, practise or be quizzed on their NextLang vocabulary. Call without a language pair first to see which dictionaries exist and how many words are due, then call with the pair. Called without a pair it also answers which languages the user is learning: it lists every dictionary with its language pair and word counts. A dictionary is identified by its pair, not by quiz direction: 'term' is always in learningLanguage and 'translation' in translationLanguage, and you can quiz either way (show the term and ask for the translation, or the reverse) from the same dictionary. When dueTotal is 0 and the user still wants to practise, call again with mode 'all' instead of switching to another dictionary; nextDueAt tells when scheduled review resumes. Do not reveal the answer until the user replies. After the round, save results with record_review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | due (default): only words scheduled for now. all: practice any words of the pair, soonest-due first, even when nothing is due | |
| limit | No | ||
| learningLanguage | No | Language the user is learning (the card front) | |
| translationLanguage | No | Language of the translation (the card back) |