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

[pt] Main suggestion not appearing #10479

Open
ricardojosehlima opened this issue Apr 9, 2024 · 8 comments
Open

[pt] Main suggestion not appearing #10479

ricardojosehlima opened this issue Apr 9, 2024 · 8 comments
Assignees

Comments

@ricardojosehlima
Copy link

Hi,
I'm using the premium version on Google Docs and for "ja", the main suggestion that should be "já" does not appear, as seen in the attached file.
Screenshot 2024-04-09 08 03 50

@p-goulart
Copy link
Collaborator

p-goulart commented Apr 9, 2024

Can't repro this anywhere, on either premium or OS, on any client. Local tests with the latest released version likewise show as the first suggestion 🤔

Is this behaviour limited to Google Docs? (That would be even weirder, but you never know...)

@ricardojosehlima
Copy link
Author

ricardojosehlima commented Apr 9, 2024

Yeah, that's weird because for sure, before the suggestion was 'já', it hasn't been like this.
It happened on Canva too. I'm using Google Chrome in Windows 11.

@p-goulart
Copy link
Collaborator

@ricardojosehlima can you confirm this is still occurring? We have since then released new dictionary binaries.

@ricardojosehlima
Copy link
Author

@p-goulart Hi, not only it persists, now it has been joined by a new "friend", look at the attached image.
What I have observed is that in those suggestions for "não" there are words that I have inserted in the dictionary (Naro, Nham), same for "ja" (JP, Jh, 2A)
Captura de tela 2024-04-16 141343

@p-goulart
Copy link
Collaborator

Aha. That was the piece of the puzzle I was missing. Now I can repro. Added JAX to my personal PT dictionary and akreayd to my personal EN dictionary... and lo and behold:

Screenshot 2024-04-16 at 7 21 29 PM Screenshot 2024-04-16 at 7 24 57 PM

This is, for now, 'expected behaviour', in that words from the user's personal dictionary are ordered first in the speller's suggestions... But I 100% see the usability issue.

@jaumeortola, thought you might be interested. Do you know of a quickfix before I start investigating?

@jaumeortola
Copy link
Member

We are giving top priority to all suggestions from user dicts. See, for example:

return Lists.newArrayList(Iterables.concat(userSuggestions, defaultSuggestions));

Maybe for short words (up to 4 or 5 characters), we should change that priority. That would mean probably ignoring the user words.

A quicker fix is to add these frequent errors to a simple replace rule:
ja=já
nao=não
sao=são

@ricardojosehlima
Copy link
Author

I think the replacement rule is a good idea, specially for nao and sao. For ja, maybe it was another word intended different from "já", but it may be rare.
As for prioritizing the user dicts, after some time no suggestion from LT will appear, if the user inserted some 4 or 5 words that look like the error. But as @jaumeortola pointed, maybe for small words it shouldn't be so and the priority could hold for longer words.

@p-goulart
Copy link
Collaborator

@ricardojosehlima a solution was committed by @jaumeortola at add8cee that specifically targets short words. If it causes no problems, it will be released to the premium version some time next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants