3

U'ícw&ã@slddlmZddlmZGdd„deƒZGdd„deƒZGdd„deƒZGd	d
„d
eƒZGdd„deƒZ	d
S)é)ÚBaseStemmer)ÚAmongc^@s¼eZdZdZedd–dƒedd—dƒedd˜dƒedd™dƒeddšdƒedd›dƒed	dœd
ƒedddƒeddždƒed
dŸd
ƒedd dƒedd¡d
ƒedd¢dƒedd£d
ƒedd¤dƒedd¥dƒedd¦d
ƒgZedd§d¨ƒedd©dªƒedd«d¬ƒgZedd­dƒedd®dƒedd¯d
ƒgZedd°dƒedd±dƒedddƒedddƒedddƒedddƒedddƒed d!dƒed"ddƒed#ddƒed$ddƒed%d²dƒed&d'dƒed(d'dƒed)d³dƒed*d+dƒed,d´dƒed-d.dƒed/d.dƒed0dµdƒed1d¶dƒed2d·dƒed3d4dƒed5d4dƒed6d¸dƒed7d¹dƒed8dºdƒed9d»dƒed:d¼dƒed;d<dƒed=d<dƒed>d?dƒed@d½dƒedAd¾dƒedBd¿dƒedCdÀdƒedDdÁdƒedEdÂdƒedFdÃdƒedGdÄdƒedHdIdƒedJdÅdƒedKdLdƒedMdLdƒedNdÆdƒedOdPdƒedQdPdƒedRdÇdƒedSdTdƒedUdÈdƒedVdWdƒedXdWdƒedYdÉdƒedZd[dƒed\d[dƒed]d[dƒed^d_dƒed`d_dƒedad[dƒedbdÊdƒedcdddƒededddƒedfdddƒedgdddƒedhdidƒedjdËdƒedkdldƒedmdldƒedndldƒedodÌdƒedpdqdƒedrdqdƒedsdqdƒedtdqdƒedudvdƒedwdÍdƒedxdÎdƒedydÏdƒedzdÐdƒed{dÑdƒed|d}dƒed~dÒdƒedd€dƒedd€dƒed‚d€dƒedƒd€dƒed„d…dƒed†dÓdƒed‡dˆdƒed‰dÔdƒedŠdÕdƒg[Zd‹dŒ„Z	ddŽ„Z
dd„Zd‘d’„Zd“d”„Z
d•S)ÖÚ
NepaliStemmerz
    This class implements the stemming algorithm defined by a snowball script.
    Generated by Snowball 2.2.0 - https://snowballstem.org/
    u	लाइru	लाई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	ेका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	ेकोuनेकोé/uदोu	इदोé1u	िदोuयोu	इयोé4u	भयोu	ियोuथियोé7uदियोuथ्योuछौu	इछौé;u	एछौu	िछौu	ेछौuनेछौé?uयौuथियौéAuछ्यौuथ्यौu	छन्uइछन्éEuएछन्uिछन्uेछन्uनेछन्éIuलान्uछिन्uथिन्u	पर्u	इस्uथिइस्éOu	छस्uइछस्éQuएछस्uिछस्uेछस्uनेछस्éUu	िस्uथिस्éWuछेस्uहोस्cCs|j|_|jtjƒ}|dkr dS|j|_|dkr>|jƒs<dSnÒyº|j|j}y|y\|j|j}y|jdƒsnt	ƒ‚t
ƒ‚Wnt	k
rŠYnX|j||_|jdƒs¨tƒ‚Wnt
k
r¾YnXtƒ‚Wntk
rÜYnX|j||_|jƒsödSWntk
rYnXdS)NéFruएuेT)
ÚcursorÚketÚfind_among_brÚa_0ÚbraÚ	slice_delÚlimitÚeq_s_bÚlab3Úlab2Úlab1Úlab0)ÚselfÚ	among_varÚv_1Úv_2©r/úI/tmp/pip-build-gk9425m9/snowballstemmer/snowballstemmer/nepali_stemmer.pyZ__r_remove_category_1ŒsB




z#NepaliStemmer.__r_remove_category_1cCs(|j|_|jtjƒdkrdS|j|_dS)NrFT)rr r!rÚa_1r#)r+r/r/r0Z__r_check_category_2®s
z"NepaliStemmer.__r_check_category_2c!CsP|j|_|jtjƒ}|dkr dS|j|_|dkr.yÔ|j|j}y|jdƒsRtƒ‚t	ƒ‚Wntk
rnYnX|j||_y|jdƒsŽt
ƒ‚t	ƒ‚Wnt
k
rªYnX|j||_y|jdƒsÊtƒ‚t	ƒ‚Wntk
ræYnX|j||_|jdƒsdSWnt	k
rYnX|jƒsLdSn|jdƒs>dS|jƒsLdSd	S)
NrFruयौuछौuनौuथेu	त्रT)
rr r!rÚa_2r#r%r&r)r*r(r'r$)r+r,r-r/r/r0Z__r_remove_category_2µsP








z#NepaliStemmer.__r_remove_category_2cCs4|j|_|jtjƒdkrdS|j|_|jƒs0dSdS)NrFT)rr r!rÚa_3r#r$)r+r/r/r0Z__r_remove_category_3Þsz#NepaliStemmer.__r_remove_category_3cCs |j|_|j|_|j|j}|jƒ|j||_|j|j}y´x®|j|j}yz|j|j}y8|j|j}|jƒsvtƒ‚|j||_|jƒstƒ‚Wntk
r¦YnX|j||_|jƒsÂtƒ‚w@Wntk
rÚYnX|j||_Pq@WWnt	k
rYnX|j||_|j|_dS)NT)
rZlimit_backwardr%Ú#_NepaliStemmer__r_remove_category_1Ú"_NepaliStemmer__r_check_category_2r(Ú#_NepaliStemmer__r_remove_category_2Ú#_NepaliStemmer__r_remove_category_3r)r*)r+r-r.Zv_3Zv_4Zv_5r/r/r0Ú_stemèsB

zNepaliStemmer._stemNéÿÿÿÿr9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9r9)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rr"r1r2r3r4r5r6r7r8r/r/r/r0rsð













































































































")
rc@seZdZdS)r*N)r:r;r<r/r/r/r0r*	sr*c@seZdZdS)r)N)r:r;r<r/r/r/r0r)sr)c@seZdZdS)r(N)r:r;r<r/r/r/r0r(sr(c@seZdZdS)r'N)r:r;r<r/r/r/r0r'sr'N)
ZbasestemmerrZamongrrÚ
BaseExceptionr*r)r(r'r/r/r/r0Ú<module>s