This commit is contained in:
lingdocs 2022-04-12 17:20:28 +05:00
parent 91e9c49904
commit 6c53b2a896
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/pashto-inflector", "name": "@lingdocs/pashto-inflector",
"version": "1.9.7", "version": "1.9.8",
"author": "lingdocs.com", "author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com", "homepage": "https://verbs.lingdocs.com",

View File

@ -349,10 +349,10 @@ function makeQuizState(oldVps: T.VPSelectionState): { VPS: T.VPSelectionState, q
// don't do the SO switches every time // don't do the SO switches every time
const wholeTimeSOSwitch = randFromArray([true, false]); const wholeTimeSOSwitch = randFromArray([true, false]);
[1, 2, 3].forEach(() => { [1, 2, 3].forEach(() => {
// TODO: don't repeat tenses
let v: T.VPSelectionState; let v: T.VPSelectionState;
do { do {
const SOSwitch = wholeTimeSOSwitch && randFromArray([true, false]); const SOSwitch = wholeTimeSOSwitch && randFromArray([true, false]);
// TODO: if switich subj and obj, include the tense being correct maybe
v = getRandomVPSelection("tenses")( v = getRandomVPSelection("tenses")(
SOSwitch ? switchSubjObj(vps) : vps, SOSwitch ? switchSubjObj(vps) : vps,
); );