MLKitLanguageID Framework Reference

  • MLKIdentifiedLanguage provides information about the identified language of a given text input, including its language tag and confidence score.

  • It utilizes the BCP 47 language tag standard for language representation.

  • The confidence score indicates the system's certainty about the identified language.

  • Direct initialization of MLKIdentifiedLanguage is not allowed; it's likely obtained through other methods or APIs.

MLKIdentifiedLanguage


@interface MLKIdentifiedLanguage : NSObject

An identified language for the given input text.

  • The BCP 47 language tag for the language.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull languageTag;
  • The confidence score of the language.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float confidence;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;