簡轉繁詞條建議:「干聊」→「乾聊」、「不准動」,以及臺灣用字「帳單/帳號/帳戶」
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
- Domain
- internationalization
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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BYVoid/OpenCC
-
术忽 → 朮忽 should be the s2t mapping (currently 術忽)Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
-
update TWPhrasesOther.txtMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
「100人参加了这次活动」转化错误May be free again A pull request for this issue was closed without being merged. Opentriaged
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
挽「发」 -> 挽「發」May be free again A pull request for this issue was closed without being merged. Opentriaged
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
砲/炮 分化Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Similar issues
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/DirectXShaderCompiler#9173 ·
Maintainers usually reply within 2 days
-
arch-based bug niri
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
noctalia-dev/noctalia#5552 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 5 days
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
EchoTools/nevr-runtime#2912 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
ungive/discord-music-presence#1090 · 1 comment ·