title: String similarity score/hash
body: <p>Is there a method to calculate something like general "similarity score" of a string? In a way that I am not comparing two strings together but rather I get some number (hash) for each string that can later tell me that two strings are or are not similar. Two similar strings should have similar (close) hashes.</p>
  
  <p>Let's consider these strings and scores as an example:</p>
  
  <pre><code>Hello world                1000
  Hello world!               1010
  Hello earth                1125
  Foo bar                    3250
  FooBarbar                  3750
  Foo Bar!                   3300
  Foo world!                 2350
  </code></pre>
  
  <p>You can see that <strong>Hello world!</strong> and <strong>Hello world</strong> are similar and their scores are close to each other.</p>
  
  <p>This way, finding the most similar strings to a given string would be done by subtracting given strings score from other scores and then sorting their absolute value.</p>