The phrases can be of at max length 4 words and the sentences can be of length at max 40 words. Let's say the phrases are:
- three-course meal
- came with us
- in the end
- we ate much
and the sentences are :
- We had a three-course meal.
- Brad came to dinner with us.
- In the end, we all felt like we ate too much.
Then,
- sentence 1 should match with
three-course meal - sentence 2 should match with
came with us - sentence 3 should match with
in the endandwe ate much
Earlier questions like - Find occurrences of huge list of phrases in text do not tackle fuzzy search which is needed in my case.