Closed markussteindl closed 2 months ago
Hey @Stonatus,
This is currently the intended behavior, yes. The "dist" attribute of matches describes the Levenstein / edit distance, which is indeed 5 in this case.
I can see that it could be useful to see the number of allowed changes needed given the input parameters. I'll leave this open while I consider if there's a neat way to implement this given the existing design.
I think this is too niche a use-case and not something that would be very simple to implement, so I'm going to close this request.
Reproduction:
Is this intended behavior? Without substitution, the distance should be 10 and not 5. Thus the above call should not return any matches.