Hello,
I need for the app I'm developping to create a function. This function will take three parameters :
- A big text (let's call it the container text)
- a smaller text (let's call it the contained text)
- a tolerance
What I want this function to do is to check if the contained text is present in the container text, but it should say that it is true even if there is an error in the contained text.
For example, checking with this function if "This is an example" contains the subtext "an exumple" will still return true, even if the contained text isn't really present in the container text, because it is similar enought. The tolerance is just a way to decide if this is similar enought to be considered correct, I don't care about the way it is implanted.
Does anyone have an idea about how I could do that ?