Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.22 KB

README.md

File metadata and controls

23 lines (14 loc) · 1.22 KB

Text-Diff

Text-Diff is a user-friendly tool designed to compare and highlight differences between two text inputs. It's inspired by the diff utility, which is traditionally used to show differences between two files.

Try it Out

Features

  • Technologies: Developed using HTML, CSS, and JavaScript.
  • Algorithm: Employs the Longest Common Subsequence (LCS) algorithm to efficiently identify and display differences between two strings.

Limitations

  • Sentence Comparison: The tool compares texts sentence-by-sentence. Both inputs must have an equal number of sentences for accurate comparison.
  • Word-Level Accuracy: Differences are highlighted at the word level, not character level.
  • Sentence Endings: Punctuation marks (e.g., ., !, ?) at the end of sentences are considered part of the last word.

Preview

Text-Diff Screenshot