Primary Requirement
- To develop a single page (as per the provided UI) that does text comparison using 3 different methods and returns the match percentage value. It should also allow the user to change the text right on from the same page.
Specifics:
-- Assigning the weightage should be done as follows -
-- If the entire text matches, then the score of comparison would be 100%.
-- If there are 5 sentences, then each sentence would carry a weightage score of 20%. So if 2 of them match then the score would be 40%.
-- If there are 25 phrases then each phrase would carry a score of 100/25 = 4%. So if 6 of them match then the score would be 24%.
-- Once a sentence matches then there should no phrase comparison for that sentence.
-- Similarly, if the word count is 250, then each word would carry a comparison score of 0.4%.
-- The final score could be obtained by adding the above scores.