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

Add different methods for searching card data #1

Open
kellyelton opened this issue Jun 9, 2016 · 0 comments
Open

Add different methods for searching card data #1

kellyelton opened this issue Jun 9, 2016 · 0 comments

Comments

@kellyelton
Copy link
Member

kellyelton commented Jun 9, 2016

There are multiple ways we could search through the card image titles to compare. There needs to be multiple kinds.

There should be a generic interface for handling this searching.

interface ICardMatcher {
    Match[] GetMatches(CardLibrary library, string filename);
}

A CardLibrary basically is a json structure with an array of sets, with an array of cards, with an array of properties.

A Match includes a specific card from the CardLibrary, as well as a percentage of confidence(undefined if the method doesn't include such a thing).

In the application, all the ICardMatcher's will be arranged in order of usefulness. For example, it makes much more sense to have a GuidCardMatcher come before a FuzzyTextSearchCardMatcher.

If a GetMatches returns 1 item, with 100% confidence, it will stop and return that result. If there are previous results from other matchers, it will also include those, ordered by confidence.

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

No branches or pull requests

1 participant