hemangsk / capacitor-mlkit-language

Capacitor Plugin implementing Language Identification on Android & iOS using Google's on-device ML library - ML Kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capacitor ML Kit Language ID

Plugin implementing Language Identification on Android & iOS using Google's on-device ML library - ML Kit

Tests Builds

Why ?

Google's ML Kit SDK helps us to identify the language of a string of text. We can get the string's most likely language as well as a list of all the possible languages alongwith confidence scores. This plugin provides a Typescript API to interact with the native ML Kit libraries on iOS and Android.

Usage

1. Create a LanguageIdentification client

const languageIdentifier: LanguageIdentifier = LanguageIdentification.getClient();

2. Identify Language

const response = await languageIdentifier.identifyLanguage('This is some english');

3. Identify All Possible Languages

const response = await languageIdentifier.identifyPossibleLanguages('This is some english');

Reference

Docs

About

Capacitor Plugin implementing Language Identification on Android & iOS using Google's on-device ML library - ML Kit

License:MIT License


Languages

Language:Swift 39.1%Language:Java 37.1%Language:TypeScript 15.0%Language:Ruby 4.0%Language:Objective-C 2.8%Language:JavaScript 2.0%