Elevenshtein is an Elisp extension for the Emacs text editor that enables a user to calculate the edit (or Levenshtein) distance between two buffers.
-
Download and save the file elevenshtein.el to a local directory on the computer where you run Emacs.
-
Locate your .emacs file in your home directory and add the following line:
(load "/path/of/local/directory/where/file/was/saved/into/elevenshtein")Note that you do not need the ".el" filename extension in the path, just the path of the local directory in which the downloaded file resides followed by the string "elevenshtein".
If you do not have a .emacs in your home directory go ahead and create an empty file and add the line described above.
touch ~/.emacs; echo '(load "/path/of/local/directory/where/file/was/saved/into/elevenshtein")' >> ~/.emacsOk, now you are good to go. Just launch or restart Emacs!
TL;DR: M-x edit-distance-buf
While using Emacs, if you want to calculate the edit distance of two buffers, execute the command M-x edit-distance-buf. You will then be prompted to enter the first buffer. You can hit tab to see a list of available buffers. After entering the first bufffer you will be prompted to enter the second buffer (once again you can use tab to see available buffers). Upon entering the second buffer, the edit distance between the buffers will be calculated and dispayed in the mini buffer.
You can always contact me with any questions at @igb@mastodon.hccp.org.