Show closest word suggestion when translation or conjugation is invalid
@prince-0408 がすでに取り組んでいます。
2026年4月1日 から。
評価
調査の方向性
まず、Translate.swift と Conjugate.swift にある既存の queryAutocompletions フローと無効なコマンドの処理を追跡します。次に、CommandVariables.swift と KeyboardViewController.swift を調べて、コマンドバーの状態がどのように表現され、レンダリングされるかを確認します。Translate と Conjugate の無効な入力で、既存の動作を削除せずに、最も近い一致する単語を「もしかして」による候補として表示できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Terms
- I have searched open and closed feature requests
- I agree to follow Scribe-iOS' Code of Conduct
Description
Summary
When a user enters a word that isn't found during Translate or Conjugate, Scribe currently shows a generic "invalid" error with no further guidance. Users are left with no idea whether they made a typo or the word simply doesn't exist in the database.
Problem
The invalid state (commandState = .invalid) gives zero actionable feedback. A user who types "hause" instead of "Haus" gets the same error as someone who types complete nonsense — no distinction, no hint.
Proposed Solution
Reuse the existing queryAutocompletions infrastructure to find the closest matching word when a command returns invalid, and display it in the command bar as:
"Did you mean: Haus?"
This covers both Translate and Conjugate commands since both already funnel through commandState = .invalid.
Affected Files
| File | Change |
|---|---|
Translate.swift |
Surface closest match on invalid result |
Conjugate.swift |
Surface closest match on invalid result |
CommandVariables.swift |
State handling for "did you mean" display |
KeyboardViewController.swift |
Render suggestion in command bar |
Notes
LanguageDBManager.shared.queryAutocompletions(word:)already returns close matches — no new DB queries needed- Purely additive, no existing logic removed
- Strings can be hard-coded for now pending i18n entry
- 主要言語
- Swift
- スター
- 171
- フォーク
- 109
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
scribe-org/Scribe-iOS のほかの issue
-
Grammar checker POC再び着手できるかも @henrikth93 が 73 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンquestion
scribe-org/Scribe-iOS#662 · 担当者 1 名 ·
-
Settings menu look bad on iPad Air 11-inch対応中かも @prince-0408 が 91 日前に担当しました。 オープンdesign
scribe-org/Scribe-iOS#659 · コメント 3 件 · 担当者 1 名 ·
-
Implement Quick Tutorial Flow with Noun Annotation Logic Rules対応中かも @prince-0408 が 171 日前に担当しました。 オープン-next release-
scribe-org/Scribe-iOS#649 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
-
Add haptic feedback on key press for Scribe keyboards対応中かも @prince-0408 が 204 日前に担当しました。 オープン
scribe-org/Scribe-iOS#638 · リアクション 1 件 · 担当者 1 名 ·
-
feat: add offline network indicator on download screen対応中かも @prince-0408 が 204 日前に担当しました。 オープンhelp wanted
scribe-org/Scribe-iOS#637 · コメント 1 件 · 担当者 1 名 ·
scribe-org/Scribe-iOS の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
deltachat/deltachat-ios#3402 ·
メンテナーはふだん 1 日以内に返信
-
🚀 [firebase_core] Bump Firebase iOS SDK (13.0.0 → 13.1.0)対応中かも @SelaseKay が今日担当しました。 オープンNeeds Attention type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
firebase/flutterfire#18848 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
a:false-positive
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
Idle CPU stays at ~8% after the "Text wasn't inserted" card is shown once対応中かも @nickbecker が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
altic-dev/FluidVoice#1217 ·
メンテナーはふだん 1 日以内に返信
-
🎉 Add Tiny RDMオープンaddition
難易度 1/5 1時間未満 初心者へのやさしさ 79/100
jaywcjlove/awesome-mac#3733 ·
メンテナーはふだん 1 日以内に返信