Skip to content

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
@sar-mko

Description

@sar-mko

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)

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions