o
    Zht                     @   s(   d dl Z d dlmZ G dd deZdS )    N)replace_punctuationc                   @   s8   e Zd ZdZd Zddd eD Zed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                 c   s    | ]}t |V  qd S N)reescape).0w r
   N/var/www/html/lang_env/lib/python3.10/site-packages/pysbd/exclamation_words.py	<genexpr>   s    zExclamationWords.<genexpr>c                 C   s   t tjt|S r   )r   subr   EXCLAMATION_REGEXr   )clstextr
   r
   r   apply_rules   s   
zExclamationWords.apply_rulesN)
__name__
__module____qualname____doc__splitZEXCLAMATION_WORDSjoinr   classmethodr   r
   r
   r
   r   r      s    r   )r   Zpysbd.punctuation_replacerr   objectr   r
   r
   r
   r   <module>   s   