Rant on fuzzy searching
I spent too much time trying to solve a small problem in a good-enough solution
published: Tue 16 June 2026(This is related to my To Type a Tale game, but I'm keeping it in unsorted thoughts for now.)
For anyone who has commented on or wondered about the highlighted text not matching what you expect as you type: it is a remarkably difficult task to figure out where in a large section of text someone is trying to type. Consider the sentence "You are your own worst enemy." If the player has just typed "you", should we highlight "You", the start of "your", or are they a really bad typist and they meant to type "worst"? The game can't know for sure, so it guesses the first two (because it would take more corrections to match the third), but it allows itself the possibility of the third later on. I felt this was... fine for the game I was trying to make.
... more ...