contractions should rank better
leeoniya opened this issue · 0 comments
leeoniya commented
by default, uFuzzy treats contractions as single terms to avoid e.g. "everyone's" from being split into "everyone s".
this means when searching "everyone" will not reward both left and right boundary matches in an "everyone's" haystack item. so it will rank below "some random blah everyone" item.
we should detect this and ensure that we still consider "everyone's" item a fully-bounded match for "everyone" needle.
you can see Twilight's Call
at the bottom, but i expect it to be in the top group of matches:
https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uFuzzy&search=twilight