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).
$(function() {
$("#but").click(function() {
var get = $("#inc").val();
$("#res").html(get);
return false;
});
});
And the 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 is of course i dont know even where to start. Any ides?
Example:
Paris s the capital and most populous city of France. Paris and the Paris region account for more than 30% of the gross domestic product of France and have one of the largest city GDPs in the world.
Checkout the http://brettterpstra.com/2011/11/02/word-repetition-checking-with-javascript/ This may be really helpful in what you are trying to do.Since the problem is not so very simple. It is better to have a look this blog post along with the solution given. Its actually a word repetition script.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With