Wenwei Lin

← All projects

Personal projects

Anki flashcard script

Turns the English words I saved in Notion into Anki cards in one click, with pronunciation and example sentences read aloud.

When
2022.08 – 2022.09
My role
Design and development
Built with
Python · AnkiConnect · Notion API · Azure Speech
Notion · 生词kibitz“…I wanted to kibitz…”aloof“…seemed aloof…”kibitzˈki-bəts提出多余的建议

Why

When I read English books, I logged new words and the sentences they came from in Notion, then reviewed them in Anki. The slow part was in between: making each card by hand.

How it works

The script takes words from my Notion vocabulary database and, for each one:

  1. gets the pronunciation and phonetics from the Merriam-Webster API;
  2. reads the example sentence aloud with Azure text-to-speech;
  3. creates an Anki card through AnkiConnect: the word and phonetics on the front, the original sentence, audio and meaning on the back.

An Anki card the script made: the word kibitz, its pronunciation, the example sentence with audio, and its meaning

Later

Four years later I built “read English, collect words, review them” again: Word Pebble.