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.
Before you get started read about the requirements and known issues of this plugin here.
Language identification supports the following languages.
Create an instance of
final languageIdentifier = LanguageIdentifier(confidenceThreshold: 0.5);
final String response = await languageIdentifier.identifyLanguage(text); final List<IdentifiedLanguage> possibleLanguages = await languageIdentifier.identifyPossibleLanguages(text);
Release resources with
Find the example app here.
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.