Skip to content

elarsaks/text-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text-Diff

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.

Try It Out

Features

  • Technologies: Built with HTML, CSS, and JavaScript.
  • Algorithm: Uses the Longest Common Subsequence (LCS) algorithm to efficiently detect and display differences between two strings.

Limitations

  • 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.

Preview

Text-Diff Screenshot

About

Longest Common Subsequence algorithm implemented in JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published