Skip to content

Improve Learn/Remove Long press behaviour of words on suggestion bar #341

Description

@mastertrivia

Hi,

I’ve recorded a screen video showing the current behaviour and the changes I’m suggesting. I’ve also attached the screenshot for reference.

Please watch the screen recording first, as it demonstrates the different cases and the behaviour I’m trying to achieve. The points below are mainly to clarify the intended improvements; please use your own understanding of the existing implementation when deciding exactly where and how each change should be handled.

Requested changes

I’d like to introduce/improve the Learned Words functionality while keeping the existing Personal Dictionary functionality intact.

  1. Learned Words should not be removed immediately on long-press.
    Currently, long-pressing a learned word can directly remove it. Instead, long-press should show the same confirmation popup, such as “Remove from Learned Words?”, with Cancel / Remove. The word should only be removed after confirming.

  2. Unrecognized/new words should remain visible in the suggestion bar.
    When I type a new word that is not recognized by the internal dictionary, it should continue growing and remain visible in the suggestion bar instead of disappearing immediately. It should remain there until the appropriate boundary, such as entering a space.

  3. Long-pressing an unrecognized word should allow it to be learned.
    Long-pressing such a word should open an appropriate confirmation popup, for example “Add to Learned Words?” or “Learn this word?”, rather than directly performing an action.

  4. Keep Personal Dictionary and Learned Words as separate concepts.
    I don’t want the existing Add to Personal Dictionary feature to be unnecessarily changed or replaced. My understanding is that words which already exist in the application's main dictionary can continue using the existing Personal Dictionary flow, while genuinely unrecognized/user-specific words can use the new Learned Words flow.

  5. Use the existing UI/toast behaviour wherever appropriate.
    After confirming an action, it should use the existing success toast and close the popup, consistent with the current implementation.

I may be misunderstanding some of the internal terminology or implementation details, so please use your judgment regarding the exact headings, conditions, and code structure. For example, the popup could be called “Add to Learned Words,” “Learn this word,” etc., depending on what fits the existing UI best.

The important requirements are:

Do not break the existing Personal Dictionary feature → add a proper Learned Words flow for unrecognized words → don't immediately remove learned words on long-press → show new/unrecognized words in the suggestion bar → use confirmation popups for adding/removing learned words.

Please refer to the screen recording for the actual behaviour and examples, as it should make the requested changes much clearer than the written description alone.

Please add “Add to Learned Words” as a new feature without disturbing the existing “Add to Personal Dictionary” functionality.

The intended behavior should be:

If the selected word is already present in the main/internal dictionary and has normal dictionary suggestions, keep the existing “Add to Personal Dictionary” behavior.

If the selected text/word is not present in the main/internal dictionary and is instead an unrecognized/user-specific word, long-pressing it should provide an option such as “Add to Learned Words” / “Learn this word.”

Tapping Add should save that word to the app's learned-words system so that it can be recognized/suggested in the future.

Please determine the correct UI heading and location based on how the existing dictionary/manual-add features are implemented. The heading does not have to be exactly “Add to Learned Words” — “Learn this word,” “Add to Learned Words,” or another appropriate label is fine.

The important point is that both systems should coexist: existing dictionary words continue using the old Personal Dictionary flow, while genuinely unknown/user-specific words get the new Learned Words flow.

Also make sure this works with the existing long-press interaction and confirmation popup/toast, rather than bypassing or breaking the current behavior.

In short: don't replace the old feature; intelligently choose between Personal Dictionary and Learned Words depending on whether the word already exists in the main dictionary.

Thanks.

Note :- Decide most of the things yourself because I do not understand the internal mechanism which word is getting saved where.

Note :- > My English is not very strong, so I’m explaining some things in broken/simple English. Please bear with it and refer to the screen recording to understand what I mean 😑.

Image Image

https://drive.google.com/file/d/180-gEWwbk_MmISM7Ng4WNkBm3kIzQ7wM/view?usp=drivesdk

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions