def get_lang_abbr_from_resp(http_resp):
    """
    This function takes a requests object containing a response from
    detectlanguage.com, parses it, and returns the abbreviation of
    the language detected.
    """
    return http_resp.json()["data"]["detections"][0]["language"]