{
  "id": "task_libraries:fuzzy-search/python",
  "path": "/exapedia/python-fuzzy-search-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python fuzzy search libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python fuzzy search libraries find strings that nearly match a query despite typos, reordered words, or different spellings. A scorer computes an edit distance or similarity ratio between two strings and ranks candidates by that score. These libraries let apps and AI agents match names and records that differ by a few characters."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python fuzzy search libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#regex",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rapidfuzz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#levenshtein",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jellyfish",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F32"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#thefuzz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F198"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F55"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#polyleven",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F214"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyspellchecker",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F232"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#editdistance",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F250"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#rapidfuzz",
          "label": [
            {
              "t": "text",
              "text": "RapidFuzz"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads among the dedicated fuzzy matching libraries in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F147"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Ranks arbitrary choices",
            "Fuzzy substring offsets",
            "Phonetic encodings"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#regex",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rapidfuzz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#levenshtein",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jellyfish",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#thefuzz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F198"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#polyleven",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F214"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyspellchecker",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F232"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#editdistance",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F250"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "regex",
          "name": [
            {
              "t": "fact",
              "fact": "F128"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mrabarnett/mrab-regex"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/regex"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/mrabarnett/mrab-regex/contents/README.rst"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F135"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/mrabarnett/mrab-regex/contents/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F128"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/gandersen101/spaczz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@staticmethod\ndef _spans_from_regex(\n    doc: Doc,\n    match: Match[str],\n    partial: bool,\n    char_to_token_map: ty.Dict[int, int],\n) -> ty.Optional[ty.Tuple[Span, ty.Tuple[int, int, int]]]:\n    \"\"\"Creates `Span` objects from regex matches.\"\"\"\n    start, end = match.span()\n    counts = getattr(match, \"fuzzy_counts\", (0, 0, 0))\n    span = doc.char_span(start, end)\n    if span:\n        return (span, counts)\n    if partial:\n        start_token = char_to_token_map.get(start)\n        end_token = char_to_token_map.get(end - 1)\n        if start_token is not None and end_token is not None:\n            span = Span(doc, start_token, end_token + 1)\n            return (span, counts)\n    return None",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/gandersen101/spaczz/blob/0b774b68e2495008a9579700194bb88789a1af45/src/spaczz/_search/regexsearcher.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F143"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=regex%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F128"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import regex\n\nregex.fullmatch(r\"(?:cats|cat){e<=1}\", \"cat\").fuzzy_counts",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/mrabarnett/mrab-regex/contents/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "rapidfuzz",
          "name": [
            {
              "t": "fact",
              "fact": "F146"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/rapidfuzz/RapidFuzz"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/rapidfuzz"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/pypi/rapidfuzz/3.14.6/json"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/pypi/rapidfuzz/3.14.6/json",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/paperless-ngx/paperless-ngx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _process_and_match(work: _WorkPackage) -> _WorkResult:\n    \"\"\"\n    Process document content and compute the fuzzy ratio.\n    score_cutoff lets rapidfuzz short-circuit when the score cannot reach the threshold.\n    \"\"\"\n    first_string = rapidfuzz.utils.default_process(work.content_a)\n    second_string = rapidfuzz.utils.default_process(work.content_b)\n    ratio = rapidfuzz.fuzz.ratio(\n        first_string,\n        second_string,\n        score_cutoff=work.score_cutoff,\n    )\n    return _WorkResult(work.pk_a, work.pk_b, ratio)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/paperless-ngx/paperless-ngx/blob/14252054a150595d89040a02cb510b9f43f4570b/src/documents/management/commands/document_fuzzy_match.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20rapidfuzz%20for%20approximate%20string%20matching%2C%20candidate%20ranking%2C%20duplicate%20detection%2C%20spelling%20comparison%20and%20phonetic%20scoring&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from rapidfuzz import fuzz\n\nfuzz.ratio(\"this is a test\", \"this is a test!\")",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pypi.org/pypi/rapidfuzz/3.14.6/json",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "levenshtein",
          "name": [
            {
              "t": "fact",
              "fact": "F163"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/rapidfuzz/Levenshtein"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/Levenshtein"
            },
            {
              "label": "Docs",
              "href": "https://rapidfuzz.github.io/Levenshtein/levenshtein.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F170"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://rapidfuzz.github.io/Levenshtein/levenshtein.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F163"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/EuroEval/EuroEval",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def get_closest_match(\n    string: str,\n    options: c.Iterable[str],\n    case_sensitive: bool,\n    insertion_weight: int = 1,\n    deletion_weight: int = 1,\n    substitution_weight: int = 1,\n) -> tuple[str, int]:\n    \"\"\"Find the closest match to a given string.\n\n    Args:\n        string:\n            The string to match.\n        options:\n            The options to match against.\n        case_sensitive:\n            Whether to match case sensitively.\n        insertion_weight (optional):\n            The weight of insertions in the Levenshtein distance. Defaults to 1.\n        deletion_weight (optional):\n            The weight of deletions in the Levenshtein distance. Defaults to 1.\n        substitution_weight (optional):\n            The weight of substitutions in the Levenshtein distance. Defaults to 1.\n\n    Returns:\n        A pair (closest_match, distance) where closest_match is the closest match to the\n        given string and distance is the Levenshtein distance between the two.\n    \"\"\"\n    distances = {\n        option: distance(\n            s1=string.lower() if not case_sensitive else string,\n            s2=option.lower() if not case_sensitive else option,\n            weights=(insertion_weight, deletion_weight, substitution_weight),\n        )\n        for option in options\n    }\n    closest_match = min(distances, key=lambda k: distances[k])\n    return closest_match, distances[closest_match]",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/EuroEval/EuroEval/blob/efb93af3a364dd58e166fb1cb45aa44fb3234297/src/euroeval/closest_match.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F178"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Levenshtein%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F163"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from Levenshtein import distance\n\ndistance(\"lewenstein\", \"levenshtein\")",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://rapidfuzz.github.io/Levenshtein/levenshtein.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "levenshtein.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F168"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "jellyfish",
          "name": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/jamesturk/jellyfish"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/jellyfish"
            },
            {
              "label": "Docs",
              "href": "https://jpt.sh/projects/jellyfish/functions/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F37"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F32"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://jpt.sh/projects/jellyfish/functions/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F181"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/J535D165/recordlinkage",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def jarowinkler_similarity(s1, s2):\n    conc = pandas.Series(list(zip(s1, s2)))\n\n    from jellyfish import jaro_winkler_similarity\n\n    def jaro_winkler_apply(x):\n        try:\n            return jaro_winkler_similarity(x[0], x[1])\n        except Exception as err:\n            if pandas.isnull(x[0]) or pandas.isnull(x[1]):\n                return np.nan\n            else:\n                raise err\n\n    return conc.apply(jaro_winkler_apply)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/J535D165/recordlinkage/blob/91bd75a7848627fb3c67c02303927612db7d9ac5/recordlinkage/algorithms/string.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20jellyfish%20for%20approximate%20string%20matching%2C%20candidate%20ranking%2C%20duplicate%20detection%2C%20spelling%20comparison%20and%20phonetic%20scoring&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F181"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import jellyfish\n\njellyfish.levenshtein_distance(\"jellyfish\", \"smellyfish\")",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://jpt.sh/projects/jellyfish/functions/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "thefuzz",
          "name": [
            {
              "t": "fact",
              "fact": "F198"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/seatgeek/thefuzz"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/thefuzz"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/pypi/thefuzz/0.22.1/json"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F60"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F55"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/pypi/thefuzz/0.22.1/json",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F198"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apastel/ytmusic-deleter",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F212"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _partial_match(titleA, titleB, score_cutoff):\n    score = fuzz.partial_ratio(titleA, titleB)\n\n    # Make sure this result at least passes the score cutoff\n    is_match = score >= score_cutoff\n    if is_match:\n        logging.debug(\n            f\"\"\"\n            Token A: {titleA}\n            Token B: {titleB}\n            Score: {score} ✅\n        \"\"\"\n        )\n        return is_match",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apastel/ytmusic-deleter/blob/a4660fb0bedd4f40335097df44794cfca6a46d26/ytmusic_deleter/duplicates.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20thefuzz%20for%20approximate%20string%20matching%2C%20candidate%20ranking%2C%20duplicate%20detection%2C%20spelling%20comparison%20and%20phonetic%20scoring&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F198"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from thefuzz import fuzz\n\nfuzz.ratio(\"this is a test\", \"this is a test!\")",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pypi.org/pypi/thefuzz/0.22.1/json",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F203"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "polyleven",
          "name": [
            {
              "t": "fact",
              "fact": "F214"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/fujimotos/polyleven"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/polyleven"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/fujimotos/polyleven/contents/README.rst"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F221"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/fujimotos/polyleven/contents/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F214"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/rotki/rotki",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F230"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _search_only_nfts_levenstein(\n        cursor: DBCursor,\n        filter_query: LevenshteinFilterQuery,\n) -> list[tuple[int, dict[str, Any]]]:\n    query, bindings = filter_query.prepare('nfts')\n    cursor.execute('SELECT identifier, name, collection_name FROM nfts ' + query, bindings)\n    search_result: list[tuple[int, dict[str, Any]]] = []\n    for entry in cursor:\n        lev_dist_min = 100\n        if entry[1] is not None:\n            lev_dist_min = min(\n                lev_dist_min,\n                levenshtein(filter_query.substring_search, entry[1].casefold()),\n            )\n        if entry[2] is not None:\n            lev_dist_min = min(\n                lev_dist_min,\n                levenshtein(filter_query.substring_search, entry[2].casefold()),\n            )\n        entry_info = {\n            'identifier': entry[0],\n            'name': entry[1],\n            'collection_name': entry[2],\n            'asset_type': AssetType.NFT.serialize(),\n        }\n        search_result.append((lev_dist_min, entry_info))\n\n    return search_result",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/rotki/rotki/blob/dc0251e875d7707f84b0778f74d29256b043a33f/rotkehlchen/db/search_assets.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=polyleven%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F214"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from polyleven import levenshtein\n\nlevenshtein(\"aaa\", \"ccc\")",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/fujimotos/polyleven/contents/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F219"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pyspellchecker",
          "name": [
            {
              "t": "fact",
              "fact": "F232"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/barrust/pyspellchecker"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pyspellchecker"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/barrust/pyspellchecker/contents/docs/source/quickstart.rst"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F239"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/barrust/pyspellchecker/contents/docs/source/quickstart.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F232"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/sql-machine-learning/sqlflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F248"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def spell_check():\n    spell = SpellChecker()\n    spell.word_frequency.load_words(known)\n    num = 0\n    for line in sys.stdin.readlines():\n        num += 1\n        words = list(\n            filter(\n                lambda w: w.lower() not in known and w[0] not in \"'0123456789\"\n                and len(w) > 4 and all(ord(c) < 128 for c in w),\n                re.findall(r\"[\\w']+\", line)))\n        known.update(map(lambda w: w.lower(), words))\n        print('#', num, end='\\r')\n        time.sleep(0.002)\n        for identifier in words:\n            misspelled = spell.unknown(\n                re.split(r\"(?<=[a-z0-9])(?=[A-Z])|_|(?<=[A-Z])(?=[A-Z][a-z])\",\n                         identifier))\n            # Get the one `most likely` answer\n            for word in misspelled:\n                print('#', num, identifier, '\\t',\n                      \"s/%s/%s\" % (word, spell.correction(word)))",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/sql-machine-learning/sqlflow/blob/6c492098320875427b08ad82ce3f874c0b6aaa7a/python/tools/spell_check.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pyspellchecker%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F232"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from spellchecker import SpellChecker\n\nspell = SpellChecker()\nspell.known([\"morning\", \"hapenning\"])",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/barrust/pyspellchecker/contents/docs/source/quickstart.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "quickstart.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F237"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "editdistance",
          "name": [
            {
              "t": "fact",
              "fact": "F250"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/roy-ht/editdistance"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/editdistance"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/roy-ht/editdistance/contents/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F257"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/roy-ht/editdistance/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F250"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/PaddlePaddle/PaddleSpeech",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F266"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def calculate_cer(self, seqs_hat, seqs_true):\n    \"\"\"Calculate sentence-level CER score.\n\n    :param list seqs_hat: prediction\n    :param list seqs_true: reference\n    :return: average sentence-level CER score\n    :rtype float\n    \"\"\"\n    char_eds, char_ref_lens = [], []\n    for i, seq_hat_text in enumerate(seqs_hat):\n        seq_true_text = seqs_true[i]\n        hyp_chars = seq_hat_text.replace(\" \", \"\")\n        ref_chars = seq_true_text.replace(\" \", \"\")\n        char_eds.append(editdistance.eval(hyp_chars, ref_chars))\n        char_ref_lens.append(len(ref_chars))\n    return float(sum(char_eds)) / sum(char_ref_lens)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/PaddlePaddle/PaddleSpeech/blob/6b25a400008d393f9c3af837b3c692b17f29ee1a/paddlespeech/s2t/utils/error_rate.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F265"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=editdistance%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F250"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import editdistance\neditdistance.eval('banana', 'bahama')",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/roy-ht/editdistance/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F255"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python fuzzy search library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#rapidfuzz",
          "label": [
            {
              "t": "text",
              "text": "RapidFuzz"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits most fuzzy matching, with string scorers and ranked extraction from a list of candidates. "
        },
        {
          "t": "link",
          "href": "#jellyfish",
          "label": [
            {
              "t": "text",
              "text": "jellyfish"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits phonetic matching such as Soundex and Metaphone. "
        },
        {
          "t": "link",
          "href": "#regex",
          "label": [
            {
              "t": "text",
              "text": "regex"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits approximate matching inside a regular expression."
        }
      ]
    },
    {
      "q": "What is RapidFuzz?",
      "a": [
        {
          "t": "link",
          "href": "#rapidfuzz",
          "label": [
            {
              "t": "text",
              "text": "RapidFuzz"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides string similarity metrics and ranks a list of candidates against a query. A separate alignment API returns where the match falls in each string."
        }
      ]
    },
    {
      "q": "What happened to FuzzyWuzzy?",
      "a": [
        {
          "t": "link",
          "href": "#thefuzz",
          "label": [
            {
              "t": "text",
              "text": "TheFuzz"
            }
          ]
        },
        {
          "t": "text",
          "text": " carries FuzzyWuzzy-style string, token, and partial scores under a new package name. It is implemented on RapidFuzz."
        }
      ]
    },
    {
      "q": "How do I compute Levenshtein distance in Python?",
      "a": [
        {
          "t": "link",
          "href": "#levenshtein",
          "label": [
            {
              "t": "text",
              "text": "Levenshtein"
            }
          ]
        },
        {
          "t": "text",
          "text": " computes edit distance, normalized ratios, and edit operations between two strings. "
        },
        {
          "t": "link",
          "href": "#editdistance",
          "label": [
            {
              "t": "text",
              "text": "editdistance"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#polyleven",
          "label": [
            {
              "t": "text",
              "text": "Polyleven"
            }
          ]
        },
        {
          "t": "text",
          "text": " compute the distance alone, and Polyleven accepts a maximum distance."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, rapidfuzz",
      "display": "RapidFuzz",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, rapidfuzz",
      "display": "135.0M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, rapidfuzz",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, rapidfuzz",
      "display": "3.14.6, Aug 2026",
      "asOf": "2026-08-30"
    },
    "F5": {
      "label": "Package release date, rapidfuzz",
      "display": "Aug 2026",
      "asOf": "2026-08-30"
    },
    "F6": {
      "label": "Repository stars, rapidfuzz",
      "display": "4.2K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Scores string similarity, rapidfuzz",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Compares word tokens, rapidfuzz",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Ranks candidate choices, rapidfuzz",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Handles transposed characters, rapidfuzz",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, rapidfuzz",
      "display": "pip install rapidfuzz",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, rapidfuzz",
      "display": "Provides string similarity metrics and candidate matching APIs.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, rapidfuzz",
      "display": "Ranks matching choices",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, rapidfuzz",
      "display": "Use process.extract or extractOne to search a collection of candidates.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, rapidfuzz",
      "display": "Handles reordered word tokens",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, rapidfuzz",
      "display": "Use token_sort_ratio when word order should not determine the match.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, rapidfuzz",
      "display": "Preprocessing is opt-in",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, rapidfuzz",
      "display": "Supply a processor when case and punctuation should be normalized.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, rapidfuzz",
      "display": "Token sets ignore extra words",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, rapidfuzz",
      "display": "Token-set scoring can treat a token subset as a complete match.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, rapidfuzz",
      "display": "from rapidfuzz import process, fuzz\nchoices = [\"Atlanta Falcons\", \"New York Jets\", \"New York Giants\", \"Dallas Cowboys\"]\nprocess.extract(\"new york jets\", choices, scorer=fuzz.WRatio, limit=2)\nprocess.extractOne(\"cowboys\", choices, scorer=fuzz.WRatio)\n# With preprocessing\nfrom rapidfuzz import process, fuzz, utils\nprocess.extract(\"new york jets\", choices, scorer=fuzz.WRatio, limit=2, processor=utils.default_process)\nprocess.extractOne(\"cowboys\", choices, scorer=fuzz.WRatio, processor=utils.default_process)\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, rapidfuzz",
      "display": "def _process_and_match(work: _WorkPackage) -> _WorkResult:\n    \"\"\"\n    Process document content and compute the fuzzy ratio.\n    score_cutoff lets rapidfuzz short-circuit when the score cannot reach the threshold.\n    \"\"\"\n    first_string = rapidfuzz.utils.default_process(work.content_a)\n    second_string = rapidfuzz.utils.default_process(work.content_b)\n    ratio = rapidfuzz.fuzz.ratio(\n        first_string,\n        second_string,\n        score_cutoff=work.score_cutoff,\n    )\n    return _WorkResult(work.pk_a, work.pk_b, ratio)\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, rapidfuzz",
      "display": "document_fuzzy_match.py · _process_and_match()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, rapidfuzz",
      "display": "paperless-ngx/paperless-ngx",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, paperless-ngx/paperless-ngx",
      "display": "48.2K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, paperless-ngx/paperless-ngx",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "Library name, jellyfish",
      "display": "jellyfish",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, jellyfish",
      "display": "10.6M",
      "asOf": "2026-11-16"
    },
    "F29": {
      "label": "License, jellyfish",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, jellyfish",
      "display": "1.3.0, Oct 2026",
      "asOf": "2026-10-16"
    },
    "F31": {
      "label": "Package release date, jellyfish",
      "display": "Oct 2026",
      "asOf": "2026-10-16"
    },
    "F32": {
      "label": "Repository stars, jellyfish",
      "display": "2.2K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Scores string similarity, jellyfish",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Compares word tokens, jellyfish",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Handles transposed characters, jellyfish",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, jellyfish",
      "display": "pip install jellyfish",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, jellyfish",
      "display": "Provides approximate string comparison and phonetic encoding functions.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, jellyfish",
      "display": "Compares spelling and pronunciation",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, jellyfish",
      "display": "Choose string-comparison functions or phonetic encoders for the matching task.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, jellyfish",
      "display": "Compares sets of words",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, jellyfish",
      "display": "Jaccard similarity can compare words or configured character sequences.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, jellyfish",
      "display": "NYSIIS targets English names",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, jellyfish",
      "display": "Choose another approach when the relevant pronunciation follows another language.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Quickstart, jellyfish",
      "display": "import jellyfish\njellyfish.levenshtein_distance('jellyfish', 'smellyfish')\njellyfish.jaro_similarity('jellyfish', 'smellyfish')\njellyfish.damerau_levenshtein_distance('jellyfish', 'jellyfihs')\njellyfish.metaphone('Jellyfish')\njellyfish.soundex('Jellyfish')\njellyfish.nysiis('Jellyfish')\njellyfish.match_rating_codex('Jellyfish')\n",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project function, jellyfish",
      "display": "def jarowinkler_similarity(s1, s2):\n    conc = pandas.Series(list(zip(s1, s2)))\n\n    from jellyfish import jaro_winkler_similarity\n\n    def jaro_winkler_apply(x):\n        try:\n            return jaro_winkler_similarity(x[0], x[1])\n        except Exception as err:\n            if pandas.isnull(x[0]) or pandas.isnull(x[1]):\n                return np.nan\n            else:\n                raise err\n\n    return conc.apply(jaro_winkler_apply)\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function reference, jellyfish",
      "display": "string.py · jarowinkler_similarity()",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project repository, jellyfish",
      "display": "J535D165/recordlinkage",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project stars, J535D165/recordlinkage",
      "display": "1.1K",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project push date, J535D165/recordlinkage",
      "display": "Feb 2024",
      "asOf": "2024-02-21"
    },
    "F50": {
      "label": "Library name, thefuzz",
      "display": "TheFuzz",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Monthly downloads, thefuzz",
      "display": "9.4M",
      "asOf": "2026-11-16"
    },
    "F52": {
      "label": "License, thefuzz",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Package release, thefuzz",
      "display": "0.22.1, Jan 2024",
      "asOf": "2024-01-19"
    },
    "F54": {
      "label": "Package release date, thefuzz",
      "display": "Jan 2024",
      "asOf": "2024-01-19"
    },
    "F55": {
      "label": "Repository stars, thefuzz",
      "display": "3.6K",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Scores string similarity, thefuzz",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Compares word tokens, thefuzz",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Ranks candidate choices, thefuzz",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Install, thefuzz",
      "display": "pip install thefuzz",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "What it does, thefuzz",
      "display": "Provides fuzzy string scoring and matching against candidate collections.",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths lead, thefuzz",
      "display": "Ranks choices with custom scorers",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths, thefuzz",
      "display": "Pass a scorer to extractOne to change how candidates are matched.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, thefuzz",
      "display": "Handles reordered word tokens",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, thefuzz",
      "display": "Use token_sort_ratio when comparing text with reordered words.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "limitations lead, thefuzz",
      "display": "Rounds similarity scores",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations, thefuzz",
      "display": "Standard scorer results are rounded to integers.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations lead, thefuzz",
      "display": "Deduplication favors longer text",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations, thefuzz",
      "display": "dedupe retains the longest matching string, with alphabetical tie-breaking.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Quickstart, thefuzz",
      "display": "from thefuzz import fuzz\nfrom thefuzz import process\n\nfuzz.ratio(\"fuzzy wuzzy was a bear\", \"wuzzy fuzzy was a bear\")\nfuzz.token_sort_ratio(\"fuzzy wuzzy was a bear\", \"wuzzy fuzzy was a bear\")\n\nchoices = [\"Atlanta Falcons\", \"New York Jets\", \"New York Giants\", \"Dallas Cowboys\"]\nprocess.extract(\"new york jets\", choices, limit=2)\nprocess.extractOne(\"cowboys\", choices)\n",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project function, thefuzz",
      "display": "def _partial_match(titleA, titleB, score_cutoff):\n    score = fuzz.partial_ratio(titleA, titleB)\n\n    # Make sure this result at least passes the score cutoff\n    is_match = score >= score_cutoff\n    if is_match:\n        logging.debug(\n            f\"\"\"\n            Token A: {titleA}\n            Token B: {titleB}\n            Score: {score} ✅\n        \"\"\"\n        )\n        return is_match\n",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project function reference, thefuzz",
      "display": "duplicates.py · _partial_match()",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project repository, thefuzz",
      "display": "apastel/ytmusic-deleter",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project stars, apastel/ytmusic-deleter",
      "display": "278",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project push date, apastel/ytmusic-deleter",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F75": {
      "label": "Library name, textdistance",
      "display": "TextDistance",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Monthly downloads, textdistance",
      "display": "2.4M",
      "asOf": "2026-11-16"
    },
    "F77": {
      "label": "License, textdistance",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Package release, textdistance",
      "display": "4.6.3, Jul 2024",
      "asOf": "2024-07-16"
    },
    "F79": {
      "label": "Package release date, textdistance",
      "display": "Jul 2024",
      "asOf": "2024-07-16"
    },
    "F80": {
      "label": "Repository stars, textdistance",
      "display": "3.5K",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Scores string similarity, textdistance",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Compares word tokens, textdistance",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Handles transposed characters, textdistance",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Install, textdistance",
      "display": "pip install textdistance",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "What it does, textdistance",
      "display": "Compares distances and similarities between sequences using multiple algorithms.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "strengths lead, textdistance",
      "display": "Shares a consistent comparison API",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths, textdistance",
      "display": "Use distance and normalized_similarity across supported algorithms.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths lead, textdistance",
      "display": "Can use external implementations",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths, textdistance",
      "display": "Install extras to enable supported external algorithm implementations.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "limitations lead, textdistance",
      "display": "Word comparisons need configuration",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "limitations, textdistance",
      "display": "Set qval to None to compare words instead of individual characters.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations lead, textdistance",
      "display": "Restricts repeated edits by default",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations, textdistance",
      "display": "Set restricted=False when the same character must participate in multiple edits.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Quickstart, textdistance",
      "display": "import textdistance\n\ntextdistance.hamming('test', 'text')\n# 1\n\ntextdistance.hamming.distance('test', 'text')\n# 1\n\ntextdistance.hamming.similarity('test', 'text')\n# 3\n\ntextdistance.hamming.normalized_distance('test', 'text')\n# 0.25\n\ntextdistance.hamming.normalized_similarity('test', 'text')\n# 0.75\n\ntextdistance.Hamming(qval=2).distance('test', 'text')\n# 2\n\n",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Developer need",
      "display": "Ranking candidate choices",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Why choose rapidfuzz",
      "display": "matching strings against a candidate collection",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Developer need in introduction",
      "display": "ranking candidate choices",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "When to consider jellyfish",
      "display": "phonetic encoders are the missing capability",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need",
      "display": "Custom-scored candidate matching",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose thefuzz",
      "display": "choosing a scorer for extractOne",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "custom-scored candidate matching",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "When to consider rapidfuzz",
      "display": "native floating-point scoring and explicit preprocessing are preferable",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need",
      "display": "Multiple distance algorithms",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Why choose textdistance",
      "display": "a common interface for distance and similarity algorithms",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need in introduction",
      "display": "multiple distance algorithms",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Phonetic matching",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose jellyfish",
      "display": "comparing pronunciation as well as string edits",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "phonetic matching",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Page introduction",
      "display": "Python fuzzy search libraries let application developers match text despite spelling differences.",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "FAQ: Which Python fuzzy search library should I choose?",
      "display": "RapidFuzz supplies candidate matching through process.extract and extractOne.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "FAQ: Which Python fuzzy search library should I choose?",
      "display": "TheFuzz lets extractOne use a custom scorer.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: Which Python fuzzy search library should I choose?",
      "display": "TextDistance exposes common distance and similarity methods across algorithms.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Which Python fuzzy search library should I choose?",
      "display": "jellyfish provides approximate and phonetic string matching.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Does RapidFuzz normalize case and punctuation by default?",
      "display": "Current RapidFuzz leaves preprocessing opt-in.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Does RapidFuzz normalize case and punctuation by default?",
      "display": "The own matching examples pass utils.default_process explicitly when normalization is wanted.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: When should I use a token-sort score?",
      "display": "The own RapidFuzz example compares the same words in different orders with token_sort_ratio.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Can a token-set score hide extra words?",
      "display": "RapidFuzz token_set_ratio treats a token subset as a complete match regardless of additional content.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Are TheFuzz and RapidFuzz identical APIs?",
      "display": "TheFuzz uses a preprocessing wrapper to preserve its own processing behavior.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Are TheFuzz and RapidFuzz identical APIs?",
      "display": "Its standard scorer helper rounds the result to an integer.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: How does TheFuzz choose which duplicate text to retain?",
      "display": "dedupe chooses the longest matching item and uses alphabetical order to break length ties.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: How does TextDistance compare words rather than characters?",
      "display": "Set qval to None for word splitting; the default compares characters.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: How does TextDistance handle repeated edits?",
      "display": "Its Damerau-Levenshtein implementation defaults to restricted edits; restricted=False allows a character to be touched more than once.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: How does TextDistance choose an external implementation?",
      "display": "It tries supported installed implementations when they can handle the input sequences.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: How does TextDistance choose an external implementation?",
      "display": "Set external=False to disable external implementations.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Does jellyfish compare pronunciation?",
      "display": "Its phonetic functions include Soundex, Metaphone, and NYSIIS.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does jellyfish compare pronunciation?",
      "display": "NYSIIS is primarily intended for names pronounced in English.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can jellyfish Jaccard similarity compare words?",
      "display": "Its sets contain words when ngram_size is None, or character sequences of the configured length.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "Library name, regex",
      "display": "regex",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Monthly downloads, regex",
      "display": "391.9M",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "License, regex",
      "display": "Apache-2.0 AND CNRI-Python",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Package release, regex",
      "display": "2026.11.19",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Package release date, regex",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Install, regex",
      "display": "python3.13 -m pip install regex==2026.11.19",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Quickstart, regex",
      "display": "import regex\n\nregex.fullmatch(r\"(?:cats|cat){e<=1}\", \"cat\").fuzzy_counts",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Official description, regex",
      "display": "Matches regular expressions approximately, with limits on insertions, deletions, and substitutions.",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Quickstart source file, regex",
      "display": "README.rst",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Ranks arbitrary choices, regex",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Fuzzy substring offsets, regex",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Phonetic encodings, regex",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Search policy, regex",
      "display": "Default fuzzy search accepts the first satisfying match; BESTMATCH searches for the best fit and ENHANCEMATCH improves the found fit.",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Error contract, regex",
      "display": "fuzzy_counts is substitutions, insertions, and deletions; fuzzy_changes identifies their positions. These are not a universal0–100 similarity score.",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Project function, regex",
      "display": "@staticmethod\ndef _spans_from_regex(\n    doc: Doc,\n    match: Match[str],\n    partial: bool,\n    char_to_token_map: ty.Dict[int, int],\n) -> ty.Optional[ty.Tuple[Span, ty.Tuple[int, int, int]]]:\n    \"\"\"Creates `Span` objects from regex matches.\"\"\"\n    start, end = match.span()\n    counts = getattr(match, \"fuzzy_counts\", (0, 0, 0))\n    span = doc.char_span(start, end)\n    if span:\n        return (span, counts)\n    if partial:\n        start_token = char_to_token_map.get(start)\n        end_token = char_to_token_map.get(end - 1)\n        if start_token is not None and end_token is not None:\n            span = Span(doc, start_token, end_token + 1)\n            return (span, counts)\n    return None",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project source file, regex",
      "display": "src/spaczz/_search/regexsearcher.py",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project full_name, regex",
      "display": "gandersen101/spaczz",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project stargazers_count, regex",
      "display": "260",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Library name, rapidfuzz",
      "display": "RapidFuzz",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Monthly downloads, rapidfuzz",
      "display": "143.8M",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "License, rapidfuzz",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Package release, rapidfuzz",
      "display": "3.14.6",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release date, rapidfuzz",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Install, rapidfuzz",
      "display": "python3.13 -m pip install rapidfuzz==3.14.6",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Quickstart, rapidfuzz",
      "display": "from rapidfuzz import fuzz\n\nfuzz.ratio(\"this is a test\", \"this is a test!\")",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Ranks arbitrary choices, rapidfuzz",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Fuzzy substring offsets, rapidfuzz",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Phonetic encodings, rapidfuzz",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Normalization, rapidfuzz",
      "display": "Version3 does not preprocess strings by default; pass a processor or call utils.default_process deliberately.",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Partial alignment, rapidfuzz",
      "display": "Short-needle and long-needle paths have different optimality/performance guarantees; returned ScoreAlignment exposes endpoints. No measured speed advantage asserted here.",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Dependency overlap, rapidfuzz",
      "display": "TheFuzz depends on RapidFuzz, so their installation counters overlap and are not independent developer cohorts.",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project function, rapidfuzz",
      "display": "def _process_and_match(work: _WorkPackage) -> _WorkResult:\n    \"\"\"\n    Process document content and compute the fuzzy ratio.\n    score_cutoff lets rapidfuzz short-circuit when the score cannot reach the threshold.\n    \"\"\"\n    first_string = rapidfuzz.utils.default_process(work.content_a)\n    second_string = rapidfuzz.utils.default_process(work.content_b)\n    ratio = rapidfuzz.fuzz.ratio(\n        first_string,\n        second_string,\n        score_cutoff=work.score_cutoff,\n    )\n    return _WorkResult(work.pk_a, work.pk_b, ratio)",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project source file, rapidfuzz",
      "display": "src/documents/management/commands/document_fuzzy_match.py",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project full_name, rapidfuzz",
      "display": "paperless-ngx/paperless-ngx",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project stargazers_count, rapidfuzz",
      "display": "48.2K",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Library name, Levenshtein",
      "display": "Levenshtein",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Monthly downloads, Levenshtein",
      "display": "20.5M",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "License, Levenshtein",
      "display": "GPL-2.0-or-later",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Package release, Levenshtein",
      "display": "0.27.5",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Package release date, Levenshtein",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Install, Levenshtein",
      "display": "python3.13 -m pip install Levenshtein==0.27.5",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Quickstart, Levenshtein",
      "display": "from Levenshtein import distance\n\ndistance(\"lewenstein\", \"levenshtein\")",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Official description, Levenshtein",
      "display": "Computes edit distances, similarity ratios, and edit operations between strings.",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Quickstart source file, Levenshtein",
      "display": "levenshtein.html",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Ranks arbitrary choices, Levenshtein",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Fuzzy substring offsets, Levenshtein",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Phonetic encodings, Levenshtein",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Weighted edits, Levenshtein",
      "display": "distance supports separate insertion, deletion, and substitution costs; ratio is a normalized indel similarity, not the same score as arbitrary weighted distance.",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Distribution alias, Levenshtein",
      "display": "python-Levenshtein0.27.5 requires the Levenshtein distribution; counters are not pooled or ranked as two implementations.",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project function, Levenshtein",
      "display": "def get_closest_match(\n    string: str,\n    options: c.Iterable[str],\n    case_sensitive: bool,\n    insertion_weight: int = 1,\n    deletion_weight: int = 1,\n    substitution_weight: int = 1,\n) -> tuple[str, int]:\n    \"\"\"Find the closest match to a given string.\n\n    Args:\n        string:\n            The string to match.\n        options:\n            The options to match against.\n        case_sensitive:\n            Whether to match case sensitively.\n        insertion_weight (optional):\n            The weight of insertions in the Levenshtein distance. Defaults to 1.\n        deletion_weight (optional):\n            The weight of deletions in the Levenshtein distance. Defaults to 1.\n        substitution_weight (optional):\n            The weight of substitutions in the Levenshtein distance. Defaults to 1.\n\n    Returns:\n        A pair (closest_match, distance) where closest_match is the closest match to the\n        given string and distance is the Levenshtein distance between the two.\n    \"\"\"\n    distances = {\n        option: distance(\n            s1=string.lower() if not case_sensitive else string,\n            s2=option.lower() if not case_sensitive else option,\n            weights=(insertion_weight, deletion_weight, substitution_weight),\n        )\n        for option in options\n    }\n    closest_match = min(distances, key=lambda k: distances[k])\n    return closest_match, distances[closest_match]",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project source file, Levenshtein",
      "display": "src/euroeval/closest_match.py",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Project full_name, Levenshtein",
      "display": "EuroEval/EuroEval",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Project stargazers_count, Levenshtein",
      "display": "205",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Library name, jellyfish",
      "display": "jellyfish",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Monthly downloads, jellyfish",
      "display": "11.1M",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "License, jellyfish",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Package release, jellyfish",
      "display": "1.3.0",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Package release date, jellyfish",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Install, jellyfish",
      "display": "python3.13 -m pip install jellyfish==1.3.0",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Quickstart, jellyfish",
      "display": "import jellyfish\n\njellyfish.levenshtein_distance(\"jellyfish\", \"smellyfish\")",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Ranks arbitrary choices, jellyfish",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Fuzzy substring offsets, jellyfish",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Phonetic encodings, jellyfish",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Algorithm choice, jellyfish",
      "display": "Jaro-Winkler similarity and phonetic encodings answer different questions; Soundex output is a code, not an edit-distance score.",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "License metadata, jellyfish",
      "display": "Selected1.3.0 declares MIT through its PyPI license classifier; an empty license field is not a missing or different grant.",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Current repository, jellyfish",
      "display": "https://codeberg.org/jpt/jellyfish/",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project function, jellyfish",
      "display": "def jarowinkler_similarity(s1, s2):\n    conc = pandas.Series(list(zip(s1, s2)))\n\n    from jellyfish import jaro_winkler_similarity\n\n    def jaro_winkler_apply(x):\n        try:\n            return jaro_winkler_similarity(x[0], x[1])\n        except Exception as err:\n            if pandas.isnull(x[0]) or pandas.isnull(x[1]):\n                return np.nan\n            else:\n                raise err\n\n    return conc.apply(jaro_winkler_apply)",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Project source file, jellyfish",
      "display": "recordlinkage/algorithms/string.py",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Project full_name, jellyfish",
      "display": "J535D165/recordlinkage",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Project stargazers_count, jellyfish",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Library name, thefuzz",
      "display": "TheFuzz",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Monthly downloads, thefuzz",
      "display": "9.9M",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "License, thefuzz",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Package release, thefuzz",
      "display": "0.22.1",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Package release date, thefuzz",
      "display": "Jan 2024",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Install, thefuzz",
      "display": "python3.13 -m pip install thefuzz==0.22.1",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Quickstart, thefuzz",
      "display": "from thefuzz import fuzz\n\nfuzz.ratio(\"this is a test\", \"this is a test!\")",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Ranks arbitrary choices, thefuzz",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Fuzzy substring offsets, thefuzz",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Phonetic encodings, thefuzz",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Score contract, thefuzz",
      "display": "Current wrappers round RapidFuzz scores to integers; same input can have a different numeric precision from a direct RapidFuzz call.",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Migration, thefuzz",
      "display": "Archived fuzzywuzzy is the superseded package identity; do not modernize an old external example by silently changing its import.",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project function, thefuzz",
      "display": "def _partial_match(titleA, titleB, score_cutoff):\n    score = fuzz.partial_ratio(titleA, titleB)\n\n    # Make sure this result at least passes the score cutoff\n    is_match = score >= score_cutoff\n    if is_match:\n        logging.debug(\n            f\"\"\"\n            Token A: {titleA}\n            Token B: {titleB}\n            Score: {score} ✅\n        \"\"\"\n        )\n        return is_match",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project source file, thefuzz",
      "display": "ytmusic_deleter/duplicates.py",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project full_name, thefuzz",
      "display": "apastel/ytmusic-deleter",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Project stargazers_count, thefuzz",
      "display": "278",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Library name, polyleven",
      "display": "Polyleven",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Monthly downloads, polyleven",
      "display": "5.4M",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "License, polyleven",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Package release, polyleven",
      "display": "0.12.0",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Package release date, polyleven",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Install, polyleven",
      "display": "python3.13 -m pip install polyleven==0.12.0",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Quickstart, polyleven",
      "display": "from polyleven import levenshtein\n\nlevenshtein(\"aaa\", \"ccc\")",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Official description, polyleven",
      "display": "Computes Levenshtein distance between Unicode strings with an optional maximum distance.",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Quickstart source file, polyleven",
      "display": "README.rst",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Ranks arbitrary choices, polyleven",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Fuzzy substring offsets, polyleven",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Phonetic encodings, polyleven",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Cutoff contract, polyleven",
      "display": "With third argument k, distances greater than k return k+1. Do not report that sentinel as the true edit distance.",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Interface scope, polyleven",
      "display": "The own README explicitly describes one public levenshtein function; candidate loops, normalization, and result ranking are application code.",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Project function, polyleven",
      "display": "def _search_only_nfts_levenstein(\n        cursor: DBCursor,\n        filter_query: LevenshteinFilterQuery,\n) -> list[tuple[int, dict[str, Any]]]:\n    query, bindings = filter_query.prepare('nfts')\n    cursor.execute('SELECT identifier, name, collection_name FROM nfts ' + query, bindings)\n    search_result: list[tuple[int, dict[str, Any]]] = []\n    for entry in cursor:\n        lev_dist_min = 100\n        if entry[1] is not None:\n            lev_dist_min = min(\n                lev_dist_min,\n                levenshtein(filter_query.substring_search, entry[1].casefold()),\n            )\n        if entry[2] is not None:\n            lev_dist_min = min(\n                lev_dist_min,\n                levenshtein(filter_query.substring_search, entry[2].casefold()),\n            )\n        entry_info = {\n            'identifier': entry[0],\n            'name': entry[1],\n            'collection_name': entry[2],\n            'asset_type': AssetType.NFT.serialize(),\n        }\n        search_result.append((lev_dist_min, entry_info))\n\n    return search_result",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Project source file, polyleven",
      "display": "rotkehlchen/db/search_assets.py",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Project full_name, polyleven",
      "display": "rotki/rotki",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Project stargazers_count, polyleven",
      "display": "4.1K",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Library name, pyspellchecker",
      "display": "pyspellchecker",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Monthly downloads, pyspellchecker",
      "display": "3.5M",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "License, pyspellchecker",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Package release, pyspellchecker",
      "display": "0.9.1",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Package release date, pyspellchecker",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Install, pyspellchecker",
      "display": "python3.13 -m pip install pyspellchecker==0.9.1",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Quickstart, pyspellchecker",
      "display": "from spellchecker import SpellChecker\n\nspell = SpellChecker()\nspell.known([\"morning\", \"hapenning\"])",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Official description, pyspellchecker",
      "display": "Corrects spelling from word-frequency dictionaries with a configurable edit distance.",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Quickstart source file, pyspellchecker",
      "display": "docs/source/quickstart.rst",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Ranks arbitrary choices, pyspellchecker",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Fuzzy substring offsets, pyspellchecker",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Phonetic encodings, pyspellchecker",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Candidate policy, pyspellchecker",
      "display": "correction chooses by dictionary probability among generated edit candidates; candidates returns a set rather than a sorted top-k result.",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Dictionary host, pyspellchecker",
      "display": "Bundled language data or caller-loaded word frequencies affect results; custom identifiers can be added through word_frequency.load_words. Dataset and language choices are distinct from a generic pairwise metric.",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Project function, pyspellchecker",
      "display": "def spell_check():\n    spell = SpellChecker()\n    spell.word_frequency.load_words(known)\n    num = 0\n    for line in sys.stdin.readlines():\n        num += 1\n        words = list(\n            filter(\n                lambda w: w.lower() not in known and w[0] not in \"'0123456789\"\n                and len(w) > 4 and all(ord(c) < 128 for c in w),\n                re.findall(r\"[\\w']+\", line)))\n        known.update(map(lambda w: w.lower(), words))\n        print('#', num, end='\\r')\n        time.sleep(0.002)\n        for identifier in words:\n            misspelled = spell.unknown(\n                re.split(r\"(?<=[a-z0-9])(?=[A-Z])|_|(?<=[A-Z])(?=[A-Z][a-z])\",\n                         identifier))\n            # Get the one `most likely` answer\n            for word in misspelled:\n                print('#', num, identifier, '\\t',\n                      \"s/%s/%s\" % (word, spell.correction(word)))",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Project source file, pyspellchecker",
      "display": "python/tools/spell_check.py",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Project full_name, pyspellchecker",
      "display": "sql-machine-learning/sqlflow",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Project stargazers_count, pyspellchecker",
      "display": "5.2K",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Library name, editdistance",
      "display": "editdistance",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Monthly downloads, editdistance",
      "display": "2.7M",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "License, editdistance",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Package release, editdistance",
      "display": "0.8.1",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Package release date, editdistance",
      "display": "Feb 2024",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Install, editdistance",
      "display": "python3.13 -m pip install editdistance==0.8.1",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Quickstart, editdistance",
      "display": "import editdistance\neditdistance.eval('banana', 'bahama')",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Official description, editdistance",
      "display": "Computes Levenshtein distance on strings or sequences of hashable items in C++.",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Quickstart source file, editdistance",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Ranks arbitrary choices, editdistance",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Fuzzy substring offsets, editdistance",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Phonetic encodings, editdistance",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Input and scale, editdistance",
      "display": "eval returns an integer edit distance and supports hashable-element iterables, allowing separate character and word error calculations.",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Host normalization, editdistance",
      "display": "Space removal, case folding, denominator choice, and empty-reference handling are application policies, not automatic evaluation guarantees.",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Project function, editdistance",
      "display": "def calculate_cer(self, seqs_hat, seqs_true):\n    \"\"\"Calculate sentence-level CER score.\n\n    :param list seqs_hat: prediction\n    :param list seqs_true: reference\n    :return: average sentence-level CER score\n    :rtype float\n    \"\"\"\n    char_eds, char_ref_lens = [], []\n    for i, seq_hat_text in enumerate(seqs_hat):\n        seq_true_text = seqs_true[i]\n        hyp_chars = seq_hat_text.replace(\" \", \"\")\n        ref_chars = seq_true_text.replace(\" \", \"\")\n        char_eds.append(editdistance.eval(hyp_chars, ref_chars))\n        char_ref_lens.append(len(ref_chars))\n    return float(sum(char_eds)) / sum(char_ref_lens)",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Project source file, editdistance",
      "display": "paddlespeech/s2t/utils/error_rate.py",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Project full_name, editdistance",
      "display": "PaddlePaddle/PaddleSpeech",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Project stargazers_count, editdistance",
      "display": "12.7K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python fuzzy search libraries RapidFuzz TheFuzz TextDistance jellyfish examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
