Text-Diff is a user-friendly tool designed to compare and highlight differences between two pieces of text. It's inspired by the diff utility, traditionally used to show differences between two files.
- Online: Visit the hosted version
- Locally: Download the
index.html
file and open it in your preferred web browser.
- Technologies: Built with HTML, CSS, and JavaScript.
- Algorithm: Uses the Longest Common Subsequence (LCS) algorithm to efficiently detect and display differences between two strings.
- Sentence Comparison: The tool compares texts on a sentence-by-sentence basis. Both inputs must contain the same number of sentences for accurate comparison.
- Word-Level Accuracy: Differences are highlighted at the word level rather than the character level.
- Sentence Endings: Punctuation marks (e.g.,
.
,!
,?
) at the end of sentences are considered part of the final word.