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

Anagram Detector is a tool for checking if two words or phrases are anagrams of each other. It provides character frequency analysis and similarity scoring.

Anagram Detector API - Dart/Flutter Client #

Anagram Detector is a tool for checking if two words or phrases are anagrams of each other. It provides character frequency analysis and similarity scoring.

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.1.14

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,
    "character_frequency_text1": {
      "l": 1,
      "i": 1,
      "s": 1,
      "t": 1,
      "e": 1,
      "n": 1
    },
    "character_frequency_text2": {
      "s": 1,
      "i": 1,
      "l": 1,
      "e": 1,
      "n": 1,
      "t": 1
    },
    "common_characters": {
      "l": 1,
      "i": 1,
      "s": 1,
      "t": 1,
      "e": 1,
      "n": 1
    },
    "unique_to_text1": {},
    "unique_to_text2": {},
    "similarity_percentage": 100,
    "options": {
      "ignore_case": true,
      "ignore_spaces": true
    }
  }
}

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
50
points
35
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Anagram Detector is a tool for checking if two words or phrases are anagrams of each other. It provides character frequency analysis and similarity scoring.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_anagramdetector