google_mlkit_language_id 0.0.2 google_mlkit_language_id: ^0.0.2 copied to clipboard
A Flutter plugin to use Google's ML Kit Language Identification to determine the language of a string of text.
Google's ML Kit Language Identification for Flutter #
A Flutter plugin to use Google's ML Kit Language Identification to determine the language of a string of text.
Getting Started #
Before you get started read about the requirements and known issues of this plugin here.
Supported languages #
Language identification supports the following languages.
Usage #
Language Identification #
Create an instance of LanguageIdentifier
final languageIdentifier = LanguageIdentifier(confidenceThreshold: 0.5);
Process text
final String response = await languageIdentifier.identifyLanguage(text);
final List<IdentifiedLanguage> possibleLanguages = await languageIdentifier.identifyPossibleLanguages(text);
Release resources with close()
imageLabeler.close();
Example app #
Find the example app here.
Contributing #
Contributions are welcome. In case of any problems look at existing issues, if you cannot find anything related to your problem then open an issue. Create an issue before opening a pull request for non trivial fixes. In case of trivial fixes open a pull request directly.