Probably one of the hottest blog posts I read a year ago: Levenstein Automata . Take a look at this article. It provides not only a description of the algorithm, but also code for the subsequent. Technically, this is not a kd-tree, but it is completely connected with string correction algorithms and word correction algorithms that can be found / used in the real world.
He also has another blog post about BK-trees , which is much better suited for fuzzy matching for strings and string search queries where there are incorrect names. Here is another resource containing the source code for BK-tree (this I cannot check the accuracy or the correct implementation.)
source share