title: String similarity in Python
body: <p>I'm trying to do a comparison of strings in Python.  My strings contain titles which can be structured a number of different ways:</p>
  
  <pre><code>'Title'
  'Title: Subtitle'
  'Title - Subtitle'
  'Title, Subtitle'
  'Title Subtitle'
  </code></pre>
  
  <p>Is it possible to do similarity comparison in Python so that it can determine that <code>match('Title: Subtitle', 'Title - Subtitle') = True</code>?  (or however it would be constructed)</p>
  
  <p>Basically I'm trying to determine if they're the same title even if the splitting is different.  </p>
  
  <pre><code>if 'Title: Subtitle' == 'Title - Subtitle':
      match = 'True'
  else:
      match = 'False'
  </code></pre>
  
  <p>There are also some that might be stored as <code>The Title: The Subtitle</code> or <code>Title, The: Subtitle, The</code> although I think that may add a bit of complexity I could probably get around by reconstructing the string.</p>