plagiarism detection system (comparing all words within two textareas and outputting their similarities)
Hi there, I basically have a form which takes in two textarea fields, sorts each word in the textarea into alphabetical order using array.sort() and outputs the data into an asp page.
Is it possible to program a bit of code to show an alphabetical listing of all the words that the texts have in common. Each word is followed by two numbers indicating how often the word occurs in each of the texts. For example:
Shared words Freq in textarea1 Freq in textarea2
a 20 14
the 15 12