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

Lookup color by English descriptive name or phrase #1

Open
yosun opened this issue Feb 20, 2022 · 3 comments
Open

Lookup color by English descriptive name or phrase #1

yosun opened this issue Feb 20, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@yosun
Copy link

yosun commented Feb 20, 2022

Hi! I notice you provide the usual rgb,hsl endpoints and also supply the English descriptive name of the color - wondering if lookup could occur from that

@joshbeckman
Copy link
Owner

So, the reason I haven't implemented lookup-by-word is because the caller would have to send the same word that matches the source data. With rgb/hsl/etc., they are numerical values, which means they lie on a range, which means that if the caller supplies something not exactly the same as the data, we can still resolve to a known value by searching the range for adjacent data/values. With words, it's a lot tougher because words aren't so easily 'near' each other. :)

@joshbeckman joshbeckman added the enhancement New feature or request label May 9, 2022
@harbar20
Copy link

It's possible to use a fuzzy search. Maybe provide the top 3 closest colors that match the queried English name or phrase?

@joshbeckman
Copy link
Owner

Do you mean that the handler would perform a semantic analysis against the provided string and try to map that to color words? I think that might have a very low hit-rate...

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

3 participants