(doc: Doc)
return (n_words / n_sents) + (100 * n_long_words / n_words)
Readability test commonly used in Sweden on both English- and non-English-language
    texts, whose value estimates the difficulty of reading a foreign text.

    Higher value => more difficult text.

    Args:
        doc

    References:
        https://en.wikipedia.org/wiki/Lix_(readability_test)
Readability test commonly used in Sweden on both English- and non-English-language
    texts, whose value estimates the difficulty of reading a foreign text.
Readability test commonly used in Sweden on both English - and non - English - language texts whose value estimates the difficulty of reading a foreign text .
def lix(doc: Doc) -> float:
    """
    Readability test commonly used in Sweden on both English- and non-English-language
    texts, whose value estimates the difficulty of reading a foreign text.

    Higher value => more difficult text.

    Args:
        doc

    References:
        https://en.wikipedia.org/wiki/Lix_(readability_test)
    """
    words = tuple(utils.get_words(doc))
    n_sents = basics.n_sents(doc)
    n_words = basics.n_words(words)
    n_long_words = basics.n_long_words(words)
    return (n_words / n_sents) + (100 * n_long_words / n_words)
def lix ( doc : Doc ) -> float : words = tuple ( utils . get_words ( doc ) ) n_sents = basics . n_sents ( doc ) n_words = basics . n_words ( words ) n_long_words = basics . n_long_words ( words ) return ( n_words / n_sents ) + ( 100 * n_long_words / n_words )