Héhū Zhōulǐ: Engineering a Chinese Meme-Style Classical Translator
> Project: Héhū Zhōulǐ (Zhouli Translator) > Author: Aspirin0000 > Website: https://hehuzhouli.com/ > Source: https://github.com/Aspirin0000/zhouli-translator > One-liner: A minimalist AI generator that rewrites modern Chinese into the solemnly over-justified "translation-ese" register.
---
1. What it is
Héhū Zhōulǐ is a Chinese meme copywriting generator. Input a modern sentence such as "Crazy Thursday, who will treat me to a meal" and it returns a passage in the Zhouli translation register:
> I have heard that the ancients held feasts not merely to fill the belly, but to observe the bonds of friendship. Today is Thursday, and I open my mouth to beg a meal; though it looks like gluttony, in truth I offer each of you a chance to practice benevolence and cultivate affection. If someone will treat me, it is not an expense but a meeting of friends over chicken — is this not, in fact, in keeping with the Rites of Zhou?
The output is not Classical Chinese but the textbook-style "translation-ese" familiar from Chinese language classrooms — modern vocabulary wrapped in ancient logic, solemnly arguing a trivial matter three times over. The format is part of the "Da Zhouli Era" meme trending on Bilibili.
---
2. Architecture: minimal but pragmatic
Core stack
- Next.js (TypeScript) — frontend and API routes
- DeepSeek Chat Completions — backend generation (default
deepseek-v4-flash) - Cloudflare Workers — deployment via the OpenNext adapter
- *Levels* — Small Rite (short), Full Rite (medium), Grand Rite (long argumentative essay)
- *Voices* — gentle persuasion, Confucian debate, forced reconciliation, heartfelt lament
- Pre-publish audit —
scripts/public-audit.mjsscans git-tracked files for API keys, private keys, and other secrets. - Server-only key — the DeepSeek key never reaches the frontend.
- Rate limiting — a lightweight in-memory limiter (production should swap in Redis or Upstash).
- Input validation — user input is capped at 300 characters;
modeandlevelparameters are validated. - Regression testing —
scripts/run-zhouli-batch.mjsruns batch tests with baseline comparison. - Project: Héhū Zhōulǐ (Zhouli Translator)
- Author: Aspirin0000
- Website: https://hehuzhouli.com/
- Source: https://github.com/Aspirin0000/zhouli-translator
- Stack: Next.js + TypeScript + DeepSeek Chat Completions + Cloudflare Workers
- Core feature: 3 levels (Small Rite / Full Rite / Grand Rite) × 4 voices (gentle persuasion / Confucian debate / forced reconciliation / heartfelt lament)
- Philosophy: vernacular skeleton, anecdotal evidence, twist into reason, rhetorical-question verdict
- Distribution:
speak-zhouliSkill package (one-click copy or ZIP download) - Security: server-only API key, pre-publish audit, rate limiting
- License: MIT
Key design choices
1. Server-side generation; no key leakage
User input is posted to /api/translate. The DeepSeek call runs entirely server-side, so the API key never reaches the browser.
2. Three courtesy levels × four rhetorical voices
Combining the two axes produces outputs of varied length and tone.
3. Prompt engineering
lib/prompt.ts defines a fixed system prompt establishing the Zhouli translation-ese style, the user prompt assembly rules, and perspective rules for the four voices.
4. Output cleanup
A post-generation cleanup pass removes common failure modes, such as off-format outputs and stray punctuation.
5. Demo mode without an API key
If no DeepSeek key is configured, the system falls back to a local canned output without external calls — a user-friendly default.
6. Distributable Skill package
A speak-zhouli Skill package lets users either copy the full prompt into any AI chat box or download a ZIP for installation into Codex-style agents' skill directories. The Zhouli capability becomes embeddable in any AI workflow.
---
3. Design philosophy: four pillars
The homepage lists four pillars, grounded in observation rather than improvisation:
1. Vernacular skeleton
Use sentences modern readers understand, but explain a trivial idea at great length. The humor comes from "solemnly saying nothing new."
2. Anecdotal evidence
Invoke an ancient figure, a plant, or an old story to ground a present-day small matter — the textbook technique of "classic first, modern case second."
3. Twist into reason
Concede, then pivot, then arrive at a serious but slightly strained conclusion — a concession-rebuttal structure common in translation-ese.
4. Rhetorical question as verdict
Rather than rebuke, close with a gentle question that lets the listener grasp the point themselves — a classical remonstration pattern and a signature ending for the register.
The author reports deriving these pillars from hundreds of top-liked comments on Da Zhouli-era videos plus the vernacular translations of canonical excerpts from the *Rites of Zhou*, *Analects*, and *Mencius*.
---
4. Security and engineering hygiene
Despite its small footprint, the project enforces solid practices:
---
5. Why does the meme catch on?
The translation-ese register has existed for decades in school textbooks. Why is it suddenly a meme?
1. Contrast cuteness (反差萌)
The most mundane modern acts — takeout, milk tea, overtime — argued through the framework of *rites, status, duty, decorum*. The temporal mismatch is itself the joke.
2. Gentle deconstruction of authority
Wrapping modern trivialities in classical "great truths" softly parodies canonical authority — not denial, but play.
3. Language as game
The point is not translation but playing with language. Stretching one simple idea through as many pivots, allusions, and questions as possible is itself creative fun.
4. Social currency
The outputs fit WeChat Moments, danmaku, and comment sections. The format offers a replicable sense of humor with a low barrier to participation.
---
6. One-line summary
Héhū Zhōulǐ is a technically minimal but culturally astute project. Using Next.js plus DeepSeek, it turns a decades-old classroom language phenomenon — the textbook translation-ese — into an interactive, distributable, embeddable AI tool. Its core is not the technology but a precise read of the pulse of Chinese internet culture: identifying which meme will click, then shipping it with the lightest possible engineering.
---