Termilingo is a spaced repetition flashcard app designed for use in the terminal.
npm install termilingoTermilingo is a spaced repetition flashcard app designed for use in the
terminal.
It uses a simple deck format to create flashcards:
``csv`
Question,Answer
Front side,Back side
Example:
`csv`
Question,Answer
a dog,en hund
the dog,hunden
a cat,en katt
the cat,katten
a house,ett hus
the house,huset
> [!TIP]\
> This is the format of Brainscape CSV export, so they can be used by Termilingo
> directly.
`bash`
npm install -g termilingo@latest
Termilingo does not rely on self-assessed scores. Instead, it uses an automated
performance scoring system based on the Levenshtein ratio between the correct
answer and the answer that you have typed.
Since Termilingo relies on SM2 algorithm, the score is then converted to SM2
grade according to the following rules:
| Score range | Grade |
| ------------------- | ----- |
| 0 ≤ score < 0.50 | 0 |
| 0.50 ≤ score < 0.70 | 1 |
| 0.70 ≤ score < 0.80 | 2 |
| 0.80 ≤ score < 0.90 | 3 |
| 0.90 ≤ score < 1.00 | 4 |
| score = 1.00 | 5 |

`python
import matplotlib.pyplot as plt
import numpy as np
for i in range(len(score_ranges) - 1):
extended_scores.append(score_ranges[i])
extended_scores.append(score_ranges[i+1])
extended_grades.append(grades[i])
extended_grades.append(grades[i])
Quickstart
Run with an example deck:
`sh
npm run buildnpm start -- --deck example-swedish.csv
`Provide a path to your own deck and start practicing.
On the first run, the app will create a complimentary review file following a
convention