fuzzywuzzy
1.2.0, released 2 years ago by kat.bio
A Dart port of FuzzyWuzzy for fuzzy string matching and searching using Levenshtein distance.
What it does
Calculates similarity scores between strings using algorithms like simple ratio, partial ratio, token sort, token set, and weighted ratio. It also provides extract utilities to find the best matching choices from a list.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to implement search functionality with typo tolerance.
- You want to compare similarity between strings in pure Dart.
Skip it when
- You require complex NLP-based semantic search instead of string similarity metrics.
Strengths
- Lightweight with only one dependency (collection).
- Supports generic lists with custom getters for extraction.
Weaknesses
- Limited to Levenshtein distance-based fuzzy string matching algorithms.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:fuzzywuzzy/fuzzywuzzy.dart';
final score = ratio("mysmilarstring", "mysimilarstring");Alternatives
Packages that do the same job and could replace fuzzywuzzy.
- validators2
String validation and sanitization for Dart.
83Compare - iregexp
Dart implementation of RFC 9485 I-Regexp, validating and matching patterns.
75Compare - text_search
An in-memory fuzzy text searching library for Dart.
50Compare - text_comparison_score_codespark
Calculate string similarity and fuzzy matching scores using Levenshtein, Damerau-Levenshtein, and Jaro-Winkler.
57Compare