Lua implementation of the fts_fuzzy_match algorithm, ported by Blake Mealey:
Taken from his public GitHub Gist (commit 3b98fbcd, 2016-06-15).
Blake Mealey released his source file under the same public domain terms of the original fts_fuzzy_match project:
This software is dual-licensed to the public domain and under the following license: you are granted a perpetual, irrevocable license to copy, modify, publish, and distribute this file as you see fit.