def firstlemma(lemmastring):
    """selects the first lemma from a string denoting a "set" of lemmas,
       e.g. |bla|blub|"""
    lemmastring = lemmastring.strip("|")
    lemmalist = lemmastring.split("|")
    return(lemmalist[0])