def offset_stopword(rank, nb_lemmas_in_stopwords):
    """Offset word frequency rankings by a small amount to take into account the missing ranks from ignored stopwords"""
    return max(1, rank - nb_lemmas_in_stopwords)