Return best Bitap score
roman-verbit-ai opened this issue · comments
I am interested in using the Bitap algorithm in order to compute similarity between two strings.
In my use case, I also need to get the score itself, however, the current API does not return anything except the index of the best match.
I need to do A LOT of these matches, and it requires caching the scores (to avoid calculating them again and again for the same strings).
It would be very useful if you could allow would returning the score of the best candidate when using match_main
(by introducing another wrapper method or flag or whatever solution).
I can do it myself for Python, but I guess an API change would require to do it for the rest of the languages as well...
How would you recommend to go about this?