Algorithms for “fuzzy matching” strings

后端 未结 6 542
傲寒
傲寒 2020-12-12 13:23

By fuzzy matching I don\'t mean similar strings by Levenshtein distance or something similar, but the way it\'s used in TextMate/Ido/Icicles: given a list of strings, find t

6条回答
  •  执念已碎
    2020-12-12 13:50

    I recently had to solve the same problem. My solution involves scoring strings with consecutively matched letters highly and excluding strings that don't contain the typed letters in order.

    I've documented the algorithm in detail here: http://blog.kazade.co.uk/2014/10/a-fuzzy-filename-matching-algorithm.html

提交回复
热议问题