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
How to get the score between 0.0 and 1.0 #19
Comments
The score doesn't work like that. |
Thanks for getting back so quickly! Your library was the best out of all the libs fusejs etc EDIT 1 The result below was derived when I typed BT which is pretty awesome!
BTJ gives a total count of 0 though [ total: 0 ] hence the question |
Hmm, so, this lib is the best at what it does (sublime's search), but that's all it does. But if you want to hack this, the only issue seems to be that you want to check for misspellings. Maybe give me the list of all coins, and some example searches with what you expect and why, then i'll give you a hacked permutation search wrapper (if it's possible) |
This would be the list of coins https://api.coinmarketcap.com/v1/ticker/?convert=EUR&limit=0 let me know if I can help in any way Thanks |
Try this, let me know what's wrong with it.
|
Hey thanks for the superfast response, I tested the code snippet it worked very well with ETX, I tried BTR and it gives the following results. Since BTC is the nearest one off by one character, I think it should be popping that up, Perhaps levenshtein s distance between the current symbol BTR and any symbol that has atleast one character in common with BTR will yield an array where the lowest score would give BTC
|
oops. i edited the coinsearch function, try the new one. |
Awesome man! it freaking works!!! This is so badass, thank you man, headed back to stackoverflow to modify my comment, Merry Xmas |
Thanks for the library in the first place! Would super appreciate if you could put an example on how to get results between 0 and 1 or in terms of percentage or whatever works
The text was updated successfully, but these errors were encountered: