def get_lang_from_corpus_name(corpus_name):
    """
    Determines the language of a corpus based on its name.
    """

    if corpus_name.startswith("conll03_en") or corpus_name.startswith("ud_en"):
        return "en"
    elif corpus_name in ["conll03_de", "germeval"]:
        return "de"
    else:
        return None