Skip to content

Repository files navigation

4Yu

"Four 语", "For You"

4Yu is a daily Chinese idiom (成语) explorer. Each day features a new idiom with pinyin, definition, origin, and example usage. Supports English, Simplified Chinese, and Traditional Chinese, with built-in pronunciation and copy-to-clipboard.

Features

  • Daily idiom, seeded by date (resets at midnight Mountain Time) with a live countdown
  • Browse the current year's daily archive with a scrollable calendar (up to today)
  • Shuffle a random idiom from the full 7,208-idiom dataset
  • Bookmark idioms — saved locally in your browser (localStorage), no account needed
  • Localized flip-clock date display and UI in English, 简体中文, and 繁體中文

Tech Stack

  • React + TypeScript + Vite
  • Tailwind CSS
  • Lucide React

Known Issues

Speech Synthesis

Due to the limitations of Web Speech API, the pronunciation of certain Chinese chracters, most notably polyphonic characters, may be incorrect because it defaults to the most common reading, rather than using the pinyin from our dataset.

SpeechSysnthesisUtterance takes the raw Chinese characters and the browser voice engine guesses the pronunciation, which leads to small inaccuracies as there's no way to hint the context.

Each browser also embeds their own speech synthesis engine, so the subset of voices may differ depending on platform or OS.

About

🀄️ Learn Chengyu Daily

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages