I want to make an algorithm which can see if an address is written in a sentence.
For instance, if a user writes:
"Hi, my address is Lincolnstreet 27, Foobarcity. Can you pick up the package there?"
And the user's address is Lincolnstreet 27, Foobarcity, then I want an algorithm that can detect that the address was mentioned in the sentence.
I already know the user's street name and number, zip code and city name.
It also needs to be fuzzy, in that people can make typos or make slight variations of their address that they wrote in the sentence. However, it's not required that the algorithm catches all occurences always no matter how mistyped they are, since that is obviously impossible. It's okay with a semi-naive solution.
I looked into Levehnstein distance, but I can't figure out how to make it work for this exact scenario. I also looked into Longest Common Subsequence, and it's the same problem there.
Any ideas? I don't necessarily care about the programming language.
I am not interested in a neural net solution - I truly believe it should be solvable with a relatively naive algorithm - I just don't know where to start.