def detect_language(show_stats:nil, language_batch_input:nil, custom_headers:nil)
      response = detect_language_async(show_stats:show_stats, language_batch_input:language_batch_input, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def detect_language(show_stats:nil, language_batch_input:nil, custom_headers:nil)
      response = detect_language_async(show_stats:show_stats, language_batch_input:language_batch_input, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
The API returns the detected language and a numeric score between 0 and 1.

 Scores close to 1 indicate 100% certainty that the identified language is
 true. A total of 120 languages are supported.

 @param show_stats [Boolean] (optional) if set to true, response will contain
 input and document level statistics.
 @param language_batch_input [LanguageBatchInput] Collection of documents to
 analyze.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [LanguageBatchResult] operation results.