-
Notifications
You must be signed in to change notification settings - Fork 83
Fix/plural word not recognised #468
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
Fix/plural word not recognised #468
Conversation
…onsistently Previously, plural suggestions were not shown for capitalized words (e.g. "Hellos") due to case-sensitive matching. This commit ensures that plural detection consistently lowercases input before checking against the pluralWords list, resolving Issue scribe-org#467.
Thank you for the pull request! ❤️The Scribe-Android team will do our best to address your contribution as soon as we can. If you're not already a member of our public Matrix community, please consider joining! We'd suggest that you use the Element client as well as Element X for a mobile app, and definitely join the |
Maintainer ChecklistThe following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)
|
Hi @andrewtavis and @angrezichatterbox. I resolved the issues of already plural(added a new scribe state to track this) and ensured the "PL" keyword shows(word case sensitivity was causing the issue). |
Hey @DeleMike 👋 Things seem to be working for English, but I'm not seeing the same functionality for German. When I type in "Bücher" for books I don't see a |
Thanks for the observation @andrewtavis! I saw that it reported "Nicht in wikidata" so I thought maybe some words are not available for German, I also tried french too. Well, I will check. Thank you! |
Hi @andrewtavis, I've fixed the issue. Can you please confirm it works from your end? I had to touch the test file because it was failing for some because of |
Now if we use the use the keyboard and we already have a word typed in the input and then we go to plural mode and type a word which is plural and it goes to already plural. It would search if we click on the enter button rather than moving to idle state. Is this intended ? |
Other than that everyone looks good to me :) |
Thanks for the review @angrezichatterbox . I don't fully understand please. Can you show me a visual? |
The issue is fixed except in a specific case we would have the enter being instead of redirecting to idle state would work as enter. When there is existing text in the input field and then we would have an already plural word and we would exit to the idle state using enter would directly use the enter and enter the text in the field rather than going to idle state. I would try to get a recording if the explanation is still not clear. |
I'm so sorry @angrezichatterbox! I do not fully understand. Could you please explain more? If we revert to the idle state, the "already plural" text will not show. Unless I'm getting the issue wrong. A recording will be nice, please. |
plural_command_error.webmThis is video recording of the bug. |
When in ALREADY_PLURAL state, Enter key now returns to idle state instead of performing Enter action in input field.
@angrezichatterbox I have understood the problem. I made a fix for it. Also, I fixed the issue with the keyboard key text sizes are being too large what do you think @andrewtavis ? Screenrecorder-2025-08-10-17-55-59-395.mp4 |
@angrezichatterbox, FYI it looks like @DeleMike sent along a change for the key text sizes. Was that what you were referring to here? Is #438 ready to review if we're doing that fix here? |
Yeah, thanks @andrewtavis for notifying. This PR is ready for review. thanks! |
Could the size be increased a bit more. It was one of the constant suggestions that I received within the hackathon from a lot of people. What do you think @andrewtavis |
definitely @andrewtavis. We need to make it reactive. I did some research and then added the @angrezichatterbox can you check too? |
Hi all, I hope we are all good! Has anyone had a chance to test this PR, please? 🙏🏾 |
Hi @angrezichatterbox , thanks for the update. I will look into it and revert. I fell ill too, so I have not been able to contribute for a few days. |
) * Fix translate button disappearing in SELECT_COMMAND mode * fix:linting issues * Remove extra blank line for lint compliance * feat: highlight selected popup character when sliding over popup characters * Fix: Adjusted KeyboardTest expectations for handleDelete * Partial fix for instrumentation tests, remaining failures to be addressed * chore:remove unneccesary tests * fix:linting issues * fix: command button text input behavior * fix:linting issues * fix: preserve command button listeners in SELECT_COMMAND mode * fix: preserve command button listeners in SELECT_COMMAND mode * fix: preserve command button listeners in SELECT_COMMAND mode * chore:remove debug statements --------- Co-authored-by: Gautham Mohanraj <[email protected]> Co-authored-by: angrezichatterbox <[email protected]> Co-authored-by: ashwinpraveengo <[email protected]>
* Update SelectLanguageScreen.kt * Update SelectLanguageScreen.kt Changes for Alphabetic order to view the lanuage * Add spaces between language strings * Order other instances of the settings page --------- Co-authored-by: Andrew Tavis McAllister <[email protected]>
No Worries. Hope you are doing better now |
I am feeling much better. Thanks! I have made some new updates. Can you please check them out when you are free? thanks! I think the default |
For some reason for the Pixel 9 values are still derived from the dimens.xml |
Is it still small? |
I suppose it is fine. We could merge this in. |
I have increased the key size a bit. We can have an issue created for making it proper across sizes. It is to some extend good now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decreased the text size just a bit as the capital M
was getting quite close to the side of the key, but just by 1dp
😊 Thank you both so much for the hard work and collaboration here! Two more Next Release
issues done! 🚀
Contributor checklist
./gradlew lintKotlin detekt test
command as directed in the testing section of the contributing guideDescription
This PR addresses two issues:
#421:
When a user tries to pluralise a word that is already plural, the keyboard now detects this and shows the "Already plural" message. The UI updates accordingly, and the keyboard returns to the idle state after the message is displayed.
#467:
Plural word detection has been improved to be case-insensitive. Previously, capitalised plural words like "Hellos" were not recognised, causing the PL suggestion keyword to not appear. This fix ensures consistent behaviour for plural recognition regardless of casing.
Testing
Screenshot of text

Videos
Screenrecorder-2025-07-31-17-47-41-80.mp4
Screenrecorder-2025-07-31-18-41-58-447.mp4
Related issue