def sharedLangCost(criterion, frRow, exRow):
    """Returns 1 if the two do not share a language, else 0"""
    fluentQ = criterion['fluentQ']
    learningQ = criterion['learningQ']
    frLangs = [set(frRow[fluentQ].split(',')),
                set(frRow[learningQ].split(','))]
    exLangs = [set(exRow[fluentQ].split(',')),
                set(exRow[learningQ].split(','))]
    # Do they share no language ?
    return int(len(frLangs[0].union(frLangs[1])\
     .intersection(exLangs[0].union(exLangs[1]))) == 0)