What I’m trying to do:
Something like a fuzz.ratio("Burt F Bacharach", "Burt Freeman Bacharach")
call available in fuzzywuzzy, but on the client side.
Generally speaking, you’d be looking for a Javascript library that does the job, or for Python source code to do the same thing (although in that case you’d need something like a one module library that doesn’t depend on other libraries).
Fuse.js is a popular Javascript library for doing fuzzy searching in collections: https://www.fusejs.io/ It’s a module based library, though, so you’d need to use anvil.js.import_from
to get it into your Anvil app.
I’m not at all familiar with Fuse.js, so can’t say if it’ll do what you want or not. It seems hyper-focused on searching in collections, not matching individual strings, but I suppose you could give it a one-string collection.