Phonetic Encoder API - Dart/Flutter Client

Phonetic Encoder generates phonetic codes for words using Soundex and Metaphone algorithms. These codes represent how words sound, enabling fuzzy matching of similar-sounding names.

pub package License: MIT

This is the Dart/Flutter client for the Phonetic Encoder API.

Installation

Add this to your pubspec.yaml:

dependencies:
  apiverve_phonetic: ^1.2.7

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage

import 'package:apiverve_phonetic/apiverve_phonetic.dart';

void main() async {
  final client = PhoneticClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'word': 'smith',
      'algorithm': 'both'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response

{
  "status": "ok",
  "error": null,
  "data": {
    "word": "smith",
    "soundex": "S530",
    "metaphone": "SM0"
  }
}

API Reference

Authentication

All requests require an API key. Get yours at apiverve.com.

License

MIT License - see LICENSE for details.


Built with Dart for APIVerve

Libraries

apiverve_phonetic
Phonetic Encoder API client for Dart/Flutter