
    /hg                         S r SS jr\S:X  a;  SSKJr  SSKJr  / SQr\" \R                  " S5      \5        \R                  " 5         gg)	z.
A utility for displaying lexical dispersion.
c           	      T    SSK Jn  [        [	        U5      5       VVs0 s H  u  pgU(       a  UR                  5       OUU_M!     nnn/ / p[        U 5       HV  u  pU(       a  UR                  5       OUnUR                  U5      nUc  M4  U	R                  U5        U
R                  U5        MX     USSS2   nUR                  " 5       u  pUR                  XS5        S[        U 5      S-
  sUR                  l        UR                  l        UR                  SS9  UR                  [!        [#        [        U5      5      5      US	S
9  UR%                  S[        U5      5        UR'                  U5        UR)                  S5        U$ ! [         a  n[        S5      UeSnAff = fs  snnf )a^  
Generate a lexical dispersion plot.

:param text: The source text
:type text: list(str) or iter(str)
:param words: The target words
:type words: list of str
:param ignore_case: flag to set if case should be ignored when searching text
:type ignore_case: bool
:return: a matplotlib Axes object that may still be modified before plotting
:rtype: Axes
    NzRThe plot function requires matplotlib to be installed. See https://matplotlib.org/|   x)axisC0)colorzWord Offset)matplotlib.pyplotpyplotImportError	enumeratereversedcasefoldgetappendsubplotsplotlendataLimx0x1	autoscale
set_ytickslistrangeset_ylim	set_title
set_xlabel)textwordsignore_casetitleplteywordword2yxsysr   token_axs                  L/var/www/auris/envauris/lib/python3.13/site-packages/nltk/draw/dispersion.pydispersion_plotr/      sl   ' !%11GA 'D!31   dO$/ UJJu=IIaLIIaL $ $B$KELLNEAGGBC#$c$i!m BJJM2::=LLcLMM$uSZ()5M=KKCJLLMM- I9  *
 	s   F &F$
F!FF!__main__r   N)	gutenberg)ElinorMarianneEdward
Willoughbyzausten-sense.txt)FzLexical Dispersion Plot)
__doc__r/   __name__r   r   r$   nltk.corpusr1   r!   show     r.   <module>r<      sG   
,^ z#%:EIOO$67?HHJ r;   