Extract topic keywords from text
<p>I'm trying to extract a list of ingredients from a cooking recipe. To do that I made a list of many ingredients in a file, then I check all these ingredients against the recipe.
Code looks like this:</p>

<pre><code>ingredients = ['sugar', 'flour', 'apple']
found = []
recipe = '''
1 teaspoon of sugar
2 tablespoons of flour.
3 apples
'''
for ingredient in ingredients:
    if ingredient in recipe:
         found.append(ingredient)
</code></pre>

<p>I'm looking for a  more efficient way to do that because the list of possible ingredients can be really big. Any ideas?</p>