Skip to content

Fix phonetics for 折 - #727

Merged
lukhnos merged 5 commits into
openvanilla:masterfrom
xatier:zhe
Nov 12, 2025
Merged

Fix phonetics for 折#727
lukhnos merged 5 commits into
openvanilla:masterfrom
xatier:zhe

Conversation

@xatier

@xatier xatier commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

The concise dictionary prefers 折騰 ㄓㄜ ㄊㄥˊ

Ref: https://dict.concised.moe.edu.tw/search.jsp?md=1&word=%E6%8A%98&size=-1

The concise dictionary prefers `折騰 ㄓㄜ ㄊㄥˊ`

Ref: https://dict.concised.moe.edu.tw/search.jsp?md=1&word=%E6%8A%98&size=-1
Copilot AI review requested due to automatic review settings November 5, 2025 00:51
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @xatier, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses the phonetic transcription for the Chinese character "折" by adding its correct entry to the BPMFBase.txt data file. The change aims to improve the accuracy of the phonetic system by incorporating the pronunciation "ㄓㄜ" (zhe), aligning it with established dictionary references.

Highlights

  • Phonetic Data Correction: A new phonetic entry for the Chinese character "折" (zhé) has been added to the BPMFBase.txt file.
  • Data Accuracy: The addition ensures the phonetic transcription aligns with the preferred pronunciation "ㄓㄜ" (zhe) as referenced by the concise dictionary.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

這個 Pull Request 為「折」字新增了 ㄓㄜ(zhē)的讀音,修正了如「折騰」等詞語的發音問題,這是一個很好的改進。在審閱過程中,我發現「折」字還有另一個讀音 ㄕㄜˊ(shé)也尚未包含在資料庫中。我已在相關檔案中留言,建議可以趁此機會一併補上,讓資料更臻完善。整體而言,這是一個有價值的貢獻,感謝您的付出。

Comment thread Source/Data/BPMFBase.txt

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds five new Chinese phrases to the dictionary data files: "將功折罪", "損兵折將", "東折西繞", "不折不扣" (alternate reading), and "折騰" (alternate reading). It also adds a new heterophony reading for the character 折 (ㄓㄜ) to BPMFBase.txt.

Key Changes

  • Added 5 phrase entries with their Bopomofo mappings
  • Added a new heterophony reading for the character 折 (ㄓㄜ, first tone)
  • All phrases added with frequency value of 0 in phrase.occ

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
Source/Data/phrase.occ Added 3 new phrases (將功折罪, 損兵折將, 東折西繞) with frequency 0
Source/Data/BPMFMappings.txt Added 5 phrase mappings including 2 alternate readings for existing phrases (不折不扣, 折騰) and the 3 new phrases
Source/Data/BPMFBase.txt Added heterophony reading for 折 (ㄓㄜ, first tone) alongside existing reading (ㄓㄜˊ, second tone)

Comment thread Source/Data/BPMFBase.txt
Comment thread Source/Data/BPMFMappings.txt
Comment thread Source/Data/BPMFMappings.txt
@xatier

xatier commented Nov 5, 2025

Copy link
Copy Markdown
Contributor Author

/gemini review

@xatier
xatier requested a review from Copilot November 5, 2025 01:19

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly adds two additional pronunciations for the character '折' based on the provided dictionary reference. The changes in BPMFBase.txt look good. However, there's a small inconsistency in the ordering of the new pronunciations within the heterophony list files compared to the dictionary reference. I've left specific comments with suggestions to align the data with the reference. Overall, a good data update.

Comment thread Source/Data/heterophony2.list Outdated
Comment thread Source/Data/heterophony3.list Outdated
@xatier

xatier commented Nov 5, 2025

Copy link
Copy Markdown
Contributor Author

/gemini review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Comment thread Source/Data/heterophony1.list Outdated
Comment thread Source/Data/heterophony2.list Outdated
Comment thread Source/Data/heterophony3.list Outdated

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

你好,感謝你的貢獻。這次的變更參照了字典資料,為「折」字新增了多個讀音,並同步更新了相關的多音字列表。變更內容看起來正確且完整,也修正了其中一個檔案結尾缺少換行符的問題。謝謝!

@xatier
xatier requested a review from Copilot November 5, 2025 01:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

@lukhnos lukhnos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one comment with a change suggested by automated review.

Comment thread Source/Data/BPMFBase.txt

@lukhnos lukhnos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@lukhnos
lukhnos merged commit f77341e into openvanilla:master Nov 12, 2025
4 checks passed
This was referenced Nov 12, 2025
@xatier
xatier deleted the zhe branch April 3, 2026 03:11
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.

3 participants