I don't know that you'll be able to do exactly what you're wanting with a strictly client-side Javascript solution. You'll need to be able to compare the complete content of the test document to the complete content of original documents. Given that the original documents may or may not be on the same domain, you may not be able to pull their contents using an XHR. So you would at least need a proxy of some sort. And then, I'm not sure that Javascript provides an adequate way to gauge the similarities between the two documents. I mean, you could loop through the content, using a regexp to find similar blocks of six or seven or eight words, and then divide the total you get by the total number of times you execute the regexp. But it would seem that this would be excruciatingly slow, particularly for long works such as dissertations, etc., and it may not be the most accurate.
It should also be noted that there are solutions which do this. For instance, there is a Perl module which will use the Cloze method to identify plagiarism. You can find information about it here: http://search.cpan.org/~unobe/Text-Cloze-v0.0.1/lib/Text/Cloze.pm Hope that's helpful. jg On Wed, Mar 6, 2013 at 9:19 AM, <[email protected]> wrote: > Hi, I am making a web based software using javascript language and this > line of code is for searching based on website query etc. now I want to > calculate the percentage of data which is plagiarized....now how can I > calculate the percentage....please help me out in this regard, > > -- > -- > You received this message because you are subscribed to the Google > Groups "Google AJAX APIs" group. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > To view this message on the web, visit > https://groups.google.com/d/msg/google-ajax-search-api/-/nOAkTecrW9AJ > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Google AJAX APIs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Jeremy R. Geerdes Generally Cool Guy Des Moines, IA If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! http://www.debraheightswesleyan.org -- -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] To view this message on the web, visit http://groups.google.com/group/google-ajax-search-api?hl=en_US For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
