Skip to main content

apiverve_didyoumean 1.2.2 copy "apiverve_didyoumean: ^1.2.2" to clipboard
apiverve_didyoumean: ^1.2.2 copied to clipboard

Did You Mean suggests spelling corrections for misspelled search queries and phrases. Pass any text string to receive the original query along with a list of alternate spelling suggestions.

Did You Mean API - Dart/Flutter Client #

Did You Mean suggests spelling corrections for misspelled search queries and phrases. Pass any text string to receive the original query along with a list of alternate spelling suggestions.

pub package License: MIT

This is the Dart/Flutter client for the Did You Mean API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_didyoumean: ^1.2.2

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_didyoumean/apiverve_didyoumean.dart';

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

  try {
    final response = await client.execute({
      'query': 'what weather today is'
    });

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

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "query": "what weather today is",
    "didYouMean": [
      "what is the weather today",
      "what's the weather like today",
      "what will be the weather today"
    ]
  }
}

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
130
points
80
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Did You Mean suggests spelling corrections for misspelled search queries and phrases. Pass any text string to receive the original query along with a list of alternate spelling suggestions.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_didyoumean