Skip to content
pubscout

dart_phonetics

1.0.1, released 5 years ago by cardilloonline.com

A collection of phonetic algorithms for encoding words or names to enable fuzzy searching.

WASM-ready
$ flutter pub add dart_phonetics
Source repository

What it does

Provides implementations of Soundex, Refined Soundex, NYSIIS, and Double Metaphone. Each algorithm generates a phonetic code that can be compared or indexed for fuzzy matching of similar-sounding words.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to find or compare words that sound alike, such as in spell checking, genealogy surname analysis, or fuzzy search features.
  • You want a pure Dart implementation without external dependencies for phonetic encoding.

Skip it when

  • You require a more extensive set of phonetic algorithms beyond the ones provided.
  • You need advanced linguistic processing or language‑specific phonetics not covered by these algorithms.

Strengths

  • Pure Dart implementation, no external dependencies.
  • Supports null safety and recent Dart SDKs.
  • Includes multiple classic phonetic algorithms useful for various domains.

Weaknesses

  • Limited to a small set of algorithms.
  • No active maintenance or frequent updates.
  • No documentation on performance or edge‑case handling.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:dart_phonetics/dart_phonetics.dart';

void main() {
  final soundex = Soundex();
  print(soundex.encode('Smith')); // e.g., "S530"
}

Alternatives

Packages that do the same job and could replace dart_phonetics.

Works with

Packages commonly used together with dart_phonetics: ones it builds on, ones built on it, and its own family.