{"id":6802,"library":"pyjarowinkler","title":"Jaro-Winkler Distance","description":"pyjarowinkler is a Python library that calculates the Jaro-Winkler Distance, a measure of similarity between two strings. It's useful for tasks like spell-checking, record linkage, and data deduplication. The current version is 3.0.0, and it has a reasonably active release cadence.","status":"active","version":"3.0.0","language":"en","source_language":"en","source_url":"https://github.com/nap/jaro-winkler-distance","tags":["string-similarity","jaro-winkler","distance-metrics","fuzzy-matching"],"install":[{"cmd":"pip install pyjarowinkler","lang":"bash","label":"Install stable version"}],"dependencies":[],"imports":[{"note":"The package is `pyjarowinkler`, but the main function is imported from the `jarowinkler` module. Also, the function was previously named `get_jaro_distance` in versions prior to 2.0.0.","wrong":"from pyjarowinkler import jaro_winkler_distance","symbol":"jaro_winkler_distance","correct":"from jarowinkler import jaro_winkler_distance"}],"quickstart":{"code":"from jarowinkler import jaro_winkler_distance\n\nstring1 = \"MARTHA\"\nstring2 = \"MARHTA\"\n\nsimilarity_score = jaro_winkler_distance(string1, string2)\nprint(f\"Jaro-Winkler Similarity between '{string1}' and '{string2}': {similarity_score}\")\n\nstring3 = \"DWAYNE\"\nstring4 = \"DUANE\"\nsimilarity_score_2 = jaro_winkler_distance(string3, string4)\nprint(f\"Jaro-Winkler Similarity between '{string3}' and '{string4}': {similarity_score_2}\")","lang":"python","description":"This example demonstrates how to import and use the `jaro_winkler_distance` function to calculate the similarity between two strings. The score ranges from 0 (no similarity) to 1 (exact match)."},"warnings":[{"fix":"Update calls from `get_jaro_distance(s1, s2)` to `jaro_winkler_distance(s1, s2)`.","message":"The primary function `get_jaro_distance` was renamed to `jaro_winkler_distance`.","severity":"breaking","affected_versions":"<2.0.0"},{"fix":"Ensure your environment is running Python 3.10 or newer. For older Python versions, use `pyjarowinkler<3.0.0` (e.g., `pip install 'pyjarowinkler<3.0.0'`).","message":"The minimum required Python version was updated from 3.6 to 3.10.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Always use `from jarowinkler import ...` for imports, not `from pyjarowinkler import ...`.","message":"The package name is `pyjarowinkler`, but the main module to import from is `jarowinkler`.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-15T00:00:00.000Z","next_check":"2026-07-14T00:00:00.000Z","problems":[]}