Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autocorrect #2

Open
2 tasks done
andrewtavis opened this issue Nov 22, 2021 · 5 comments
Open
2 tasks done

Add autocorrect #2

andrewtavis opened this issue Nov 22, 2021 · 5 comments
Labels
-priority- High priority feature New feature or request help wanted Extra attention is needed

Comments

@andrewtavis
Copy link
Member

andrewtavis commented Nov 22, 2021

Terms

Description

A major system keyboard feature that Scribe still lacks is autocorrect. This feature would ideally function in both the normal text proxy and the Scribe command bar so that a user could correctly type in a word to translate, conjugate or get the plural for. The data for each Scribe keyboard could likely be used as a reference for this feature.

This Stack Overflow question could be of help.

Discussions of how best to implement this feature and code contributions are more than welcome!

@andrewtavis andrewtavis added feature New feature or request help wanted Extra attention is needed -priority- High priority labels Nov 22, 2021
@andrewtavis andrewtavis changed the title Add autocorrect functionality Add autocorrect (functionality) Nov 22, 2021
@andrewtavis andrewtavis changed the title Add autocorrect (functionality) Feature: Add autocorrect Nov 22, 2021
@andrewtavis andrewtavis changed the title Feature: Add autocorrect Add autocorrect Nov 30, 2021
@andrewtavis
Copy link
Member Author

andrewtavis commented Jan 19, 2022

UITextChecker and its guesses attribute are potentially helpful for this. There's also a blog post on how to use it.

@andrewtavis
Copy link
Member Author

This swift implementation of the popular spelling correction blog post by Peter Norvig might also be of help.

@andrewtavis
Copy link
Member Author

andrewtavis commented Jan 19, 2022

Having autocorrect function in the command bar would be of less importance as autocomplete should help a user select a good option.

The functionality of this feature would be similar to that of annotating nouns and prepositions when they're selected (which as of now requires the Scribe key to be pressed - see this SO question for a potential solution). Selecting a word that is not in any of the noun, verb, or preposition dictionaries would trigger the three buttons to appear with optional fixes. This would require that words be annotated if there are spelling mistakes, which as of now the keyboards are doing only after being switched to.

@andrewtavis
Copy link
Member Author

Allowing a user to add words to not be corrected would also be helpful when #16 is finished and settings are possible.

@andrewtavis
Copy link
Member Author

Note that as mentioned in #241 we need this to account for dialects. In German German something like Buecher should be corrected to Bücher, but for Swiss German it shouldn't :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-priority- High priority feature New feature or request help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

1 participant