3

U'íc¾Oã@s¬ddlmZddlmZGdd„deƒZGdd„deƒZGdd„deƒZGd	d
„d
eƒZGdd„deƒZ	Gd
d„deƒZ
Gdd„deƒZGdd„deƒZGdd„deƒZ
dS)é)ÚBaseStemmer)ÚAmongca@s eZdZdZedddƒedddƒedddƒgZed	ddƒed
ddƒedddƒed
ddƒedddƒedddƒedddƒedddƒedddƒedddƒedddƒedd dƒedd!dƒedd"dƒedd#dƒedddƒgZedd$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ƒed'd-dƒed(d.dƒed)d/dƒed*d0dƒed+d1dƒed,d2dƒed-d3dƒed.d4dƒed/d5dƒed0d6dƒed1d2dƒed3d7dƒed4d8dƒed5d9dƒed6d:dƒed7d;dƒed8d<dƒed9d=dƒed:d>dƒed;d?dƒed<d@dƒed=dAdƒed>dBdƒed?dCdƒed@dDdƒedAdEdƒedBdFdƒedCdDdƒedEdGdƒedFdHdƒedGdIdƒedHdJdƒedIdKdƒedJdLdƒedKdMdƒedLdNdƒedMdOdƒg.ZedNdPdƒedOdQdƒedPdRdƒedQdSdƒedRdTdƒedSdUdƒedTdVdƒedUdWdƒedVdXdƒedWdYdƒedXdZdƒedYd[dƒedZd\dƒed[d]dƒed\d^dƒed]d_dƒed^d`dƒed_dadƒed`dadƒedbdbdƒedcdcdƒedddddƒedededƒedfdfdƒedgdgdƒedhdhdƒedididƒedjdjdƒed0dkdƒedkdldƒedldmdƒedmdndƒedodndƒedpdodƒedqdpdƒedrdqdƒedsdrdƒedtdsdƒedudtdƒedvdudƒedwdvdƒedxdwdƒedydxdƒedzdydƒedBdzdƒed{d{dƒed|d|dƒed}d}dƒed~d~dƒ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ƒedˆdˆdƒed‰d‰dƒedŠdŠdƒed‹d‹dƒg>Zed	dŒ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ƒed”d•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ƒedžd™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ƒed¨d 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ƒed²d¤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ƒed¼d«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ƒedƐd¯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ƒedѐd±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ƒedÜdØ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ƒedæd·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ƒedðd»dƒedñd¼dƒedòd½dƒedód¾dƒg^Z	edôd¿dƒedõdÀdƒedöddƒed÷dÁdƒedødÂdƒgZ
dadÕdùdddddddddddddddúdddgZdûZdZ
dZdZdüdý„Zdþdÿ„Zdd„Zdd„Zdd„Zdd„Zdd	„Zd
d„Zdd
„Zdd„Zdd„Zdd„ZdS(ÃÚRomanianStemmerz
    This class implements the stemming algorithm defined by a snowball script.
    Generated by Snowball 2.2.0 - https://snowballstem.org/
    ÚréÚIéÚUéZeauaÅ£iaéZauaZiuaéuaÅ£ieZeleZileéZiileéZieiZateiÚiiZuluiÚulZelorZilorZiiloréZicalaZicivaZativaZitivaZicaleuaÅ£iuneuiÅ£iuneZatoareZitoareuătoareZicitateZ	abilitateZ	ibilitateZivitateZiciveZativeZitiveZicaliZatoriZicatoriéZitoriuătoriZicitatiZ	abilitatiZivitatiZiciviZativiZitiviuicităiu	abilităiuivităiu	icităţiuabilităţiu	ivităţiZicalZatorZicatoré#ZitoruătorZicivZativZitivuicalăuicivăuativăuitivăZicaZabilaZibilaZoasaZataZitaZantaZistaZutaZivaÚicZiceZabileZibileZismeZiuneZoaseZateZitateéZiteZanteZisteZuteZiveZiciZabiliZibiliZiuniZosiZatiZitatiéZitiZantiZistiZutiuiştiZiviuităiuoşiuităţiÚabilÚibilZismÚosÚatÚitZantÚistÚutÚivuicăuabilăuibilăuoasăuatăuităuantăuistăuutăuivăÚiaÚescuăscÚinduândZareZereZireuâreÚseZaseé
ZseseZiseZuseuâseueşteuăşteZezeZaiZeaiéZiaiZseiueştiuăştiÚuiZeziuâiuaşiuseşiuaseşiéuseseşiuiseşiuuseşiuâseşiuişiuuşiuâşiuaÅ£iueaÅ£ié&uiaÅ£iueÅ£iuiÅ£iuâţiuarăţiuserăţiu	aserăţié-u
seserăţiu	iserăţiu	userăţiu
âserăţiuirăţiuurăţiuârăţiÚamZeamé6ZiamÚemZasemé9ZsesemZisemZusemuâsemZimuâmuămuarăméAuserămuaserăméCuseserămuiserămuuserămuâserămuirămuurămuârămÚauZeauéLZiauZinduuânduZezueascăuarăuserăuaserăéTuseserăuiserăuuserăuâserăuirăuurăuârăueazăÚaÚeZieÚiuăéé Fc$Cs”xŒ|j}y`y@x8|j}yî|jtjddƒs4tƒ‚|j|_y¨|j}yF|jdƒsVtƒ‚|j|_|jtjddƒsttƒ‚|j	dƒs‚dSt
ƒ‚Wntk
ržYnX||_|jdƒs¶tƒ‚|j|_|jtjddƒsÔtƒ‚|j	dƒsâdSWnt
k
rúYnX||_tƒ‚Wntk
r YnX||_|j|jkr<t
ƒ‚|jd7_qWWntk
rfYnXwWnt
k
r‚YnX||_PqWd	S)
NéaiÚur	Fr4rrT)ÚcursorÚin_groupingrÚg_vÚlab2ÚbraZeq_sÚlab4ÚketÚ
slice_fromÚlab3Úlab1ÚlimitÚlab0)ÚselfÚv_1Úv_2Úv_3©rIúK/tmp/pip-build-gk9425m9/snowballstemmer/snowballstemmer/romanian_stemmer.pyZ__r_preludesb





zRomanianStemmer.__r_preludec9Cs|j|_|j|_|j|_|j}yyÞ|j}yÜ|jtjddƒsDtƒ‚y¤|j}yD|j	tjddƒsdt
ƒ‚|jtjddƒszt
ƒ‚|jd7_tƒ‚Wnt
k
r¤YnX||_|jtjddƒsÂtƒ‚|j
tjddƒsØtƒ‚|jd7_Wntk
rþYnXtƒ‚Wntk
rYnX||_|j	tjddƒs>tƒ‚yª|j}yH|j	tjddƒs`tƒ‚|jtjddƒsxtƒ‚|jd7_tƒ‚Wntk
r¤YnX||_|jtjddƒsÄtƒ‚|j|jkrØtƒ‚|jd7_Wntk
rþYnXWntk
rYnX|j|_Wntk
r:YnX||_|j}y¬|jtjddƒsbtƒ‚|jd7_|j
tjddƒsˆtƒ‚|jd7_|j|_|jtjddƒs¶tƒ‚|jd7_|j
tjddƒsÜtƒ‚|jd7_|j|_Wntk
r
YnX||_dS)Nr7irT)rCÚI_pVÚI_p1ÚI_p2r9r:rr;r<Zout_groupingr>Zgo_out_groupingrAZgo_in_groupingrBrDÚlab6Úlab5Úlab7)rErFrGrHÚv_4Úv_5rIrIrJZ__r_mark_regions6s 



