Skip to main content

apiverve_textlanguage 1.2.6 copy "apiverve_textlanguage: ^1.2.6" to clipboard
apiverve_textlanguage: ^1.2.6 copied to clipboard

Text Language is a language detection API that detects the language of any input string, returning the full language name and its two-letter ISO 639-1 code. Send plain text passages or short snippets [...]

Text Language API - Dart/Flutter Client #

Text Language is a language detection API that detects the language of any input string, returning the full language name and its two-letter ISO 639-1 code. Send plain text passages or short snippets to identify incoming multilingual content.

pub package License: MIT

This is the Dart/Flutter client for the Text Language API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_textlanguage: ^1.2.6

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_textlanguage/apiverve_textlanguage.dart';

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

  try {
    final response = await client.execute({
      'text': 'Ceci est un exemple de texte. Il peut détecter la langue'
    });

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

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "language": "french",
    "iso": "fr"
  }
}

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
76
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Text Language is a language detection API that detects the language of any input string, returning the full language name and its two-letter ISO 639-1 code. Send plain text passages or short snippets to identify incoming multilingual content.

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_textlanguage