Compare percentage of words or characters
<p>I have a of list of phrases. Each phrase can be a single word or a list of words.</p>

<p>I would like to compare a phrase with each of its sibling phrases and rank those which match the most. Character match or word match come to mind. However the list is quite dirty with commas and hyphens, non-closed brackets etc.</p>

<p>The ranking does not have to be terribly accurate. It is needed as a helper for content editors.</p>

<p>Example list:</p>

<pre><code>Hello sir, how are you?
</code></pre>

<p>Top ranking siblings to this phase in this list </p>

<pre><code>Hello madam, how are you?
How are you today?
Today, are you well?
</code></pre>

<p>Is there an existing function out there to help with this?</p>
