DetectLanguageResult type

The result of the detect language operation on a single document.

type DetectLanguageResult =
  | DetectLanguageSuccessResult
  | DetectLanguageErrorResult