(doc: Doc)
return 0.4 * ((n_words / n_sents) + (100 * n_polysyllable_words / n_words))
Readability test whose value estimates the number of years of education
    required to understand a text, similar to :func:`flesch_kincaid_grade_level()`
    and :func:`smog_index()`.

    Higher value => more difficult text.

    Args:
        doc

    References:
        https://en.wikipedia.org/wiki/Gunning_fog_index
Readability test whose value estimates the number of years of education
    required to understand a text, similar to :func:`flesch_kincaid_grade_level()`
    and :func:`smog_index()`.
Readability test whose value estimates the number of years of education required to understand a text similar to : func : flesch_kincaid_grade_level () and : func : smog_index () .
def gunning_fog_index(doc: Doc) -> float:
    """
    Readability test whose value estimates the number of years of education
    required to understand a text, similar to :func:`flesch_kincaid_grade_level()`
    and :func:`smog_index()`.

    Higher value => more difficult text.

    Args:
        doc

    References:
        https://en.wikipedia.org/wiki/Gunning_fog_index
    """
    words = tuple(utils.get_words(doc))
    n_sents = basics.n_sents(doc)
    n_words = basics.n_words(words)
    n_polysyllable_words = basics.n_polysyllable_words(words, lang=doc.lang_)
    return 0.4 * ((n_words / n_sents) + (100 * n_polysyllable_words / n_words))
def gunning_fog_index ( doc : Doc ) -> float : words = tuple ( utils . get_words ( doc ) ) n_sents = basics . n_sents ( doc ) n_words = basics . n_words ( words ) n_polysyllable_words = basics . n_polysyllable_words ( words , lang = doc . lang_ ) return 0.4 * ( ( n_words / n_sents ) + ( 100 * n_polysyllable_words / n_words ) )