My HSK Chinese Python app

Now that my Masters course is coming to an end, I am getting back to my original quest to learn the 5,000 words in the Chinese HSK vocabulary list and improve my Mandarin. But I’ve always struggled with revision as there’s no free app to test myself and I don’t like using the Anki flashcard system.

Today I found a raw data file online with all the 5k words nicely laid out in JSON format – perfect for creating an AI app! I worked with Google Gemini to code a local Python app to test myself on how to pronounce each word or phrase. If needed, I press “g” and the app will use Gemini to create a sample sentence.

It’s interesting how the format of each generated sentence can be different, as I did not write a long and specific prompt in the Python code to lock the answer structure.

Yeah, it looks very primitive with the DOS interface, but that’s all I need and no Internet is required unless I need to use Gemini to generate sentences.