Skip to content

Tran Ha Thu

Software Engineer

Resume
Back to project overview

Language learning workflow

AI & bots

Chinese Learning Toolkit

I built a practical way to keep Chinese words from a lesson or an everyday reading moment alive after I move on. The toolkit turns those discoveries into a practice loop: capture vocabulary, review it at my desk, then meet a small selection again in Telegram the next morning.

GoReactTypeScriptWailsSwiftSQLiteSupabasePostgreSQLGoogle Cloud RunCloud SchedulerTelegram
Call Analyzer Live Lesson workspace showing audio capture setup alongside a live Chinese conversation transcript and candidate count.

Why I started

I started this project because strong Chinese comprehension and speaking skills matter to me, and I want to keep expanding my vocabulary. My work requires me to communicate in Chinese with different teams, which makes that learning immediately useful.

A new project at work was also exposing me to business-specific vocabulary I had not encountered elsewhere. At the same time, I began taking intermediate-level Chinese lessons online and was regularly engaging with Chinese-language content, from short-form videos to news articles. I had many ways to encounter new words, but I was missing an effective, low-friction way to capture them and bring them back into practice.

I wanted the computer to help me notice and organize vocabulary without deciding what I had learned. Transcribed or recognized terms begin as drafts, so I can confirm, edit, merge or reject them before they join the words I revisit.

What it does

Capture and review on the desktop

The macOS app captures consented lesson audio with Swift and ScreenCaptureKit, with optional microphone audio. OpenRouter handles short-utterance transcription, selected-text lookups and photo recognition. The app turns transcription and image results into evidence-backed vocabulary candidates for my review, and I can add a word manually as well. Transcribed and recognized terms stay as drafts until I confirm, edit, merge or reject them. The interface uses React and TypeScript in Wails, with Go orchestration and SQLite storage.

Sync only reviewed vocabulary

The desktop app sends confirmed or manually saved vocabulary through an outbox after ten minutes without changes and pulls confirmed rows at launch. A separate repository defines the Supabase PostgreSQL schema shared by the app and service. The Supabase sync includes vocabulary rows and excludes lesson audio, transcripts and review events.

Revisit words in Telegram

A Go service randomly selects up to ten confirmed words and formats each with simplified and traditional Chinese, tone-marked pinyin and a gloss. Cloud Scheduler invokes it at 09:00 Asia/Singapore, and it sends the daily message through Telegram to bring vocabulary back into my day.

Product walkthrough

From a live lesson or selected text to a curated vocabulary bank and cloud sync, the desktop workflow is organized into four stages that keep the learner in control.

Live lesson capture

Transcribe consented call audio in real time and collect unfamiliar Chinese words into a review inbox with transcript evidence.

  1. Capture a live lesson
    Call Analyzer Live Lesson screen showing consent and setup checks beside a Chinese conversation transcript.
    The Live Lesson workspace keeps participant consent and setup checks beside the transcript, where recognized terms become vocabulary candidates.
  2. Automatic word detection and suggestions for adding
    Call Analyzer Candidate Inbox showing high-confidence detected Chinese words with pinyin, meanings, sample sentences, transcript evidence, and Edit, Reject, and Confirm buttons.
    Candidate Inbox groups detected words by confidence alongside the exact lesson sentence where each term appeared, so suggestions can be edited, rejected, or confirmed before joining your vocabulary.

Instant vocabulary analysis

Look up any highlighted Chinese phrase on screen with a keyboard shortcut and turn it into a structured draft without leaving your current window.

  1. Define selected text instantly
    Quick definition card for 查询 showing pinyin, English meanings, and an Add word button over selected text.
    Pressing Control–Option–5 on selected text opens a compact definition card, with a direct path to add the term.
  2. Review the generated entry
    Editable Add Word form for 查询 with pinyin, meaning, example sentence, translation, tags, and a Save button.
    Choosing Add word opens an editable entry with generated learning details and tags, so the word can be checked before saving.

AI-assisted vocabulary maintenance

Build entries from typed words or study photos, fill in sample sentences and readings with AI assistance, and search or filter your saved collection.

  1. Start from a word or photo
    Call Analyzer Add Word screen with a photo upload workflow and blank fields for a manual vocabulary entry.
    The Add Word workspace accepts photos for word suggestions or starts with a single simplified Chinese word.
  2. Complete the learning details
    Add Word form populated with pinyin, English meaning, a Chinese sample sentence, translation, tags, and generation status.
    Generated fields remain editable, and the interface identifies the model and whether the learning-critical details are complete.
  3. Browse the vocabulary bank
    Call Analyzer Vocabulary screen with search and filter controls above cards for saved Chinese words.
    Saved words are searchable and filterable, with each card showing pinyin, meaning, example context, tags, and review status.

Automatic syncing to the cloud

Confirmed and manually saved entries queue for automatic background sync to Supabase, with an explicit prompt before closing if pending changes remain.

  1. Keep sync under user control
    macOS Unsynced vocabulary dialog asking whether to sync pending items before the app closes.
    Confirmed words sync automatically in the background after idle periods, and closing the app with unsynced items brings up a native prompt to sync immediately or wait until later.

How it works

The workflow starts with local capture and human review, syncs confirmed vocabulary through a shared Supabase contract, then uses a scheduled Go service to deliver a daily Telegram recall message.

  1. Capture locally

    The macOS desktop app stores transcripts and vocabulary drafts in SQLite while I review the evidence.

  2. Confirm and sync

    Confirmed or manually saved vocabulary is queued by the desktop app and synchronized as rows through the shared Supabase schema.

  3. Select a daily set

    The Go recall service reads confirmed words and prepares up to ten entries with Chinese text, pinyin and glosses.

  4. Deliver on schedule

    Cloud Scheduler calls the service, which sends a morning message to Telegram.

Examples

A small daily vocabulary sample

The message brings a selection of reviewed words into a familiar chat, making it easy to encounter them again during the day.

Telegram message showing a sample of daily Chinese vocabulary with readings and meanings.
A sample of the daily vocabulary message; the image shows a subset of the words delivered by the service.

Deployment

Desktop app
Lesson capture, draft vocabulary and review live in the local macOS app and SQLite database.
Shared vocabulary contract
Supabase PostgreSQL stores the confirmed vocabulary rows used by the desktop app and recall service.
Scheduled cloud delivery
The Go service runs privately on Google Cloud Run in Singapore. Cloud Scheduler invokes it with OIDC; deployment uses Secret Manager, a distroless container and GitHub Actions.

Currently working on and future plans

  • I plan to extend the daily message into a reply and review-state loop, so my answers can shape which words I revisit next. That foundation can later support more adaptive spacing between practice sessions.
  • I also want to make a Windows version of the app.

Project resources