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

feat(web): add new specifiable model method for validating contexts for autocorrect #12952

Open
jahorton opened this issue Jan 20, 2025 · 0 comments
Milestone

Comments

@jahorton
Copy link
Contributor

As noted by #12648, users will not expect autocorrect to trigger for all contexts. For example, in English, users generally don't expect autocorrect to trigger when typing numbers. That said, this can be language-dependent - there are some languages that use digits as letters in some contexts. (#12877 (comment))

To facilitate good all-around handling, #12877 implemented a default behavior similar to that of programming identifiers as a baseline for most languages. For cases like those alluded to with the linked comment, we also wish to add space for individual lexical models to include a method that overrides this behavior. The method would then return a boolean value indicating whether or not autocorrect is considered valid for the current token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant