Package com.codename1.ai.language


package com.codename1.ai.language

Vendor-neutral on-device language identification, translation, and smart reply.

Android uses feature-scoped ML Kit components. On iOS, automatic language identification uses Apple's Natural Language framework. An application opts into each iOS ML Kit component with LanguageBackends.mlKitLanguageIdentification(), LanguageBackends.mlKitTranslation(), or LanguageBackends.mlKitSmartReply(). Each entry point and optional selector is scanned independently, so using one feature does not bundle the others. Translation model payloads are installed lazily by ML Kit. Other targets expose the same API with an explicit unsupported fallback.