Textual difference detector

This is a Levenshtein application example discussed in the article 'Find the differences' published at eDesign.nl. Below is a form to enter test texts. Also links are included to the source code of the files needed for this example application.

Calculate transformations from:

Calculate transformations to:

Textual difference detector - a Levenshtein application example by eDesign.nl
Sources: this file | levenshtein.php | utf2html.php (utf-8 helper)

Valid XHTML 1.0 Strict

Levenshtein distance

5

Levenshtein matrix

Thebrowndogjumpedawayfromthesprinkler
012345678
The101234567
dog211123456
ran322223456
towards433333456
the544444445
green655555555
sprinkler766666665

Visualized transformations

The brown dog ran jumped towards away from the green sprinkler

Merged transformations

The brown dog ran towards jumped away from the green sprinkler