title: Compare similarity between names
body: <p>I have to make a cross-validation for some data based on names.</p>
  
  <p>The problem I'm facing is that depending on the source, names have slight variations, for example:</p>
  
  <pre><code>L &amp; L AIR CONDITIONING   vs L &amp; L AIR CONDITIONING Service
  
  BEST ROOFING vs ROOFING INC
  </code></pre>
  
  <p>I have several thousands of records so do it manually will be very time demanding, I want to automate the process as much as possible.</p>
  
  <p>Since there are additional words it wouldn't be enough to lowercase the names. </p>
  
  <p>Which are good algorithms to handle this?</p>
  
  <p>Maybe to calculate the correlation giving low weight to words like 'INC' or 'Service'</p>
  
  <p>Edit:</p>
  
  <p>I tried the difflib library</p>
  
  <pre><code>difflib.SequenceMatcher(None,name_1.lower(),name_2.lower()).ratio()
  </code></pre>
  
  <p>I'm getting a decent result with it.</p>