Given a phrase I want to check if one of the entries in a predefined list of phrases is contained in the phrase ("phrase match"). The predefined list of phrases may be huge, and I'm reading it from a file. If I was looking for an exact match, I would have read the list into a hush. But since I'm not looking for an exact match, I don't know which data structure to use. Do I have to go over the entire list for each new phrase? Do you know of a data structure that fits a phrase match purpose?
Thanks, Li