def lix(n_words, n_sentences, n_long_words):
    """
    Läsbarhetsindex (LIX) measures readability given the average number of words
    per sentence and the percentage of long words (7+ letters) in the text.
    """
    return n_words / n_sentences + 100 * n_long_words / n_words