def create_vocab_item(vocab_class, row, row_key):
    """gets or create a vocab entry based on name and name_reverse"""
    try:
        name_reverse = row[row_key].split("|")[1]
        name = row[row_key].split("|")[0]
    except IndexError:
        name_reverse = row[row_key]
        name = row[row_key]
    temp_item, _ = vocab_class.objects.get_or_create(
        name=name, name_reverse=name_reverse
    )
    return temp_item