o
    욌hZ                     @   s<   d dl mZ d dlmZ G dd deZG dd deZdS )   )BaseStemmer)Amongc                   @   st  e Zd ZdZg edddedddedddeddded	dded
ddedddedddedddedddedddedddedddedddedddedddeddddedddeddddeddded dded!dded"d#ded$d#ded%d#ded&d'dded(d)ded*d'dded+d,ded-d#ded.dded/d0ded1d2ded3d2ded4d0ded5dded6d7dded8d9ded:d9ded;d9ded<dded=dded>d?ded@dAdedBdAdedCd?dedDddedEddedFddedGddedHdIdedJdIdedKddedLddedMddedNdOdedPdOdedQdRdedSdRdedTdOdedUdOdedVddedWdXdedYdXdedZddded[d\ded]d\ded^d\ded_dded`dadedbdcdedddcdededadedfdadedgdhdedidhdedjdadedkdaddedldmdedndmdedodmdedpdaddedqdrdedsdrdedtdrdedudadedvdadedwddedxddedydzded{d|ded}d|ded~dzdedddedddeddzdeddzdeddzdedddedddeddzdedddedddeddzdeddzdeddzddedddedddedddeddzddedddedddedddedddedddedddedddedddedddedddedddedddeddddedddedddedddeddddedddedddedddedddedddZg dZdd Zdd ZdS )HindiStemmerz
    This class implements the stemming algorithm defined by a snowball script.
    Generated by Snowball 2.2.0 - https://snowballstem.org/
    u   आँu   ाँu   इयाँr   u   आइयाँ   u   ाइयाँu   ियाँu   आंu	   उआं   u	   ुआंu   ईंu	   आईं	   u	   ाईंu   एंu	   आएं   u	   उएंu	   ाएंu   ताएं   _HindiStemmer__r_CONSONANTu   अताएं   u   नाएंu   अनाएं   u	   ुएंu   ओंu	   आओं   u	   उओंu	   ाओंu   ताओं   u   अताओं   u   नाओंu   अनाओं   u	   ुओंu   ांu   इयां   u   आइयां   u   ाइयांu   ियांu   ींu	   तीं#   u   अतीं$   u   आतींu   ातींu   ेंu   ोंu   इयों)   u   आइयों*   u   ाइयोंu   ियोंu   अu   आu   इu   ईu   आई1   u   ाईu   उu   ऊu   एu   आए6   u   इएu	   आइए8   u	   ाइएu   ाएu   िएu   ओu   आओ=   u   ाओu   करu	   अकर@   u	   आकरu	   ाकरu   ाu   ऊंगाD   u   आऊंगाE   u   ाऊंगाu   ूंगाu	   एगाu   आएगाI   u   ाएगाu	   ेगाu   ताu	   अताM   u	   आताu	   ाताu   नाu	   अनाQ   u	   आनाu	   ानाu	   आयाu	   ायाu   िu   ीu   ऊंगीX   u   आऊंगीY   u   ाऊंगीu   एंगीu   आएंगी\   u   ाएंगीu   ूंगीu   ेंगीu	   एगीu   आएगीa   u   ाएगीu	   ओगीu   आओगीd   u   ाओगीu	   ेगीu	   ोगीu   तीu	   अतीi   u	   आतीu	   ातीu   नीu	   अनीm   u   ुu   ूu   ेu   एंगेq   u   आएंगेr   u   ाएंगेu   ेंगेu	   ओगेu   आओगेv   u   ाओगेu	   ोगेu   तेu	   अतेz   u	   आतेu	   ातेu   नेu	   अने~   u	   आनेu	   ानेu   ोu   ्)
   r.   r.   r.          r0   r0         c                 C   s   |  tjdds
dS dS )Ni	  i_	  FT)in_grouping_br   g_consonantself r7   Z/var/www/Befach/backend/venv/lib/python3.10/site-packages/snowballstemmer/hindi_stemmer.py__r_CONSONANT   s   zHindiStemmer.__r_CONSONANTc                 C   sj   | j | jkrdS |  j d7  _ | j | _| j| _ | j | _| tjdkr%dS | j | _|  s/dS | j| _ dS )NFr   r0   T)	cursorlimitlimit_backwardketfind_among_br   a_0bra	slice_delr5   r7   r7   r8   _stem   s   zHindiStemmer._stemN)	__name__
__module____qualname____doc__r   r?   r4   r   rB   r7   r7   r7   r8   r      s2   








	



















 
!
"
#
$%
&
'
(
)
*
+
,
-
.
/
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
@A
B
C
D
E
F
G
H
I
J
K
L
MN
O
P
QR
S
T
U
V
W
X
Y
Z
[
\
]
^
_
`
a
b
c
d
e
f
g
h
ij
k
l
mn
o
p
q
r
s
t
u
v
w
x
y
z{
|
}
~ 
  
  
  
  
  r   c                   @   s   e Zd ZdS )lab0N)rC   rD   rE   r7   r7   r7   r8   rG      s    rG   N)basestemmerr   amongr   r   BaseExceptionrG   r7   r7   r7   r8   <module>   s
    '