Look up Chinese dictionary definitions from 教育部重編國語辭典修訂本 and academic terminology from 國家教育研究院樂詞網 (NAER). Use when needing Chinese character/word definitions, etymology, pronunciation (注音/拼音), part-of-speech, or bilingual academic terminology lookups. Triggers on: Chinese dictionary lookup, 查字典, 定義是什麼, word etymology, 教育部辭典, moedict, 樂詞網, NAER, academic terminology, 學術名詞, look up the definition of, character radical/stroke information.
Two data sources:
# Basic lookup (fast, uses moedict.tw raw API)
uv run <skill-dir>/scripts/moedict.py 串
# Raw JSON output
uv run <skill-dir>/scripts/moedict.py 串 --json
# Include official MoE dictionary (slower, uses Playwright)
uv run <skill-dir>/scripts/moedict.py 串 --official
# Search NAER academic terminology (Chinese or English)
uv run <skill-dir>/scripts/moedict.py 串列 --naer
uv run <skill-dir>/scripts/moedict.py "linked list" --naer
# Combine all sources
uv run <skill-dir>/scripts/moedict.py 串列 --official --naer
Replace <skill-dir> with the actual path to this skill directory.
教育部重編國語辭典修訂本:
國家教育研究院樂詞網 (NAER):
When citing in reports, reference official URLs (printed by default) as primary sources.
Default (moedict API) output includes:
With --official: additionally fetches the full entry from the official site, along with related compound words and their direct URLs.
With --naer: tabular results showing English term, Chinese translation, and academic field.
The --official and --naer flags require Playwright with Chromium. On first use, the script auto-installs browsers. To install manually:
uv run python3 -c "
# /// script
# dependencies = ['playwright']
# ///
import subprocess, sys
subprocess.run([sys.executable, '-m', 'playwright', 'install', '--with-deps', 'chromium'], check=True)
"