def add_historical_data(historical_data, i_vocab_try):
    """ Add try to historical data

    Parameters
    -----
    historical_data: pd.DataFrame()
        Historical data of the session
    i_vocab_try: pd.DataFrame
        The vocab table
        id_vocab: int
            The word id of the chosen word
        input_language: str
            The input language
        output_language: str
            The output language
        is_it_correct: boolean
            Is the answer correct
        your_guess: str
            The guess word
        question_time: datetime.timedelta
            Time it took to write an answer
        write_it_again: str
            What was written when it asked to write it again

    Return
    -----
    historicalData: pd.DataFrame()
        Historical data of the session

    """

    historical_data = historical_data.append({
        'id_vocab': i_vocab_try['id_vocab'],
        'german_word': i_vocab_try['german_word'],
        'english_word': i_vocab_try['english_word'],
        'score_before': i_vocab_try['score_before'],
        'score_before_other_language': i_vocab_try['score_before_other_language'],
        'language_asked': i_vocab_try['output_language'],
        'result': i_vocab_try['is_it_correct'],
        'guess': i_vocab_try['your_guess'],
        'question_time': i_vocab_try['question_time'],
        "write_it_again": i_vocab_try['write_it_again'],
        "is_it_another_word": i_vocab_try['is_it_another_word'],
        "confused_word": i_vocab_try['confused_word'],
        'datetime': i_vocab_try['datetime']
    }, ignore_index=True)

    return historical_data