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.
- Online: Visit our hosted version
- Locally: Download the
index.html
file and open it in your preferred web browser.
- Technologies: Developed using HTML, CSS, and JavaScript.
- Algorithm: Employs the Longest Common Subsequence (LCS) algorithm to efficiently identify and display differences between two strings.
- 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.