import hashlib


def get_hash_of_texts_to_analyze(person_id, model, texts):
    """
    Takes arguments and builds a fingerprint by calculating a hash
    Parameters
    ----------
    person_id: str
        Direct identifier.
    model: str
        Language model name.
    texts: list
        List of texts.
    Returns
    -------
    str
        Hash.
    """
    text_hash = hashlib.sha256()
    text_hash.update(str(person_id).encode())
    text_hash.update(model.encode())
    for text, _ in texts:
        text_hash.update(text.encode())
    text_hash.update(str(len(texts)).encode())
    return text_hash.hexdigest()