/
25.12.2024 at 09:54 am
Cuttings

Schema for Language-Learning Drillers

SQL table definition for sentences.
Code
                        CREATE TABLE "Material"
(
  id                     INTEGER,
  expression             TEXT,
  expression_meaning     TEXT,
  expression_reading     TEXT,
  expression_source      TEXT
  focus_phrase           TEXT,
  focus_phrase_meaning   TEXT,
  notes                  TEXT
)
                    

I love spaced-repetition systems. I've been an extremely early Anki user, all the way back to 2006.

Yet nothing beats rote language drills to build automaticity.

So I've previously written language drilling apps to help me learn languages.

I've experimented with many possible schemas; yet I've come to prefer storing simple sentence-level units in SQL databases.

This to me is the simplest single-table definition schema to hold learning materials across different languages. (It's great because it also works as a reference for Anki deck fields.)

Explaining the Schema

  1. expression

    • Represents a grammatical phrase, expression or a sentence fragment.

    • Written in Japanese/other languages.

  2. expression_meaning

    Closest translation. Not the 'explanation' (which goes into notes).

  3. expression_reading

    Phonetic reading. (For Japanese, in hiragana/katakana.)

  4. expression_source

    Reference - e.g. specific texts/documents/websites.

  5. focus_phrase

    • A specific word, or target grammar point, within the expression.

    • If present, it is the focal point of the expression.

  6. focus_phrase_meaning

    • Meaning of the highlighted phrase/grammar point.

    • Different from expression_meaning.

  7. notes

    Supplementary details; usage tips, exceptions, or cultural nuances.

Filed under:
#
#
#
Words: 188 words approx.
Time to read: 0.75 mins (at 250 wpm)
Keywords:
, , , , , , , , ,

Other suggested posts

  1. 19.12.2024 at 09:00 pm / You Yearn, Yet Engage Not
  2. 26.12.2022 at 08:20 pm / Lusa to Overmorrow, Kelmarin to Ereyesterday
  3. 08.06.2022 at 04:13 pm / Counsel vs Client Perspectives
  4. 19.02.2020 at 10:25 am / STEM, STEAM and Art
  5. 23.06.2019 at 10:59 am / Mood-Clustered Compositions
  6. 12.12.2017 at 12:00 am / Innocent Until Proven Guilty
  7. 03.01.2017 at 12:00 am / Debugging: Twice As Hard As Writing Code
  8. 11.07.2016 at 12:00 am / SublimeREPL's Slow Printing/Freezing - A Solution
  9. 03.01.2016 at 12:00 am / Creators And Their Gems (Polished or Otherwise)
  10. 28.09.2015 at 12:00 am / Mocking the Law - Excessive Judicial Discretion
© Wan Zafran. See disclaimer.