title: How to find most relevant strings in a textfile?
body: <p>I have a text file, which has multiple lines with details of an object. I want to find the score of every string and want to check which string is more relevant to the user input.
  E.g. the text file contains</p>
  
  <pre class="lang-none prettyprint-override"><code> This is not a blue car
   Blue or black car is here
   This is red car
   Red car is here
  </code></pre>
  
  <p>User input is <strong>red car</strong>.</p>
  
  <p>How do I find the most relevant string?
  So that the output is order by relevance and looks like this</p>
  
  <pre class="lang-none prettyprint-override"><code> This is red car
   Red car is here
   This is not a blue car
   Blue or black car is here
  </code></pre>