Show closest word suggestion when translation or conjugation is invalid
@prince-0408 đang làm issue này rồi.
Từ ngày 1/4/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
Bắt đầu bằng cách lần theo luồng queryAutocompletions hiện có và cách xử lý lệnh không hợp lệ trong Translate.swift và Conjugate.swift. Sau đó kiểm tra CommandVariables.swift và KeyboardViewController.swift để xem trạng thái của thanh lệnh được biểu diễn và render như thế nào. Được xem là hoàn tất khi các đầu vào không hợp lệ của Translate và Conjugate có thể hiển thị từ khớp gần nhất dưới dạng gợi ý “Ý bạn là”, mà không loại bỏ hành vi hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Swift
- Star
- 171
- Fork
- 109
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của scribe-org/Scribe-iOS
-
Grammar checker POCCó thể làm lại được @henrikth93 đã nhận 73 ngày trước và không có pull request nào đang mở. Đang mởquestion
scribe-org/Scribe-iOS#662 · 1 người được giao ·
-
Settings menu look bad on iPad Air 11-inchCó thể đã có người làm @prince-0408 đã nhận 91 ngày trước. Đang mởdesign
scribe-org/Scribe-iOS#659 · 3 bình luận · 1 người được giao ·
-
Implement Quick Tutorial Flow with Noun Annotation Logic RulesCó thể đã có người làm @prince-0408 đã nhận 171 ngày trước. Đang mở-next release-
scribe-org/Scribe-iOS#649 · 1 bình luận · 1 reaction · 1 người được giao ·
-
Add haptic feedback on key press for Scribe keyboardsCó thể đã có người làm @prince-0408 đã nhận 203 ngày trước. Đang mở
scribe-org/Scribe-iOS#638 · 1 reaction · 1 người được giao ·
-
feat: add offline network indicator on download screenCó thể đã có người làm @prince-0408 đã nhận 204 ngày trước. Đang mởhelp wanted
scribe-org/Scribe-iOS#637 · 1 bình luận · 1 người được giao ·
Tất cả issue của scribe-org/Scribe-iOS
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
storage: remove unused BucketName wrapper aliasesCó thể đã có người làm @chingor13 đã nhận hôm nay. Đang mởapi: storage type: cleanup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
googleapis/google-cloud-swift#1509 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
📦 expo-updates contributor: external iOS needs review sdk-57 sdk-58 severity: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
expo/expo#52004 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
marcovisona/arca#5 ·
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
luis-guillen/airy#2 ·