%LCS-TABLE (A B)
Compute the MxN table from which we can extract the LCS, and a bunch of other good stuff.
COMPOSE (FUNCTION &REST MORE-FUNCTIONS)
Returns a function composed of FUNCTION and MORE-FUNCTIONS that applies its arguments to to each in turn, starting from the rightmost of MORE-FUNCTIONS, and then calling the next one with the primary value of the last.
Convert a vector of propertied-text object (such as produced by textify-markup into a list of Markup sexps.
DIFF-TEXTIFIED (A B)
Diff two vectors of propertied-text, returning a single vector containing the diff as propertied-text.
DIFF-VECTORS (OLD NEW &OPTIONAL (LCS-FROBBER #'IDENTITY))
Diff two vectors returning a vector with the elements of old and new wrapped in conses whose CAR is either :LCS, :DELETE, or :ADD. Optionally frob the computed LCS before computing the diff.
ESTABLISH-PAIRS (ORIGINAL EDITED &KEY UNPAIR-SHORT)
Establish the pairing between two lists of chunks.
EXTRACT (MARKUP WHAT)
Find all the what elements in markup.
FINER-GRAINED-P (NEW-DIFF ORIG-DIFF)
Is the new-diff finer-grained than the original?
Tree has a nested :add or :delete tag and it's not the only tag. Returns which one it is since there should only be one or the other.
LCS (A B)
Compute the longest common subsequence of vectors `a' and `b'
LCS-LENGTH (A B)
Compute the length of the longest common subsequence of vectors `a' and `b'
LCS-POSITIONS (A B)
Find the indices in a and b of the elements of the LCS.
MAP-TREE (FN TREE)
Map fn down tree, replacing each element of the tree with the return value of fn. When the return value is identical to the original sub-tree it is recursively mapped.
Take the output of diff-to-markup/no-moves and find the adds and deletes which are actually moves.
ONE-WAY-SIMILARITY (A B)
Like `similarity' but in only one direction.
Split file into chunks, one per paragraph.
Remove empty sub-trees from tree.
Rewrite the Markup tree so that :add and :delete tags are moved out as far as possible. E.g. given (:p (:add something)) we tranform it to: (:add (:p something)).
SET-MOST-SIMILAR (ORIGINAL EDITED)
Make each chunk in original and edited point to the most similar chunk on the other side unless they have already been paired with an identical chunk.
SIMILARITY (A B)
Compute the similarity of vectors `a' and `b' in terms of the average of the ratios of the length of the LCS to their length.
TAKE (LIST N)
Return a list of of the first n values of list and the left-over tail as a secondary value.
Convert a list of Markup sexps into a vector of interned propertied-text objects.
Split a text string into a list of tokens containing either all the text split into words, whitespace, and punctuation or just the words.
UNPAIR-SHORT (CHUNKS ORIGINAL-P)
Unpair very short chunks.
VECTOR-PUSH-EXTEND* (LIST V)
Push all the elements of `list' onto v as if by vector-push-extend