LanguageDetectionResult type

The result of a language detection action on a single document.

type LanguageDetectionResult =
  | LanguageDetectionSuccessResult
  | LanguageDetectionErrorResult