fuzzidex
A simple, inefficient multi-language search index.
Usage
import {insert, query} from 'fuzzidex'; const idx = {}; insert(idx, "chickity", "中ity中國,這中華的雞"); insert(idx, "kurosawa", "like 黒沢 I make mad films"); insert(idx, "sushi", "I like the 寿司 'cause it's never touched a frying pan"); query(idx, "寿司")[0] === "sushi"; query(idx, "黒沢")[0] === "kurosawa"; query(idx, "中華的雞")[0] === "chickity";