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

15. As a user, I want to be alerted when I’m entering an item that's already on my list when its either singular or plural #31

Open
4 tasks
sar-mko opened this issue Sep 20, 2024 · 0 comments

Comments

@sar-mko
Copy link
Collaborator

sar-mko commented Sep 20, 2024

Summary

Users shouldn't be able to add the plural or singular version of an item, if the singular or plural version is there. If they try to do this, we need to show them an error message that explains this. This extends the feature added in issue #10 .

Acceptance criteria

  • Show an error message if the user tries to add a singular item when the plural version exists on the user's list. For instance, if the list contains apples and the user adds apple.
  • Show an error message if the user tries to add a plural item when the singular version exists on the user's list. For instance, if the list contains apple and the user adds apples.
  • The check works for exact matches regardless of case, and outside space.
  • When a user adds a similar item that isn't exact, they are given the choice to add the item. (ex. app#le, apple ; bananas, ban ana)

Notes

  • The idea is that plural and singular versions are recognized as "exact" matches, but if there are random spaces and characters -> users are given the option to add an item
  • There are plural words that don't have a similar fix (ex. strawberries, strawberry), so a first approach can be to address simple plural words that add -s (apple, apples)
@arandel1 arandel1 changed the title As a user, I want to be alerted when I’m entering an item that's already on my list when its either singular or plural 15. As a user, I want to be alerted when I’m entering an item that's already on my list when its either singular or plural Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant