code: 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)
      )
  
file_path: textacy/src/textacy/text_stats/readability.py
imports: import logging
  import math
  import statistics
  from typing import Optional
  from spacy.tokens import Doc
  from ..None import errors
  from .None import basics, utils
label_desc: Use image node_id 2 for calling a global function with example usage: automatic_arabic_readability_index(doc) and returns: unknown