Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LanguageIdentifier

Contains language identification techniques from the API

Hierarchy

  • LanguageIdentifier

Index

Constructors

constructor

Properties

languageIdentifierOptions

languageIdentifierOptions: LanguageIdentifierOptions

Methods

identifyLanguage

  • Identify the language of the provided text.

    Parameters

    • text: string

      The text whose language needs to be identified.

    Returns Promise<IdentifiedLanguage>

    Object having languageCode of the identified language

identifyPossibleLanguages

  • Identify the possible languages of the provided text.

    Parameters

    • text: string

      The text whose language needs to be identified.

    Returns Promise<IdentifiedLanguagesResponse>

    Object having list of languageCodes of the possible languages with the confidence of each.

Generated using TypeDoc