# 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.

- Related Packages
  Package
  Description
  com.codename1.ai
  Codename One's AI / LLM client surface plus the value types, streaming primitives, and chat-binding helpers that sit on top of it.
  com.codename1.ai.inference
  Reusable on-device inference sessions for `.tflite` models.
  com.codename1.ai.vision
  Vendor-neutral on-device vision APIs for still images and live camera frames.
- Class
  Description
  LanguageBackend
  Identifies a native language-service implementation.
  LanguageBackends
  Selects native backends for language identification, translation, and Smart Reply.
  LanguageCandidate
  One ranked BCP-47 language candidate returned by `LanguageIdentifier.identify(String, LanguageOptions)`.
  LanguageIdentifier
  Identifies possible languages entirely on device.
  LanguageIdentifier.Session
  Reusable owner of a native language-identification backend.
  LanguageOptions
  Reusable options shared by language identification, translation, and Smart Reply operations.
  SmartReply
  Produces short reply suggestions for a chronological conversation without uploading its messages.
  SmartReply.Session
  Reusable owner of a native Smart Reply backend.
  SmartReplyMessage
  One message supplied to the on-device smart-reply model.
  Translator
  Translates text on device with lazily installed language-pair models.
  Translator.Session
  Reusable owner of a native translation backend.