Source

Kiva Editor's Assistant / tokensearch.py

Diff from to

tokensearch.py

 
 def get_levenshtein_dist(source_tokens, target_strings):
     """Return a minimal list of operations required to transform the
-    source tokens into the target tokens.
+    source tokens into the target strings.
     """
-    # Compute the Levenshtein Distance between source and target token
-    # lists. (See http://en.wikipedia.org/wiki/Levenshtein_distance for
-    # an explanation and http://www.merriampark.com/ld.htm for public-
+    # Compute the Levenshtein Distance between source and target lists.
+    # (See http://en.wikipedia.org/wiki/Levenshtein_distance for an
+    # explanation and http://www.merriampark.com/ld.htm for public-
     # domain implementations.)
     #
     # This results in a set of instructions for transforming the source