feat: learn dictionary replacements from corrections to dictated text

Abierto
#151 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
swift
Área
desktop

Línea de trabajo

The payload names no files or tests, so start from the existing Dictionary replacement feature and read how user-defined replacements are stored and applied to dictated text. Detecting edits to recently inserted text is platform-specific, and the issue leaves the approach open, so settle that with maintainers before coding. Related issue #72 covers the earlier request for recurring name errors.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement priority:P3

Problem

SpeakType can repeatedly misspell the same name or phrase. The existing Dictionary lets users add replacements manually, but correcting a dictation still requires a separate trip to Dictionary to teach the app that correction.

For example, my name is Sinh Sinh, but dictation may produce Sing Sing. If I select that text and correct it to Sinh Sinh, I want SpeakType to remember the correction automatically and use the right spelling next time.

Requested behavior

Add a feature that learns dictionary replacements from corrections to recently dictated text:

  1. I dictate into an app, and SpeakType inserts text containing “Sing Sing.”
  2. I select or edit that portion of the text and change it to “Sinh Sinh.”
  3. SpeakType recognizes the correction and automatically adds the corresponding replacement to its Dictionary, without requiring me to re-enter both versions manually.
  4. Future dictations that would produce “Sing Sing” instead output “Sinh Sinh.”

This should work for corrected words and multiword phrases, including names, technical terms, and other recurring transcription mistakes—not just this particular name.

User control and expected behavior

  • Offer a setting to enable or disable learning from corrections.
  • Make learned entries visible in Dictionary, where they can be edited, disabled, or deleted. A small “Correction remembered” notice with Undo would make automatic learning easy to review.
  • Preserve corrections across app restarts and avoid creating duplicate entries or silently replacing a conflicting user-defined rule.
  • Distinguish spelling/transcription corrections from unrelated edits or whole-sentence rewrites, so ordinary editing does not create unwanted replacements.
  • Keep learned replacements local. Limit correction detection to text recently inserted by SpeakType rather than monitoring unrelated typing. Document any platform or target-app limitations.

Implementation consideration

The desired workflow includes correcting text in the destination app after dictation. Detecting that reliably may require platform-specific support. If automatic detection is not available everywhere, a “Remember this correction” action could be a fallback, while automatic learning remains the goal.

Related: #72 requested a dictionary for recurring name errors. This request builds on the existing Dictionary by learning entries directly from user corrections.

Lenguaje dominante
Swift
Estrellas
540
Forks
74
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de karansinghgit/speaktype

Todos los issues de karansinghgit/speaktype

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.