The docs on this function (http://nltk.org/api/nltk.metrics.html#nltk.metrics.distance.edit_distance) say that this computes distance between two strings. @antoviaque suggested I use nltk rather than the "hand rolled" fuzzy string match that came in the django-passwords