Basically I want to implement a fuzzy search that disregards language!
For example - let's say that there's an entry for "Hello World".
Now, I want this to work with:
- "hello"
- "henlp"
- "руддщ" (these are the Russian characters if you try to type "hello" but forget to switch to English)
- "рутдз" (same as above but with "henlp" instead of "hello")
- "יקמךם" (same as above but in Hebrew)
etc.
Now the things that makes most sense to me is to ignore the actual text and regard their relevant keyCodes, which all obviously work universally).
I did thought about for each entry, saving an array which represents all key codes - and then implement fuzziness based on the already given keyCodes instead of chars, but that feels like I'm doing something wrong, or missing something that already exists.
So, from what I've gathered there's no implementation of fuzzy search that regards this.
Is there maybe an alogrithm (other than fuzzy search) that already regards this which I'm missing?
Currently trying to implement in Node.js but open for more languages and frameworks