(doc: Doc)
return (3.28 * n_chars) + (1.43 * n_chars / n_words) + (1.24 * n_words / n_sents)
Readability test for Arabic-language texts based on number of characters and
    average word and sentence lengths.

    Higher value => more difficult text.

    Args:
        doc

    References:
        Al Tamimi, Abdel Karim, et al. "AARI: automatic arabic readability index."
        Int. Arab J. Inf. Technol. 11.4 (2014): 370-378.
Readability test for Arabic-language texts based on number of characters and
    average word and sentence lengths.
Readability test for Arabic - language texts based on number of characters and average word and sentence lengths .
def automatic_arabic_readability_index(doc: Doc) -> float:
    """
    Readability test for Arabic-language texts based on number of characters and
    average word and sentence lengths.

    Higher value => more difficult text.

    Args:
        doc

    References:
        Al Tamimi, Abdel Karim, et al. "AARI: automatic arabic readability index."
        Int. Arab J. Inf. Technol. 11.4 (2014): 370-378.
    """
    if doc.lang_ != "ar":
        LOGGER.warning(
            "doc lang = '%s', but this readability statistic is intended for use on "
            "'ar'-language texts only",
            doc.lang_,
        )
    words = tuple(utils.get_words(doc))
    n_sents = basics.n_sents(doc)
    n_words = basics.n_words(words)
    n_chars = basics.n_chars(words)
    return (3.28 * n_chars) + (1.43 * n_chars / n_words) + (1.24 * n_words / n_sents)
def automatic_arabic_readability_index ( doc : Doc ) -> float : if doc . lang_ != "ar" : LOGGER . warning ( "doc lang = '%s', but this readability statistic is intended for use on " "'ar'-language texts only" , doc . lang_ , ) words = tuple ( utils . get_words ( doc ) ) n_sents = basics . n_sents ( doc ) n_words = basics . n_words ( words ) n_chars = basics . n_chars ( words ) return ( 3.28 * n_chars ) + ( 1.43 * n_chars / n_words ) + ( 1.24 * n_words / n_sents )