# Fuzzy String Matching

> A skill for finding best string matches in datasets using fuzzy matching libraries like fuzzywuzzy or rapidfuzz.

- Skill: `cxcscmu/fuzzy-string-matching` (Agent Skill)
- Install (CLI): `npx get-skill add cxcscmu/fuzzy-string-matching`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cxcscmu/fuzzy-string-matching/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: cxcscmu (https://skillmd.com/u/cxcscmu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/cxcscmu/fuzzy-string-matching

---


# Fuzzy String Matching

This skill demonstrates how to use fuzzy string matching to find company or fund names in a dataset.

## Requirements
- `fuzzywuzzy` or `rapidfuzz`
- `python-Levenshtein` (optional but recommended for speed)

## Installation
```bash
pip install rapidfuzz
```

## Usage

```python
import pandas as pd
from rapidfuzz import process, fuzz

df = pd.read_csv('data.tsv', sep='\t')
names = df['NAME_COLUMN'].dropna().unique()

# Find the best match
query = "Renaissance Technologies"
best_match = process.extractOne(query, names, scorer=fuzz.token_sort_ratio)

print(f"Best match: {best_match[0]} with score {best_match[1]}")
```

