Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DocumentLanguage

Package version

An object representing the detected language for a given text span.

Hierarchy

  • DocumentLanguage

Index

Properties

confidence

confidence: number

Confidence of correctly identifying the language.

languageCode

languageCode: string

Detected language. Value may an ISO 639-1 language code (ex. "en", "fr") or BCP 47 language tag (ex. "zh-Hans").

spans

spans: DocumentSpan[]

Location of the text elements in the concatenated content the language applies to.

Generated using TypeDoc