javascript to create an array with the repeating phrases in a text
<p>The idea is simple: you put a text in textarea press "send" and return a list of the repeating phrases. By phrases i mean two or more word repeating. My problem is that i have no idea how to detect these (I can whit single words).</p>

<pre><code>$(function() {
    $("#but").click(function() {
        var get = $("#inc").val();
        $("#res").html(get);
        return false;
    });
});
</code></pre>

<p>And the HTML:</p>

<pre><code>&lt;form action="" method="POST"&gt;
    &lt;textarea name="inc" id="inc" spellcheck="false"&gt;&lt;/textarea&gt; &lt;br&gt;
    &lt;input type="submit" id="but" value="Send"&gt;
&lt;/form&gt;

&lt;div id="res"&gt;&lt;/div&gt;
</code></pre>

<p>The problem is of course i dont know even where to start. Any ides?</p>

<p>Example:</p>

<blockquote>
  <p>Paris s the capital and most populous city <strong>of France</strong>. Paris and the Paris region account for more than 30% of the gross domestic product <strong>of France</strong> and have one of the largest city GDPs in the world.</p>
</blockquote>
