title: compute similarity between strings based on primary similarity
body: <p>I have two string like this:</p>
  
  <pre><code>String1: EnableAdvertResult 
  String2:AdvertisementDel
  </code></pre>
  
  <p>Then I have splited them like this:</p>
  
  <pre><code> X[0]=Enable X[1]=Advert X[2]=Result
  
   Y[0]=Advertisement Y[1]=Del
  </code></pre>
  
  <p>And then compute similarity between each pair elements, like this:</p>
  
  <pre><code>sim(x[0],y[0])=a, 
  sim(x[0],y[1])=b, 
  sim(x[1],y[0])=c, 
  sim(x[1],y[1])=d, 
  sim(x[2],y[0])=e, 
  sim(x[2],y[1])=f
  </code></pre>
  
  <p>Now I want to know that, what is the best way to compute similarity between string1 and string2 based on above sim?</p>