How botfront/fuzzy-matcher works
Project type and purpose
• This is a Python library (an open-source tool) called “Fuzzy Matcher.”
• Its purpose is to provide simple fuzzy string matching functions (ratio, partial_ratio) as an MIT-licensed alternative to Fuzzy Wuzzy.
File structure
Top-level files:
• .gitignore, .travis.yml, LICENSE, README.md – repo metadata, CI config, license, documentation
• requirements.txt, setup.py – packaging and install dependencies
• __init__.py – package marker (at root, likely no code here)
Package directory fuzzy_matcher/:
• __init__.py – exposes public API
• process.py – core implementation includes:
– extract(query, choices, limit, scorer)
– scorer implementations (ratio, partial_ratio)
Test directory tests/:
• test_fuzzy_matcher.py – unit tests for the core functions
README for additional insights
• No external services or databases—pure in-memory string processing.
• Provides only two scorers; intended to be lightweight.