z RomanianStemmer.__r_mark_regionscCs®x¨|j}y€|j|_|jtjƒ}|dkr,tƒ‚|j|_|dkrL|jdƒs„dSn8|dkrd|jdƒs„dSn |j|jkrvtƒ‚|jd7_wWntk
rœYnX||_PqWdS)Nrrr4Fr
r8T)	r9r=Z
find_amongrÚa_0rDr?r@rC)rErFÚ	among_varrIrIrJZ__r_postlude€s.

zRomanianStemmer.__r_postludecCs|j|jksdSdS)NFT)rKr9)rErIrIrJZ__r_RV™szRomanianStemmer.__r_RVcCs|j|jksdSdS)NFT)rLr9)rErIrIrJZ__r_R1žszRomanianStemmer.__r_R1cCs|j|jksdSdS)NFT)rMr9)rErIrIrJZ__r_R2£szRomanianStemmer.__r_R2cCs|j|_|jtjƒ}|dkr dS|j|_|jƒs4dS|dkrJ|jƒsHdSnÎ|dkrb|jdƒs`dSn¶|dkrz|jdƒsxdSnž|dkr’|jd	ƒsdSn†|d
krì|j	|j}y|j
dƒs¸tƒ‚dStk
rÎYnX|j	||_|jd	ƒsêdSn,|dkr|jd
ƒsdSn|jdƒsdSdS)NrFrr
r2rr3rr4r
ÚabrruaÅ£iT)r9r?Úfind_among_brÚa_1r=Ú_RomanianStemmer__r_R1Ú	slice_delr@rCÚeq_s_brD)rErTrFrIrIrJZ
__r_step_0¨sH





zRomanianStemmer.__r_step_0cCsÜ|j|j}|j|_|jtjƒ}|dkr,dS|j|_|jƒs@dS|dkrX|jdƒsÆdSnn|dkrp|jdƒsÆdSnV|dkrˆ|jdƒsÆdSn>|d	kr |jd
ƒsÆdSn&|dkr¸|jdƒsÆdSn|jd
ƒsÆdSd|_	|j||_dS)NrFrrr
rrrrrr
rrT)
rCr9r?rVrÚa_2r=rXr@ÚB_standard_suffix_removed)rErFrTrIrIrJZ__r_combo_suffixÏs8





z RomanianStemmer.__r_combo_suffixcCsàd|_xH|j|j}y|jƒs$tƒ‚wWntk
r<YnX|j||_PqW|j|_|jtjƒ}|dkrpdS|j|_	|j
ƒs„dS|dkrš|jƒsÖdSn<|dkrÈ|jdƒs°dS|j|_	|j
dƒsÖdSn|j
dƒsÖdSd|_dS)	NFrrr
uÅ£ÚtrT)r\rCr9Ú _RomanianStemmer__r_combo_suffixrDr?rVrÚa_3r=Ú_RomanianStemmer__r_R2rYrZr@)rErFrTrIrIrJZ__r_standard_suffixîs>


z#RomanianStemmer.__r_standard_suffixcCsô|j|jkrdS|j}|j|_|j|_|jtjƒ}|dkrD||_dS|j|_|dkrÞyf|j|j}y |j	tj
ddƒsztƒ‚tƒ‚Wntk
r–YnX|j||_|j
dƒs¸||_dSWntk
rÎYnX|jƒsêdSn|jƒsêdS||_dS)NFrrr7ir8T)r9rKÚlimit_backwardr?rVrÚa_4r=rCZout_grouping_br;rBrDrZrY)rErGrTrHrIrIrJZ__r_verb_suffixs>

zRomanianStemmer.__r_verb_suffixcCs@|j|_|jtjƒdkrdS|j|_|jƒs0dS|jƒs<dSdS)NrFT)r9r?rVrÚa_5r=Ú_RomanianStemmer__r_RVrY)rErIrIrJZ__r_vowel_suffix2sz RomanianStemmer.__r_vowel_suffixcCsL|j}|jƒ||_|jƒ|j|_|j|_|j|j}|jƒ|j||_|j|j}|jƒ|j||_|j|j}ypyV|j|j}y|js–tƒ‚t	ƒ‚Wntk
r²YnX|j||_|j
ƒsÎtƒ‚Wnt	k
räYnXWntk
rþYnX|j||_|j|j}|jƒ|j||_|j|_|j}|j
ƒ||_dS)NT)r9Ú_RomanianStemmer__r_preludeÚ _RomanianStemmer__r_mark_regionsrarCÚ_RomanianStemmer__r_step_0Ú#_RomanianStemmer__r_standard_suffixr\r<rBÚ_RomanianStemmer__r_verb_suffixrDÚ _RomanianStemmer__r_vowel_suffixÚ_RomanianStemmer__r_postlude)rErFrHrQrRZv_6Zv_7Zv_8rIrIrJÚ_stem>sL


zRomanianStemmer._stemNéÿÿÿÿrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrmrm)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rrSrWr[r_rbrcr;r\rMrLrKrerfrkrdrXr`rgr^rhrirjrlrIrIrIrJrsè

















































..J'""rc@seZdZdS)rDN)rnrorprIrIrIrJrDdsrDc@seZdZdS)rBN)rnrorprIrIrIrJrBgsrBc@seZdZdS)r<N)rnrorprIrIrIrJr<jsr<c@seZdZdS)rAN)rnrorprIrIrIrJrAmsrAc@seZdZdS)r>N)rnrorprIrIrIrJr>psr>c@seZdZdS)rON)rnrorprIrIrIrJrOssrOc@seZdZdS)rNN)rnrorprIrIrIrJrNvsrNc@seZdZdS)rPN)rnrorprIrIrIrJrPysrPN)ZbasestemmerrZamongrrÚ
BaseExceptionrDrBr<rAr>rOrNrPrIrIrIrJÚ<module>sa