Skip to content

Longest Common Subsequence algorithm implementation in JavaScript.

Notifications You must be signed in to change notification settings

elarsaks/text-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Longest Common Subsequence algorithm implementation in JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published