Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Find the Jaro Winkler Distance which indicates the similarity score between two Strings

Project description

Find the Jaro Winkler Distance which indicates the similarity score between two Strings. The Jaro measure is the weighted sum of percentage of matched characters from each file and transposed characters. Winkler increased this measure for matching initial characters.

The Implementation

The original implementation is based on the Jaro Winkler Similarity Algorithm article that can be found on Wikipedia. This Python version of the original implementation is based on the Apache StringUtils library.


Unittest similar to what you will find in the StringUtils library were used to validate implementation.


A limit of shorter / 2 + 1 is used in StringUtils, this differs from Wikipedia and also Winkler’s paper, where a distance of longer / 2 - 1 is used, corresponding to positions of longer / 2. As of version 1.8, the algorithm now correctly works with the "CTRATE" - "TRACE" example from Wikipedia.


>>> from pyjarowinkler import distance
>>> # Scaling is 0.1 by default
>>> print distance.get_jaro_distance("hello", "haloa", winkler=True, scaling=0.1)
>>> print distance.get_jaro_distance("hello", "haloa", winkler=False, scaling=0.1)
Version:1.8 of 2016-03-22

Project details

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyjarowinkler-1.8-py2.py3-none-any.whl (5.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Mar 23, 2016
pyjarowinkler-1.8.tar.gz (4.6 kB) Copy SHA256 hash SHA256 Source None Mar 23, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page