title: Finding if a sentence contains a specific phrase in Ruby
body: <p>Right now I am seeing if a sentence contains a specific word by splitting the sentence into an array and then doing an include to see if it contains the word.  Something like:</p>
  
  <pre><code>"This is my awesome sentence.".split(" ").include?('awesome')
  </code></pre>
  
  <p>But I'm wondering what the fastest way to do this with a phrase is.  Like if I wanted to see if the sentence "This is my awesome sentence." contains the phrase "my awesome sentence".  I am scraping sentences and comparing a very large number of phrases, so speed is somewhat important. </p>