Skip to content
pubscout

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.

WASM-ready
$ flutter pub add fuzzywuzzy
Source repository

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.