I need a function that takes in 2 strings and returns a boolean if they are more than 75% similar. Levenshtein works, but I find it WAY too slow for the amount of data that I am processing.
If I can somehow determine the 75%+ similar first, I can then run the Levenshtein for the exact similarity match.
EDIT
Here are some examples of what I mean by similarity:
isSimilar75("texts", "txts") //TRUE, 85% similar
isSimilar75("hello world", "hello word") //TRUE, 91% similar
isSimilar75("this is an example of longer text", "this is an example of a longer txt") //TRUE, 92% similar
isSimilar75("this is a test", "test what") //FALSE, 29% similar
The function calculates similarity similar to levenshtein. I simply need a more simple version of levenshtein that only returns whether or not a string is "around" 75% similar based on the amount of character operations (add, subtract, and substitute characters). The function does not need to return a percentage or do any exact calculations, I will only run the expensive levenshtein on results that return true from this function.