def two_letter_language_code(feed):
    """
        feed.language conforms to
        http://www.rssboard.org/rss-language-codes
        sometimes it is of the form de-de, de-au providing a hint of dialect
        thus, we only pick the first two letters of this code

    :param feed:
    :return:
    """
    return feed.language[:2]