簡轉繁詞條建議:「干聊」→「乾聊」、「不准動」,以及臺灣用字「帳單/帳號/帳戶」

Open Beginner friendly
#1,530 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp

Research direction

Start by reading data/dictionary/STPhrases.txt and data/dictionary/TWPhrases.txt, then check the related tests under test/ for the dictionary test format. Add the proposed entries for 干聊 and 不准動/不准走 to STPhrases.txt, and the three 帳 forms to TWPhrases.txt. Done when tests confirm the suggested conversions for s2t and s2tw/s2twp while the noted context dependent examples remain unchanged.

Written by the indexing model from the issue text.

Description

用 opencc-js 1.4.2(cn → t / twp)轉換時遇到以下幾處。對照了 master 的 data/dictionary/,目前都還沒有對應詞條:

輸入 目前輸出(s2t 與 s2twp 相同) 建議 說明
我们干聊了一晚上 我們幹聊了一晚上 乾聊 「干聊」是光聊天、沒有別的(乾),不是「幹」。STPhrases 沒有「干聊」,所以「干」取了第一個候選「幹」。
不准动、不准走 不準動、不準走 不准動、不准走 「不准」作「不許」解時是「准」。STPhrases 已有 不准他、不准你 → 不准,可以照同樣的方式補上常見的「不准+動詞」。「說不準」這類「不準確」的用法不受影響。
这个月的账单、你的账号、账户余额 賬單、賬號、賬戶 帳單、帳號、帳戶(只限 s2tw / s2twp) 臺灣一般寫作「帳」(例如銀行與電信業者的「帳單」「帳號」「帳戶」)。TWPhrases.txt 也已經用「帳」:借記卡 → 簽帳金融卡。

建議詞條:

# STPhrases.txt
干聊	乾聊
不准动	不准動
不准走	不准走

# TWPhrases.txt
賬單	帳單
賬號	帳號
賬戶	帳戶

另外兩個我們在本地處理、但不建議放進詞典的例子,供參考:「她扎着马尾」→「扎著」(應為「紮著」,但「扎着」也可能是「刺著」);「卡里没钱」→「卡里」(應為「卡裡」,但 STPhrases 的 卡里 是譯名)。這兩個要看上下文,詞典層面不好修。

如果方向可以,我可以照 test/ 的格式補上測試案例並開 PR。

Summary: three s2t/s2twp suggestions (干聊, 不准+verb, Taiwan 帳 for 賬單/賬號/賬戶), reproduced with opencc-js 1.4.2 and checked against the current master dictionaries. Happy to open a PR with test cases.

Dominant language
C++
Stars
10.1k
Forks
1.1k
Avg merge
47m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BYVoid/OpenCC

All issues in BYVoid/OpenCC

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.