TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Fuzzify: A tiny library for fuzzy search

23 点作者 rumblertumbler10 个月前

4 条评论

wood_spirit10 个月前
iirc the go-to data structure for this kind of problem is called a “vantage point tree” (vp tree).<p>Another approach that I haven’t explored is to prep the array of words to search into a tree. normal words in Latin languages have lots of common prefixes and suffixes so you can dramatically reduce the amount of nodes (see my own old blog which compresses a scrabble dictionary <a href="https:&#x2F;&#x2F;williame.github.io&#x2F;post&#x2F;87682811573.html" rel="nofollow">https:&#x2F;&#x2F;williame.github.io&#x2F;post&#x2F;87682811573.html</a> - same prefix suffix sharing our work on non-scrabble rotations too). Now walk the tree doing Levenshtein but checking multiple words at once?
评论 #41078649 未加载
rgbjoy10 个月前
I’m a bit confused. “Unit” brings up Turkmenistan before United States.
评论 #41078697 未加载
评论 #41078693 未加载
评论 #41078887 未加载
评论 #41078723 未加载
mightyham10 个月前
There are tons of js fuzzy search libraries with basically the same functionality. Is there any reason I should use this over others?
评论 #41078818 未加载
finger10 个月前
Regarding the name, doesn’t it implify fuzzification of data?
评论 #41078822 未加载