Skip to content

Add Microsoft terminology, MOE dictionary, and unified search - #1

Open
voidful wants to merge 1 commit into
Qmo37:mainfrom
voidful:feat/termic-moedict-integration
Open

Add Microsoft terminology, MOE dictionary, and unified search#1
voidful wants to merge 1 commit into
Qmo37:mainfrom
voidful:feat/termic-moedict-integration

Conversation

@voidful

@voidful voidful commented Jun 18, 2026

Copy link
Copy Markdown

Summary

Inspired by termic and g0v/moedict-data, this PR significantly expands terminology lookup capabilities and vocabulary coverage:

  • Microsoft Terminology integration — new fetch-microsoft-terms.py queries termic.me for Microsoft Glossary + Translation Memory (EN↔zh_TW), with POS, definitions, product context, reverse search, and batch mode
  • MOE Dictionary integration — new enrich-from-moedict.py enriches vocabulary with 教育部重編國語辭典修訂本 data (注音, authoritative definitions, usage examples) via g0v/moedict-data
  • Unified search tool — new search.py searches all local vocabularies + online Microsoft terminology in one command (exact/fuzzy/regex)
  • Linguipedia expansion — 47 → 1,400 cross-strait entries across 17 subcategories
  • Enriched daily vocabulary — 421 daily-use terms with 注音 and MOE definitions covering food, transport, daily items, clothing, housing, etc.
  • Improved fetch-linguipedia.py — User-Agent fix, partial save on error, --start-page resume, --merge-cache

Usage examples

# Unified search (local + online)
python3 scripts/search.py "伺服器"
python3 scripts/search.py "server" --online

# Microsoft terminology
python3 scripts/fetch-microsoft-terms.py "database"
python3 scripts/fetch-microsoft-terms.py "介面" --reverse

# MOE Dictionary lookup
python3 scripts/enrich-from-moedict.py --lookup "軟體,捷運,番茄"

Test plan

  • search.py returns results from vocabulary.md, linguipedia, and moedict-enriched sources
  • fetch-microsoft-terms.py returns glossary + translation memory results from termic.me
  • enrich-from-moedict.py --lookup displays 注音, definitions, and examples
  • enrich-from-moedict.py --generate produces vocabulary-enriched.md (421 entries)
  • fetch-linguipedia.py fetches with User-Agent fix and saves partial results on error
  • All documentation updated (SKILL.md, README.md, tools-resources.md)

…arch

Inspired by termic (https://github.com/spidersouris/termic), this adds
multi-source terminology lookup and significantly expands the vocabulary
database for Taiwan Chinese localization.

New scripts:
- fetch-microsoft-terms.py: query Microsoft Glossary + Translation Memory
  for EN↔zh_TW via termic.me (POS, definitions, product context)
- enrich-from-moedict.py: enrich vocabulary with MOE Dictionary data
  (bopomofo, definitions, examples) via g0v/moedict-data
- search.py: unified search across all local + online sources
  (exact, fuzzy, regex modes)

Data expansion:
- Linguipedia cross-strait: 47 → 1,400 entries (17 subcategories)
- New enriched vocabulary: 421 daily-use terms with 注音 and MOE definitions
  covering food, transport, daily items, clothing, housing, etc.

Improved fetch-linguipedia.py:
- User-Agent header fix for 403 errors
- Partial save on error with --start-page resume
- --merge-cache for combining partial fetches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant