branch: externals/gnosis
commit 27811343db0371fe72eb20155e37054514fa7216
Author: Thanos Apollo <[email protected]>
Commit: Thanos Apollo <[email protected]>
algorithm: Cap post-failure interval at 7 days.
* Prevent overly lenient reschedules for mature cards
(e.g. 200 days * 0.5 = 100 days is too generous after a lapse).
---
collections/demo.org | 103 ---------------------------------------------------
gnosis-algorithm.el | 6 +--
2 files changed, 3 insertions(+), 106 deletions(-)
diff --git a/collections/demo.org b/collections/demo.org
deleted file mode 100644
index 6aeac868c8..0000000000
--- a/collections/demo.org
+++ /dev/null
@@ -1,103 +0,0 @@
-
-* Thema
:demo::latin:phrases:
-:PROPERTIES:
-:GNOSIS_ID: NEW
-:GNOSIS_TYPE: basic
-:END:
-** Keimenon
-repetitio est mater memoriae
-
-** Hypothesis
-- Translate from Latin -> English
-
-** Answer
-- repetition is the mother of memory
-
-** Parathema
-Repetition strengthens neural pathways, enhancing memory retention.
-It consolidates information from short-term to long-term memory
-through consistent practice. Regular repetition improves recall by
-reinforcing learning.
-
-
-* Thema :demo:emacs:
-:PROPERTIES:
-:GNOSIS_ID: NEW
-:GNOSIS_TYPE: cloze
-:END:
-** Keimenon
-GNU Emacs is an extensible editor created by Richard Stallman in 1984
-
-** Hypothesis
-- year
-
-** Answer
-- 1984
-
-** Parathema
-Emacs was originally implemented in 1976 on the MIT AI Lab's
-Incompatible Timesharing System (ITS), as a collection of TECO macros.
-The name “Emacs” was originally chosen as an abbreviation of “Editor
-MACroS”. This version of Emacs, GNU Emacs, was originally written
-in 1984
-
-
-* Thema :demo:
-:PROPERTIES:
-:GNOSIS_ID: NEW
-:GNOSIS_TYPE: cloze
-:END:
-** Keimenon
-GNU Emacs is an extensible editor created by Richard Stallman in 1984
-
-** Hypothesis
--
-
-** Answer
-- Richard
-- Stallman
-
-** Parathema
-Emacs was originally implemented in 1976 on the MIT AI Lab's
-Incompatible Timesharing System (ITS), as a collection of TECO macros.
-The name “Emacs” was originally chosen as an abbreviation of “Editor
-MACroS”. This version of Emacs, GNU Emacs, was originally written in
-1984
-
-
-* Thema :demo:pharmacology:vancomycin:
-:PROPERTIES:
-:GNOSIS_ID: NEW
-:GNOSIS_TYPE: mcq
-:END:
-** Keimenon
-How is Vancomycin typically administered?
-
-** Hypothesis
-- IM
-- IV
-- Orally
-
-** Answer
-- IV
-
-** Parathema
-*Oral* vancomycin for *pseudomembranous colitis*
-
-
-* Thema
:demo:diuretics:thiazides:
-:PROPERTIES:
-:GNOSIS_ID: NEW
-:GNOSIS_TYPE: mc-cloze
-:END:
-** Keimenon
-Thiazide diuretics may cause hyponatremia as an adverse effect
-
-** Hypothesis
-- hyponatremia
-- hypernatremia
-
-** Answer
-- hyponatremia
-
-** Parathema
diff --git a/gnosis-algorithm.el b/gnosis-algorithm.el
index 37ac1f9cbc..c015a8e7fc 100644
--- a/gnosis-algorithm.el
+++ b/gnosis-algorithm.el
@@ -256,9 +256,9 @@ LETHE: Upon having C-FAILS >= lethe, set next interval to
0."
(t (let* ((success-interval (* gnosis-synolon
last-interval))
(failure-interval (* amnesia last-interval)))
(if success success-interval
- ;; Make sure failure interval is never
- ;; higher than success and at least 0
- (max (min success-interval failure-interval)
0)))))))
+ ;; Cap failure interval at 7 days to prevent
+ ;; overly lenient reschedules for mature cards.
+ (max (min success-interval failure-interval 7)
0)))))))
(gnosis-algorithm-date (round (gnosis-algorithm-fuzz-interval interval)))))
(defun gnosis-algorithm--date-later-p (date1 date2)