
    jt                     6    d dl Z d dlmZ  G d de          ZdS )    N)replace_punctuationc                       e Zd ZdZd                                Zd                    d eD                       Zed             Z	dS )ExclamationWordszr
    Searches for exclamation points that are part of words
    and not ending punctuation and replaces them.
    um   !Xũ !Kung ǃʼOǃKung !Xuun !Kung-Ekoka ǃHu ǃKhung ǃKu ǃung ǃXo ǃXû ǃXung ǃXũ !Xun Yahoo! Y!J Yum!|c              #   >   K   | ]}t          j        |          V  d S N)reescape).0ws     a/lsinfo/ai/hellotax_ai/base_platform/venv/lib/python3.11/site-packages/pysbd/exclamation_words.py	<genexpr>zExclamationWords.<genexpr>   s*      !J!J1")A,,!J!J!J!J!J!J    c                 L    t          j        t          j        t          |          S r   )r	   subr   EXCLAMATION_REGEXr   )clstexts     r   apply_ruleszExclamationWords.apply_rules   s"    v&8:M  	r   N)
__name__
__module____qualname____doc__splitEXCLAMATION_WORDSjoinr   classmethodr    r   r   r   r      sz          H  N  N  P  P		!J!J8I!J!J!JJJ  [  r   r   )r	   pysbd.punctuation_replacerr   objectr   r   r   r   <module>r!      sT    				 : : : : : :    v     r   