def detect_language(text):

    ratios = _calculate_languages_ratios(text)

    most_rated_language = max(ratios, key=ratios.get)

    return most_rated_language
Calculate probability of given text to be written in several languages and
dataset/ETHPy150Open alfredolainez/deep-nlp/language.py/detect_language