code: 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)
  
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 8 for calling a global function with example usage: lix(doc) and returns: unknown