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

Match should check if there is duplicate bookmarks #304

Closed
tfnribeiro opened this issue Feb 19, 2024 · 5 comments
Closed

Match should check if there is duplicate bookmarks #304

tfnribeiro opened this issue Feb 19, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@tfnribeiro
Copy link
Contributor

When a user has translated the same word in different contexts a situation like this can happen:

image

Since the match is done by ID it means in this situation, it's a 50/50 if the user will get it correct.

This could be fixed in 2 ways, either:

  1. Check for the expected translation rather than the ID (which would match for both);
  2. Avoid having 2 repeated bookmarks in the Check exercise.

I would go with the second one.

@tfnribeiro tfnribeiro added the enhancement New feature or request label Feb 19, 2024
@mircealungu
Copy link
Member

I don't remember seeing that happen!

i think the second is a good choice: avoiding duplicate bookmarks in match.
it would have to be the same in all the exercises where we show multiple bookmarks.

one way would be to solve this when we're assigning words to exercise types.
another would be to maybe ensure that there are no word/translation duplicates when we schedule words in the API?

@tfnribeiro
Copy link
Contributor Author

I think the easiest would be to do at the API level, so whenever we do the priority_bookmarks call, we just filter any duplicated words.

However, I think when we call for "similar" bookmarks we don't check for repeated words. So maybe this could be an issue in multiple choice? Rare, but could happen.

@mircealungu
Copy link
Member

That should be fine. Should be very rare. And in the future we might move away from a separate call to similar words as suggested in another convo these days!

@tfnribeiro
Copy link
Contributor Author

Alright! Should I make this as part of the changes to the work schedule? I will add a line that filters out any words that are repeated?

@mircealungu
Copy link
Member

mircealungu commented Feb 19, 2024 via email

@tfnribeiro tfnribeiro self-assigned this Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants