Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Show closest word suggestion when translation or conjugation is invalid

オープン
#640 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

@prince-0408 がすでに取り組んでいます。

2026年4月1日 から。

  • #642 @prince-0408 による — オープン
  • #655 @garvitkaushik-123 による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
swift
領域
mobile

調査の方向性

まず、Translate.swift と Conjugate.swift にある既存の queryAutocompletions フローと無効なコマンドの処理を追跡します。次に、CommandVariables.swift と KeyboardViewController.swift を調べて、コマンドバーの状態がどのように表現され、レンダリングされるかを確認します。Translate と Conjugate の無効な入力で、既存の動作を削除せずに、最も近い一致する単語を「もしかして」による候補として表示できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Terms
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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

scribe-org/Scribe-iOS のほかの issue

scribe-org/Scribe-iOS の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。