MLKitLanguageID Framework Reference

  • IdentifiedLanguage object provides the identified language and its confidence score for a given text input.

  • It uses the BCP 47 language tag to represent the identified language.

  • A confidence score, ranging from 0.0 to 1.0, indicates the model's certainty about the identified language.

  • Instances of IdentifiedLanguage cannot be directly initialized by users.

IdentifiedLanguage

class IdentifiedLanguage : NSObject

An identified language for the given input text.