jquery - javascript to create an array with the repeating phrases in a text -


the idea simple: put text in textarea press "send" , return list of repeating phrases. phrases mean 2 or more word repeating. problem have no idea how detect these (i can whit single words).

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

and html:

<form action="" method="post">     <textarea name="inc" id="inc" spellcheck="false"></textarea> <br>     <input type="submit" id="but" value="send"> </form>  <div id="res"></div> 

the problem of course dont know start. ides?

example:

paris s capital , populous city of france. paris , paris region account more 30% of gross domestic product of france , have 1 of largest city gdps in world.

checkout http://brettterpstra.com/2011/11/02/word-repetition-checking-with-javascript/ may helpful in trying do.since problem not simple. better have blog post along solution given. word repetition script.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -