{"id":13407381,"url":"https://github.com/g0v/moedict-webkit","last_synced_at":"2025-12-17T06:56:33.280Z","repository":{"id":6696848,"uuid":"7942186","full_name":"g0v/moedict-webkit","owner":"g0v","description":"萌典網站","archived":false,"fork":false,"pushed_at":"2025-10-07T06:22:07.000Z","size":168560,"stargazers_count":633,"open_issues_count":115,"forks_count":101,"subscribers_count":56,"default_branch":"master","last_synced_at":"2025-10-14T12:35:35.399Z","etag":null,"topics":["cordova","g0v","moedict","nodejs"],"latest_commit_sha":null,"homepage":"https://www.moedict.tw/","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/g0v.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-01-31T18:00:44.000Z","updated_at":"2025-10-11T18:57:23.000Z","dependencies_parsed_at":"2025-04-14T09:06:16.048Z","dependency_job_id":null,"html_url":"https://github.com/g0v/moedict-webkit","commit_stats":{"total_commits":1411,"total_committers":31,"mean_commits":"45.516129032258064","dds":"0.18001417434443656","last_synced_commit":"2290036dacf06c5690fb0657b3514b82d59c8c32"},"previous_names":["audreyt/moedict-webkit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/g0v/moedict-webkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Fmoedict-webkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Fmoedict-webkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Fmoedict-webkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Fmoedict-webkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g0v","download_url":"https://codeload.github.com/g0v/moedict-webkit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Fmoedict-webkit/sbom","scorecard":{"id":415867,"data":{"date":"2025-08-11","repo":{"name":"github.com/g0v/moedict-webkit","commit":"618c6ac92754de2d2ab81d73ef63930711f45a6a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:4: pin your Docker image by updating ubuntu:14.04 to ubuntu:14.04@sha256:64483f3496c1373bfd55348e88694d1c4d0c9b660dee6bfef5e12f43b9933b30","Warn: npmCommand not pinned by hash: Dockerfile:46","Warn: npmCommand not pinned by hash: Dockerfile:54","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":0,"reason":"91 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-9mvj-f7w8-pvh2","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3fw8-66wf-pr7m","Warn: Project is vulnerable to: GHSA-6w62-83g6-rfhj","Warn: Project is vulnerable to: GHSA-rch9-xh7r-mqgw","Warn: Project is vulnerable to: GHSA-4vmm-mhcq-4x9j","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-92vm-wfm5-mxvv","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-gpvr-g6gh-9mc2","Warn: Project is vulnerable to: GHSA-cm5g-3pgc-8rg4","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-9qj9-36jm-prpv","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-gxr4-xjj5-5px2","Warn: Project is vulnerable to: GHSA-jpcq-cgw6-v4j6","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-wrvr-8mpx-r7pp","Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-265q-28rp-chq5","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-28xh-wpgr-7fm8","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-f9cm-p3w6-xvr3","Warn: Project is vulnerable to: GHSA-jjv7-qpx3-h62q","Warn: Project is vulnerable to: GHSA-gqgv-6jq5-jjj9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-xwg4-93c6-3h42","Warn: Project is vulnerable to: GHSA-jgqf-hwc5-hh37","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-c9g6-9335-x697","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-34r7-q49f-h37c","Warn: Project is vulnerable to: GHSA-c9f4-xj24-8jqx","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-9m6j-fcg5-2442","Warn: Project is vulnerable to: GHSA-hh27-ffr2-f2jc","Warn: Project is vulnerable to: GHSA-rqff-837h-mm52","Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2","Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j","Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-cf66-xwfp-gvc4","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-2mhh-w6q8-5hxw","Warn: Project is vulnerable to: GHSA-6663-c963-2gqg","Warn: Project is vulnerable to: GHSA-5v72-xg48-5rpm","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T23:50:44.548Z","repository_id":6696848,"created_at":"2025-08-18T23:50:44.549Z","updated_at":"2025-08-18T23:50:44.549Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27778956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-17T02:00:08.291Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cordova","g0v","moedict","nodejs"],"created_at":"2024-07-30T20:00:38.872Z","updated_at":"2025-12-17T06:56:33.275Z","avatar_url":"https://github.com/g0v.png","language":"Objective-C","funding_links":[],"categories":["Web Application","Objective-C"],"sub_categories":[],"readme":"這是 \u003chttp://moedict.tw/\u003e 線上及離線查詢 App 的源碼庫。\n\n## Docker\n\n可以從 Docker Hub 取回開發環境:\n\n```sh\ndocker@boot2docker:~$ docker pull miaoski/moedict-webkit\ndocker@boot2docker:~$ docker run -p 8888:8888 -t -i miaoski/moedict-webkit /bin/bash\nroot@4a7bd751fd9e:/usr/local/src/moedict-webkit# make\n```\n\n\n\n## 需求\n\n* Node.js 0.10.x+\n    * npm\n* Perl 5.8.0+\n* Python\n    * lxml\n\n在 macOS 上，目前僅支援 HFS+ 作為開發環境。High Sierra 以後的版本，\n請先用 Disk Utility 建立一個 HFS+ 分割區，再將開發目錄移至該卷宗。\n\n## 前置作業 (Debian/Ubuntu)\n### Ubuntu 16.04 之前的發行版\n```sh\nsudo apt-get update\nsudo apt-get install -y python g++ make nodejs python-lxml curl npm\n```\n\n### Ubuntu 16.04（含）之後的發行版\n```sh\nsudo apt update\nsudo apt install -y python g++ make nodejs python-lxml curl npm\n```\n\n## 安裝環境\n\n```sh\nnpm i\npip install lxml\nsudo npm i -g gulp\n```\n\n## 建置\n\n## 建置離線檔案\n\n建置離線瀏覽所需要的檔案:\n\n```sh\nmake offline\n```\n\n## 手動逐步建置\n\n來源 JSON 檔 `dict-revised.unicode.json` 及 `dict-revised.pua.json` 由\n\u003chttps://github.com/g0v/moedict-data\u003e 提供， 再經由\n\u003chttps://github.com/g0v/moedict-epub\u003e 造字轉換程式 `json2unicode.pl` 轉為\nUnicode 編碼:\n\n```sh\ngit clone --depth 1 https://github.com/g0v/moedict-data.git\ngit clone --depth 1 https://github.com/g0v/moedict-epub.git\ncp -v moedict-data/dict-revised.json moedict-epub/\ncd moedict-epub\nperl json2unicode.pl \u003e dict-revised.unicode.json\nperl json2unicode.pl sym-pua.txt \u003e dict-revised.pua.json\n```\n\n`pack`、`a` 及 `t` 資料目錄由 `json2prefix.ls`、\n`autolink.ls` 及 `link2pack.pl` 程式產生：\n\n```sh\nlsc json2prefix.ls a\nlsc autolink.ls a \u003e a.txt\nperl link2pack.pl a \u003c a.txt\n\nlsc json2prefix.ls t\nlsc autolink.ls t \u003e t.txt\nperl link2pack.pl t \u003c t.txt\n```\n\n## 本機運行\n\n```sh\n# quick static server, uses the pre-built js/deps.js ( watches: sass/ .jade )\nnpm start\n\n# auto-reloads with react-hot-loader ( watches: sass/ .jade .ls )\nnpm run dev\n\n# builds for deployment, using webpack and uglify\nnpm run build\n\n```\n\n## API 說明\n\n首先請注意，萌典 API 必須去詢問 `https://www.moedict.tw/`，因為這個網址才有開 CORS。不要去訪問 `http://moedict.org/` ，會噴 No 'Access-Control-Allow-Origin' header 的錯誤。\n\nAPI 的原始資料，請[參考連結](https://g0v.hackpad.tw/3du.tw-ZNwaun62BP4)，本段落的說明是參考連結整理後並加上範例。\n\n目前 API 已有 7 個端點，分別是 /a/, /t/, /h/, /c/, /raw/, /uni/, /pua/\n\n### 1. /raw/\n\n原始 json 檔，Big5 區之外的字以造字碼 {[abcd]} 表示。\n\n範例： https://www.moedict.tw/raw/%E8%90%8C\n\n```json\n{\n  \"heteronyms\": [\n    {\n      \"bopomofo\": \"ㄇㄥˊ\",\n      \"bopomofo2\": \"méng\",\n      \"definitions\": [\n        {\n          \"def\": \"草木初生的芽。\",\n          \"quote\": [\n            \"說文解字：「萌，艸芽也。」\",\n            \"唐．韓愈、劉師服、侯喜、軒轅彌明．石鼎聯句：「秋瓜未落蒂，凍芋強抽萌。」\"\n          ],\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"事物發生的開端或徵兆。\",\n          \"quote\": [\n            \"韓非子．說林上：「聖人見微以知萌，見端以知末。」\",\n            \"漢．蔡邕．對詔問{[9264]}異八事：「以杜漸防萌，則其救也。」\"\n          ],\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"人民。\",\n          \"example\": [\n            \"如：「萌黎」、「萌隸」。\"\n          ],\n          \"link\": [\n            \"通「氓」。\"\n          ],\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"姓。如五代時蜀有萌慮。\",\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"發芽。\",\n          \"example\": [\n            \"如：「萌芽」。\"\n          ],\n          \"quote\": [\n            \"楚辭．王逸．九思．傷時：「明風習習兮龢暖，百草萌兮華榮。」\"\n          ],\n          \"type\": \"動\"\n        },\n        {\n          \"def\": \"發生。\",\n          \"example\": [\n            \"如：「故態復萌」。\"\n          ],\n          \"quote\": [\n            \"管子．牧民：「惟有道者，能備患於未形也，故禍不萌。」\",\n            \"三國演義．第一回：「若萌異心，必獲惡報。」\"\n          ],\n          \"type\": \"動\"\n        }\n      ],\n      \"pinyin\": \"méng\"\n    }\n  ],\n  \"non_radical_stroke_count\": 8,\n  \"radical\": \"艸\",\n  \"stroke_count\": 12,\n  \"title\": \"萌\"\n}\n```\n\n### 2. /uni/\n\n將原始 json 檔，Big5 區之外的字轉成相應的 Unicode 字元表示。\n\n範例： https://www.moedict.tw/uni/%E8%90%8C\n\n```json\n{\n  \"heteronyms\": [\n    {\n      \"bopomofo\": \"ㄇㄥˊ\",\n      \"bopomofo2\": \"méng\",\n      \"definitions\": [\n        {\n          \"def\": \"草木初生的芽。\",\n          \"quote\": [\n            \"說文解字：「萌，艸芽也。」\",\n            \"唐．韓愈、劉師服、侯喜、軒轅彌明．石鼎聯句：「秋瓜未落蒂，凍芋強抽萌。」\"\n          ],\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"事物發生的開端或徵兆。\",\n          \"quote\": [\n            \"韓非子．說林上：「聖人見微以知萌，見端以知末。」\",\n            \"漢．蔡邕．對詔問灾異八事：「以杜漸防萌，則其救也。」\"\n          ],\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"人民。\",\n          \"example\": [\n            \"如：「萌黎」、「萌隸」。\"\n          ],\n          \"link\": [\n            \"通「氓」。\"\n          ],\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"姓。如五代時蜀有萌慮。\",\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"發芽。\",\n          \"example\": [\n            \"如：「萌芽」。\"\n          ],\n          \"quote\": [\n            \"楚辭．王逸．九思．傷時：「明風習習兮龢暖，百草萌兮華榮。」\"\n          ],\n          \"type\": \"動\"\n        },\n        {\n          \"def\": \"發生。\",\n          \"example\": [\n            \"如：「故態復萌」。\"\n          ],\n          \"quote\": [\n            \"管子．牧民：「惟有道者，能備患於未形也，故禍不萌。」\",\n            \"三國演義．第一回：「若萌異心，必獲惡報。」\"\n          ],\n          \"type\": \"動\"\n        }\n      ],\n      \"pinyin\": \"méng\"\n    }\n  ],\n  \"non_radical_stroke_count\": 8,\n  \"radical\": \"艸\",\n  \"stroke_count\": 12,\n  \"title\": \"萌\"\n}\n```\n\n### 3. /pua/\n\n與 /uni/ 相同，已使用 Unicode 字元，但動態組字改用 @medicalwei 的造字替代。\n\n以「[淘漉](http://moedict.org/#淘漉)」為例，內容有一字在 raw 是 {[9ad7]}，在 uni 是 ⿰扌層，在 pua 是 U+F9AD7。\n\n若要顯示 PUA，必須引用萌典字型 [woff](https://www.moedict.tw/MOEDICT.woff) 或 [ttf](https://www.moedict.tw/MOEDICT.ttf)。\n\n範例： https://www.moedict.tw/pua/%E8%90%8C\n\n```json\n{\n  \"heteronyms\": [\n    {\n      \"bopomofo\": \"ㄇㄥˊ\",\n      \"bopomofo2\": \"méng\",\n      \"definitions\": [\n        {\n          \"def\": \"草木初生的芽。\",\n          \"quote\": [\n            \"說文解字：「萌，艸芽也。」\",\n            \"唐．韓愈、劉師服、侯喜、軒轅彌明．石鼎聯句：「秋瓜未落蒂，凍芋強抽萌。」\"\n          ],\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"事物發生的開端或徵兆。\",\n          \"quote\": [\n            \"韓非子．說林上：「聖人見微以知萌，見端以知末。」\",\n            \"漢．蔡邕．對詔問灾異八事：「以杜漸防萌，則其救也。」\"\n          ],\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"人民。\",\n          \"example\": [\n            \"如：「萌黎」、「萌隸」。\"\n          ],\n          \"link\": [\n            \"通「氓」。\"\n          ],\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"姓。如五代時蜀有萌慮。\",\n          \"type\": \"名\"\n        },\n        {\n          \"def\": \"發芽。\",\n          \"example\": [\n            \"如：「萌芽」。\"\n          ],\n          \"quote\": [\n            \"楚辭．王逸．九思．傷時：「明風習習兮龢暖，百草萌兮華榮。」\"\n          ],\n          \"type\": \"動\"\n        },\n        {\n          \"def\": \"發生。\",\n          \"example\": [\n            \"如：「故態復萌」。\"\n          ],\n          \"quote\": [\n            \"管子．牧民：「惟有道者，能備患於未形也，故禍不萌。」\",\n            \"三國演義．第一回：「若萌異心，必獲惡報。」\"\n          ],\n          \"type\": \"動\"\n        }\n      ],\n      \"pinyin\": \"méng\"\n    }\n  ],\n  \"non_radical_stroke_count\": 8,\n  \"radical\": \"艸\",\n  \"stroke_count\": 12,\n  \"title\": \"萌\"\n}\n```\n\n### 4. 國語 /a/\n\n已使用 PUA 造字，再加上內文自動斷詞。\n\n範例： https://www.moedict.tw/a/%E8%90%8C.json\n\n```json\n{\n  \"n\": 8,\n  \"t\": \"萌\",\n  \"r\": \"`艸~\",\n  \"c\": 12,\n  \"h\": [\n    {\n      \"d\": [\n        {\n          \"q\": [\n            \"`說文解字~：「`萌~，`艸~`芽~`也~。」\",\n            \"`唐~．`韓愈~、`劉~`師~`服~、`侯~`喜~、`軒轅~`彌~`明~．`石~`鼎~`聯句~：「`秋~`瓜~`未~`落~`蒂~，`凍~`芋~`強~`抽~`萌~。」\"\n          ],\n          \"type\": \"`名~\",\n          \"f\": \"`草木~`初~`生~`的~`芽~。\"\n        },\n        {\n          \"q\": [\n            \"`韓非子~．`說~`林~`上~：「`聖人~`見~`微~`以~`知~`萌~，`見~`端~`以~`知~`末~。」\",\n            \"`漢~．`蔡邕~．`對~`詔~`問~`灾~`異~`八~`事~：「`以~`杜漸防萌~，`則~`其~`救~`也~。」\"\n          ],\n          \"type\": \"`名~\",\n          \"f\": \"`事物~`發生~`的~`開端~`或~`徵兆~。\"\n        },\n        {\n          \"type\": \"`名~\",\n          \"l\": [\n            \"`通~「`氓~」。\"\n          ],\n          \"e\": [\n            \"`如~：「`萌黎~」、「`萌隸~」。\"\n          ],\n          \"f\": \"`人民~。\"\n        },\n        {\n          \"type\": \"`名~\",\n          \"f\": \"`姓~。`如~`五代~`時~`蜀~`有~`萌~`慮~。\"\n        },\n        {\n          \"q\": [\n            \"`楚辭~．`王~`逸~．`九思~．`傷~`時~：「`明~`風~`習習~`兮~`龢~`暖~，`百草~`萌~`兮~`華~`榮~。」\"\n          ],\n          \"type\": \"`動~\",\n          \"e\": [\n            \"`如~：「`萌芽~」。\"\n          ],\n          \"f\": \"`發芽~。\"\n        },\n        {\n          \"q\": [\n            \"`管子~．`牧民~：「`惟~`有道~`者~，`能~`備~`患~`於~`未~`形~`也~，`故~`禍~`不~`萌~。」\",\n            \"`三國演義~．`第一~`回~：「`若~`萌~`異心~，`必~`獲~`惡報~。」\"\n          ],\n          \"type\": \"`動~\",\n          \"e\": [\n            \"`如~：「`故態復萌~」。\"\n          ],\n          \"f\": \"`發生~。\"\n        }\n      ],\n      \"p\": \"méng\",\n      \"b\": \"ㄇㄥˊ\",\n      \"=\": \"0676\"\n    }\n  ],\n  \"translation\": {\n    \"francais\": [\n      \"germer\"\n    ],\n    \"Deutsch\": [\n      \"Leute, Menschen  (S)\",\n      \"Meng  (Eig, Fam)\",\n      \"keimen, sprießen, knospen, ausschlagen \"\n    ],\n    \"English\": [\n      \"to sprout\",\n      \"to bud\",\n      \"to have a strong affection for (slang)\",\n      \"adorable (loanword from Japanese `萌~え moe, slang describing affection for a cute character)\"\n    ]\n  }\n}\n```\n\n### 5. 閩南語 /t/\n\n結構基本同 `/a/`。\n\n範例： https://www.moedict.tw/t/%E7%99%BC%E7%A9%8E.json\n\n```json\n{\n  \"t\": \"`發~`穎~\",\n  \"h\": [\n    {\n      \"_\": \"8778\",\n      \"T\": \"huat-ínn\",\n      \"s\": \"`發芽~\",\n      \"d\": [\n        {\n          \"type\": \"`動~\",\n          \"f\": \"`發芽~、萌`芽~。`植物~`的~`種子~`發出~`芽~。\",\n          \"e\": [\n            \"￹`樹仔~`發穎~`矣~！￺Tshiū-á huat-ínn--ah! ￻`樹~`發芽~`了~！\"\n          ]\n        }\n      ]\n    }\n  ]\n}\n```\n\n### 6. 客語 /h/\n\n結構基本同 `/a/`。\n\n範例： https://www.moedict.tw/h/%E7%99%BC%E8%8A%BD.json\n\n```json\n{\n  \"t\": \"`發~`芽~\",\n  \"h\": [\n    {\n      \"=\": \"02735\",\n      \"p\": \"四?⃞fad²nga¹¹ 海?⃞fad⁵nga⁵⁵ 大?⃞fad²¹nga¹¹³ 平?⃞fad²nga⁵⁵ 安?⃞fad²⁴nga⁵³\",\n      \"s\": \"`暴~`芽~,`暴筍~\",\n      \"d\": [\n        {\n          \"e\": [\n            \"￹`春天~`一~`到~，`草~`仔~`樹仔~`相賽~`開始~`發芽~。￻`春天~`一~`到~，`草~`木~`相~繼`開始~萌`芽~。\"\n          ],\n          \"f\": \"`植物~`的~`種~`子~，`因~`本身~`的~`生理~、`外~`部~`環~`境~`條件~`的~`合適~，`而~`開始~萌`發~`的~`一~`種~`現象~。\",\n          \"type\": \"`動~\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n### 7. 兩岸詞典 /c/\n\n結構基本同 `/a/`。\n\n範例： https://www.moedict.tw/c/%E9%BE%8D.json\n\n```json\n{\n  \"t\": \"龍\",\n  \"h\": [\n    {\n      \"p\": \"lónɡ\",\n      \"A\": \"龙\",\n      \"d\": [\n        {\n          \"e\": [\n            \"例?⃝「`飛~`龍~`在~`天~」、「`生龍活虎~」、「`葉公好龍~」、「`畫龍點睛~」。\"\n          ],\n          \"f\": \"`傳說~`中的~`神異~`動物~，`有~`角~、`鱗~、`爪~、`鬚~，`能~`上天~`入~`水~，`興~`雲~`降雨~。\"\n        },\n        {\n          \"e\": [\n            \"例?⃝「`龍顏~`大~`怒~」、「`龍~`體~`欠安~」、「`龍~`子~`龍~`孫~」。\"\n          ],\n          \"f\": \"`古代~`用作~`帝王~`的~`象徵~；`也~`指~`與~`帝王~`相關~`的~`物~`或~`人~。\"\n        },\n        {\n          \"e\": [\n            \"例?⃝「`人中~`之~`龍~」。\"\n          ],\n          \"f\": \"`借~`指~`首領~`或~`豪傑~`才~`俊~。\"\n        },\n        {\n          \"e\": [\n            \"例?⃝「`龍~`旗~」、「`龍舟~」、「`龍~`票~」。\"\n          ],\n          \"f\": \"`形狀~`像~`龍~`或~`裝飾~`著~`龍~`的~`圖案~`的~。\"\n        },\n        {\n          \"e\": [\n            \"例?⃝「`排~`成長~`龍~」、「`車水馬龍~」、「`大火~`蔓延~`一片~，`形成~`一~`條~`火龍~」。\"\n          ],\n          \"f\": \"`指~`某~`些~`連~`成~`一~`串~，`形狀~`像~`龍~`的~`東西~。\"\n        },\n        {\n          \"e\": [\n            \"例?⃝「`恐龍~」、「`翼~`手~`龍~」。\"\n          ],\n          \"f\": \"`指~`遠~`古~`某~`些~`巨大~`的~`爬行動物~。\"\n        },\n        {\n          \"f\": \"`姓~。\"\n        },\n        {\n          \"f\": \"`二~`一~`四部~`首~`之~`一~。\"\n        }\n      ],\n      \"_\": \"1048060000\",\n      \"b\": \"ㄌㄨㄥˊ\"\n    }\n  ],\n  \"translation\": {\n    \"francais\": [\n      \"dragon\",\n      \"impérial\",\n      \"(nom de famille)\",\n      \"212e radical\"\n    ],\n    \"Deutsch\": [\n      \"Drache  (S)\",\n      \"Long (Name)  (Eig, Fam)\",\n      \"Schlange (auf der Speisekarte)  (Ess)\",\n      \"Radikal Nr. 212 = Drache, Drachen \"\n    ],\n    \"English\": [\n      \"surname Long\",\n      \"dragon\",\n      \"CL:`條~|条[tiao2]\",\n      \"imperial\"\n    ]\n  }\n}\n```\n\n## API 使用範例\n\n### Ajax\n\n/uni/ 範例\n\n```js\n $.ajax({\n   url: \"https://www.moedict.tw/uni/萌\",\n   dataType: \"json\",\n   success: function(result) {\n     console.log(result);\n   }\n });\n```\n\n/a/ 範例\n\n```js\n $.ajax({\n   url: \"https://www.moedict.tw/a/萌.json\",\n   dataType: \"json\",\n   success: function(result) {\n     console.log(result);\n   }\n });\n```\n\n### jsonp\n\ncallback= 參數須固定為 moedict_jsonp_callback\n\n範例： https://www.moedict.tw/uni/萌?callback=moedict_jsonp_callback\n\najax 範例\n\n```js\n $.ajax({\n   url: \"https://www.moedict.tw/uni/萌\",\n   dataType: \"jsonp\",\n   jsonpCallback: \"moedict_jsonp_callback\",\n   success: function(result) {\n     console.log(result);\n   }\n });\n```\n\n### Terminal\n\n/uni/ 範例\n\n    $ curl \"https://www.moedict.tw/uni/萌\"\n\n/a/ 範例\n\n    $ curl \"https://www.moedict.tw/a/萌.json\"\n\n# 其他\n\n`index.*.json` 為「重編國語辭典（修訂本）」的完整詞條清單。\n\n`dict-concised.audio.json` 為「國語辭典簡編本」的詞條發音\n檔名清單。\n\n其他平台版本、API 及原始資料等，均可在 http://3du.tw/ 取得。\n\n感謝 http://g0v.tw/ 頻道內所有協助開發的朋友們。\n\n# CC0 1.0 公眾領域貢獻宣告\n\n除前述資料檔之外，本目錄下的所有其他檔案，由作者 唐鳳 在法律\n許可的範圍內，拋棄該著作依著作權法所享有之權利，包括所有相關\n與鄰接的法律權利，並宣告將該著作貢獻至公眾領域。\n\n* \u003chttps://creativecommons.org/publicdomain/zero/1.0/deed.zh_TW\u003e\n* \u003chttp://wiki.creativecommons.org.tw/cc-zero-1-0:pre-final\u003e\n\n# 教育部國語辭典公眾授權網\n\nhttps://language.moe.gov.tw/001/Upload/Files/site_content/M0001/respub/\n\n# 教育部版權頁\n\n        =====================================================\n        編　　輯　　者：        教育部國語推行委員會\n        國語推行委員會主任委員：童春發\n        編輯委員會主任委員：    李　鍌\n        總　　編　　輯：        李殿魁\n        副　總　編　輯：        曾榮汾\n\n        發　　行　　人：        杜正勝\n        發　　行　　所：        教育部\n        地　　　　　址：        臺北市中山南路5號\n        電　　　　　話：        (02)7736-6801\n        =====================================================\n\n\n---\n\n## 📝 補充說明（由 nobody 於 2025 年貢獻）\n\n本次更新建議，僅針對前端語言顯示文字進行調整，以更貼近當代國家語言政策與民間用語趨勢。以下為修改項目：\n\n- 「國語辭典」 → 「華語辭典」\n- 「臺灣閩南語」 → 「臺灣台語」\n- 「臺灣客家話」 → 「臺灣客語」\n\n實際語言代碼（zh、nan、hak）與系統資料結構未做變動，僅限於介面顯示文字。  \n本次補件亦經由 AI 協助完成（ChatGPT），由提案者手動確認與提交。  \n期盼此小幅調整，能促進語言多元性與公共工具使用上的尊重與平衡。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg0v%2Fmoedict-webkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg0v%2Fmoedict-webkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg0v%2Fmoedict-webkit/lists"}