title: Extract words in a paragraph that are similar to words in list
body: <p>I have the following string:</p>
  <pre><code>&quot;The boy went to twn and bought sausage and chicken. He then picked a tddy for his sister&quot;
  </code></pre>
  <p>List of words to be extracted:</p>
  <pre><code>[&quot;town&quot;,&quot;teddy&quot;,&quot;chicken&quot;,&quot;boy went&quot;]
  </code></pre>
  <p>NB: town and teddy are wrongly spelt in the given sentence.</p>
  <p>I have tried the following but I get other words that are not part of the answer:</p>
  <pre><code>import difflib
  
  sent = &quot;The boy went to twn and bought sausage and chicken. He then picked a tddy for his sister&quot;
  
  list1 = [&quot;town&quot;,&quot;teddy&quot;,&quot;chicken&quot;,&quot;boy went&quot;]
  
  [difflib.get_close_matches(x.lower().strip(), sent.split()) for x in list1 ]
  </code></pre>
  <p>I am getting the following result:</p>
  <pre><code>[['twn', 'to'], ['tddy'], ['chicken.', 'picked'], ['went']]
  </code></pre>
  <p>instead of:</p>
  <pre><code>'twn', 'tddy', 'chicken','boy went'
  </code></pre>