This repository contains code to work with vocabulary (JSON) files via REPL. No other user interface is provided.
Zelphir Kaltstahl be53c8d6dc update readme | 1 vuosi sitten | |
---|---|---|
data | 1 vuosi sitten | |
guix-env | 1 vuosi sitten | |
lib | 1 vuosi sitten | |
LICENSE | 1 vuosi sitten | |
Makefile | 1 vuosi sitten | |
main.scm | 1 vuosi sitten | |
readme.org | 1 vuosi sitten |
A program for exploring vocabulary files on the REPL. Hopefully providing enough useful procedures.
Run with GNU Guile to use. Use the provided =Makefile=: make
(define myvoc (vocabulary-filter voc §not-learned (make-relevance-filter 3 >=))) (percentage (stat-learned voc))
(vector-map (λ (ind elem) (alist-refs elem '("translation-data" "native"))) (vocabulary-words (vocabulary-filter (? voc "hsk3") §not-learned)))
Search results can be searched again:
(? (? voc "hsk3") "grammar")
;; or shorter
(?? voc "hsk3" "grammar")
(vocabulary-filter (? voc "hsk3") §not-learned)
Search results can be trained:
(train (?? voc "hsk3" "grammar"))