Skip to content

name_tts_segments・name_ipaの長音をːに統一し語頭ら行をlに修正#1539

Merged
TinyKitten merged 1 commit into
devfrom
fix/tts-ipa-long-vowel-initial-r
Jun 16, 2026
Merged

name_tts_segments・name_ipaの長音をːに統一し語頭ら行をlに修正#1539
TinyKitten merged 1 commit into
devfrom
fix/tts-ipa-long-vowel-initial-r

Conversation

@TinyKitten

Copy link
Copy Markdown
Member

概要

name_tts_segmentsname_ipaname_roman_ipa の発音が一部の駅・路線で不自然になる問題を修正する。Tokyo(to.ɯkʲo.ɯ)や Ōsaka(o.ɯsaka)の長音が母音分割で読まれる点と、Roppongi など語頭ら行が不自然に聞こえる点に対応。

変更の種類

  • バグ修正
  • 新機能
  • データの修正・追加
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • かな正書法の長音(おう/おお/えい/ええ/うう/いい/ああ)を長音記号 ː に統一。トウキョウto.ɯkʲo.ɯ から toːkʲoː になり、Azure ja-JP で「とーきょー」と自然に読まれる。
  • 副次効果として、マクロン由来の オウ/オオ 揺れも解消。Ōsaka は以前 o.ɯsaka と誤っていたが、オウ/オオ 双方が に集約されカタカナ読み(オオサカ)と同じ oːsaka に収束する。
  • 語頭(名称先頭・区切り直後)のら行 ɾ を側面接近音 l に置換。ロッポンギloppongiリョウゴクlʲoːgokɯKasai-Rinkai ParkRinkailinka.i。語中の ɾトリデtoɾide 等)は弾き音のまま維持。
  • 上記はいずれも name_ipa(日本語読み)と name_tts_segments の両方に適用。ː は対象モーラのタグを引き継ぐためピッチアクセント(下げ核)の整合は維持。
  • 既存テストを新しい長音・ら行の期待値へ更新し、回帰テストを追加(Roppongi の語頭ら行、区切り後ら行、語中ら行維持、マクロン収束 等)。

テスト

  • cargo fmt --all -- --check が通ること
  • cargo clippy -- -D warnings が通ること
  • cargo testSQLX_OFFLINE=true)が通ること

関連Issue

スクリーンショット(任意)

おう/おお/えい等のかな長音をto.ɯ→toːのように長音記号ːへ統一し、
Azure ja-JPで自然に読まれるようにする。マクロン由来のオウ/オオ揺れ
(Ōsaka→o.ɯsaka)もoːsakaへ収束する。あわせて語頭(区切り直後)の
ら行ɾをl化(ロッポンギ→loppongi)。語中のɾは弾き音のまま維持。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@TinyKitten TinyKitten self-assigned this Jun 16, 2026
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 147669ac-89cb-4ee4-9b9a-b14222cc71e1

📥 Commits

Reviewing files that changed from the base of the PR and between d18d16d and 3fe110a.

📒 Files selected for processing (3)
  • stationapi/src/domain/ipa.rs
  • stationapi/src/use_case/dto/line.rs
  • stationapi/src/use_case/dto/station.rs
 _______________________________________
< Your code's Big O notation: `O(WTF)`. >
 ---------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/tts-ipa-long-vowel-initial-r

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can use SkillSpector to scan AI agent skill manifests and MCP configurations for security risks.

SkillSpector analyzes SKILL.md files and MCP configuration files such as mcp.json for vulnerabilities, malicious patterns, and other security issues. See the SkillSpector documentation for details.

@TinyKitten

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
{}

@TinyKitten TinyKitten merged commit 0f13506 into dev Jun 16, 2026
11 checks passed
@TinyKitten TinyKitten deleted the fix/tts-ipa-long-vowel-initial-r branch June 16, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant