Skip to main content

apiverve_anagramdetector 1.2.4 copy "apiverve_anagramdetector: ^1.2.4" to clipboard
apiverve_anagramdetector: ^1.2.4 copied to clipboard

Anagram Detector checks whether two words or phrases are anagrams of each other. Submit two strings to receive a true or false match verdict, cleaned comparison text, and character counts with options [...]

Anagram Detector API - Dart/Flutter Client #

Anagram Detector checks whether two words or phrases are anagrams of each other. Submit two strings to receive a true or false match verdict, cleaned comparison text, and character counts with options to ignore letter case and spaces.

pub package License: MIT

This is the Dart/Flutter client for the Anagram Detector API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_anagramdetector: ^1.2.4

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_anagramdetector/apiverve_anagramdetector.dart';

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

  try {
    final response = await client.execute({
      'text1': 'listen',
      'text2': 'silent',
      'ignorecase': true,
      'ignorespaces': true
    });

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

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "text1": "listen",
    "text2": "silent",
    "is_anagram": true,
    "cleaned_text1": "listen",
    "cleaned_text2": "silent",
    "sorted_text1": "eilnst",
    "sorted_text2": "eilnst",
    "length_text1": 6,
    "length_text2": 6,
    "similarity_percentage": 100
  }
}

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

0
likes
0
points
1.19k
downloads

Publisher

verified publisherapiverve.com

Weekly Downloads

Anagram Detector checks whether two words or phrases are anagrams of each other. Submit two strings to receive a true or false match verdict, cleaned comparison text, and character counts with options to ignore letter case and spaces.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_anagramdetector