3

U'ícÓXã@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)ÚAmongcZ@sâ	eZdZdZeddèdƒedddƒedddƒed	dd
ƒedddƒed
ddƒedddƒgZeddédƒedddƒeddd
ƒgZeddêdëƒedddìƒedddíƒedddîƒedddïƒedddðƒeddñdòƒedddóƒedddôƒedddõƒedddöƒeddd÷ƒ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ƒed)d*dƒed+d*dƒed,d*dƒed-d*dƒed.d*dƒed/d*d	ƒed0d
dƒed1dd
ƒed2ddƒed3ddƒed4ddƒed5d6dƒed7d6dƒed8d6dƒed9d6dƒed:d6dƒg%Zed;ddƒed<ddƒed=dd
ƒed>dd
ƒed?dd
ƒgZed@ddƒedAd d!ƒedBd"d#ƒedCd$dƒgZ	ed@d%dƒedAd&dƒedCd'dƒgZ
edDd(dƒedEd)dƒedFd*dƒedGd+dƒedHd,dIƒedJd-dƒedKd.dƒedLd/dƒedMddƒedNd0dƒedOd1dƒedPd2dƒedQd3dƒedRd4dƒedSd5d
ƒedTd6dƒedUd7d
ƒedVd8dƒedWd9dƒedXd:dƒedYdZdƒed[d;dƒed\d<dIƒed]d=dƒed^d>dƒed_d?dƒed`dadƒedbd@dƒedcdAdƒedddBdƒededCdƒedfdDdƒedgdEd
ƒedhdFdƒedidGd
ƒedjdHdƒedkdIdƒedldJdƒedmdKdƒedndLdƒedodMdIƒedpdNdƒedqdOdƒedrdPdƒedsdQdƒedtdRdƒedudSdIƒedvdTdwƒedxdUdƒedydVdƒedzdWdƒg3Zed{dXdƒed|dYdƒed}dZdƒed~d[dƒedd\dƒed€d]dƒedd^dƒedHd_dƒed‚d`dƒedƒdadƒed„dbdƒed…dcdƒed†dddƒed‡dedƒedˆdfdƒed‰dgdƒedŠdhdƒed‹dŒdƒeddŒdƒedŽdŒdƒeddidƒedd*dƒed‘d*dƒed’djdƒed“dkdƒed”dldƒed•dmdƒed–dndƒed—dodƒed˜dpdƒed™dqdƒedšdrdƒed›dsdƒedœdtdƒeddudƒedždvdƒedŸdwdƒed dxdƒed¡dydƒed¢dzdƒed£d{dƒedo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ƒ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ƒedud™dƒed=dšdƒed?d›dƒedːdœdƒed̐ddƒed͐dždƒedΐdŸdƒgWZdÏd½dŒdddddddddddddÐdÐdwd
dgZ
dÏd½ddddddddddddddÐdÐdwd
gZdÏgZdZdZdZdÑd҄ZdÓdԄZdÕdքZd×d؄ZdÙdڄZdÛd܄ZdÝdބZdßdà„Zdádâ„Zdãdä„Zdådæ„ZdçS( ÚItalianStemmerz
    This class implements the stemming algorithm defined by a snowball script.
    Generated by Snowball 2.2.0 - https://snowballstem.org/
    ÚréZquééõáõééõíéõóéõúéÚIÚUZlaZcelaZglielaZmelaZtelaZvelaÚleZceleZglieleZmeleZteleZveleÚneZceneéZglieneZmeneZseneZteneZveneZciÚliZceliéZglieliZmeliZteliZveliZgliÚmiÚsiZtiÚviÚloZceloéZglieloZmeloZteloZveloZandoZendoÚarZerZirÚicZabilÚosZivZicaZlogiaZosaZistaZivaé	ZanzaZenzaZiceZatriceZicheZlogieZabileZibileZusioneZazioneZuzioneZatoreZoseZanteZmenteZamenteéZisteZiveZanzeZenzeZiciZatriciéZichiZabiliZibiliZismiZusioniZazioniZuzioniZatoriZosiZantiZamentiZimentiZistiZiviZicoZismoZosoZamentoZimentoZivouitàéuistàuistèuistìZiscaZendaZataZitaZutaZavaZevaZerebbeZirebbeZisceZendeZareZereZireZasseZateZavateéZevateZivateZeteZereteZireteZiteZeresteZiresteZuteZeraiZiraiZisciZendiZereiZireiZassiZatiZitiZerestiZirestiZutiZaviZeviZiscoZYamoZiamoZavamoZevamoZivamoZeremoZiremoZassimoZammoZemmoZeremmoé6ZiremmoZimmoZanoZiscanoé:ZavanoZevanoZivanoZerannoZirannoZonoZisconoéAZaronoZeronoZironoZerebberoZirebberoZasseroZesseroZisseroZatoZitoZutoZavoZevoueràuiràueròuiròéé€c$CsÆ|j}x
|j}yà|j|_|jtjƒ}|dkr4tƒ‚|j|_|dkrT|jdƒsìdSn˜|dkrl|jdƒsìdSn€|dkr„|jdƒsìdSnh|d	krœ|jd
ƒsìdSnP|dkr´|jdƒsìdSn8|d
krÌ|jdƒsìdSn |j|jkrÞtƒ‚|jd7_w
Wntk
rYnX||_Pq
W||_x¤|j}yvyTxL|j}yþ|j	tj
ddƒsRtƒ‚|j|_y¶|j}yL|jdƒsvt
ƒ‚|j|_|j	tj
ddƒs–t
ƒ‚|jdƒs¦dStƒ‚Wnt
k
rÄYnX||_|jdƒsÞtƒ‚|j|_|j	tj
ddƒsþtƒ‚|jdƒsdSWntk
r&YnX||_tƒ‚Wntk
rLYnX||_|j|jkrhtƒ‚|jd7_q0WWntk
r”YnXwWntk
r²YnX||_PqWdS)NrrõàFrõèr
õìrõòrõùrZqUéaéùÚurÚirT)ÚcursorÚbraÚ
find_amongrÚa_0Úlab0ÚketÚ
slice_fromÚlimitÚin_groupingÚg_vÚlab3Zeq_sÚlab5Úlab4Úlab2Úlab1)ÚselfÚv_1Úv_2Ú	among_varÚv_3Úv_4Úv_5©rJúJ/tmp/pip-build-gk9425m9/snowballstemmer/snowballstemmer/italian_stemmer.pyZ__r_preludeôsª







zItalianStemmer.__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)Nr0r1rT)r;ÚI_pVÚI_p1ÚI_p2r4r<rr=rAZout_groupingr@Zgo_out_groupingr>Zgo_in_groupingrBr8Úlab6r?Úlab7)rCrDrErGrHrIrJrJrKZ__r_mark_regionsFs 



zItalianStemmer.__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)Nrrr3Frr2T)	r4r5r6rÚa_1r8r9r:r;)rCrDrFrJrJrKZ__r_postludes.

zItalianStemmer.__r_postludecCs|j|jksdSdS)NFT)rLr4)rCrJrJrKZ__r_RV©szItalianStemmer.__r_RVcCs|j|jksdSdS)NFT)rMr4)rCrJrJrKZ__r_R1®szItalianStemmer.__r_R1cCs|j|jksdSdS)NFT)rNr4)rCrJrJrKZ__r_R2³szItalianStemmer.__r_R2cCsp|j|_|jtjƒdkrdS|j|_|jtjƒ}|dkr<dS|jƒsHdS|dkr^|jƒsldSn|j	dƒsldSdS)NrFrÚeT)
r4r9Úfind_among_brÚa_2r5Úa_3Ú_ItalianStemmer__r_RVÚ	slice_delr:)rCrFrJrJrKZ__r_attached_pronoun¸s
z#ItalianStemmer.__r_attached_pronouncCsT|j|_|jtjƒ}|dkr dS|j|_|dkrL|jƒs<dS|jƒsHdSn|dkrè|jƒs`dS|jƒsldS|j|j}yV|j|_|j	dƒsž|j||_t
ƒ‚|j|_|jƒsÀ|j||_t
ƒ‚|jƒsÌdSWnt
k
râYnXnh|dkr|jƒsdS|jdƒsPdSn<|dkr@|jƒs,dS|jd	ƒsPdSn|d
krl|jƒsXdS|jdƒsPdSnä|dkr–|jƒs„dS|jƒsPdSnº|d
kr¬|j
ƒs®dS|jƒs¼dS|j|j}yÈ|j|_|jtjƒ}|dkrú|j||_tƒ‚|j|_|jƒs|j||_tƒ‚|jƒs,dS|dkrŽ|j|_|j	dƒs\|j||_tƒ‚|j|_|jƒs€|j||_tƒ‚|jƒsŽdSWntk
r¦YnXn¤|dkr\|jƒsÄdS|jƒsÒdS|j|j}yb|j|_|jtjƒdkr|j||_tƒ‚|j|_|jƒs0|j||_tƒ‚|jƒs>dSWntk
rVYnXnô|jƒsjdS|jƒsxdS|j|j}y´|j|_|j	dƒs¬|j||_tƒ‚|j|_|jƒsÐ|j||_tƒ‚|jƒsÞdS|j|_|j	dƒs|j||_tƒ‚|j|_|jƒs(|j||_tƒ‚|jƒs6dSWntk
rNYnXdS)NrFrrrr
Úlogrr2rZenterrZatr$T)r4r9rSrÚa_6r5Ú_ItalianStemmer__r_R2rWr;Úeq_s_br8r:rVÚ_ItalianStemmer__r_R1Úa_4rBÚa_5rAr>)rCrFrDrErGrHrJrJrKZ__r_standard_suffixËs
































z"ItalianStemmer.__r_standard_suffixcCs^|j|jkrdS|j}|j|_|j|_|jtjƒdkr@||_dS|j|_|jƒsTdS||_dS)NFrT)	r4rLÚlimit_backwardr9rSrÚa_7r5rW)rCrErJrJrKZ__r_verb_suffixVszItalianStemmer.__r_verb_suffixcCsx|j|j}y®|j|_|jtjddƒs8|j||_tƒ‚|j|_|jƒsZ|j||_tƒ‚|j	ƒsfdS|j|_|j
dƒsŠ|j||_tƒ‚|j|_|jƒs¬|j||_tƒ‚|j	ƒs¸dSWntk
rÎYnX|j|j}y€|j|_|j
dƒs|j||_tƒ‚|j|_|jtjddƒs0|j||_tƒ‚|jƒsL|j||_tƒ‚|j	ƒsZdSWntk
rrYnXdS)	Nr0éòFr3ÚhécégT)
r;r4r9Z
in_grouping_brÚg_AEIOr8r5rVrWr[rBÚg_CG)rCrDrErJrJrKZ__r_vowel_suffixfsT


zItalianStemmer.__r_vowel_suffixcCs,|j}|jƒ||_|jƒ|j|_|j|_|j|j}|jƒ|j||_|j|j}yryX|j|j}y|jƒsxtƒ‚tƒ‚Wntk
r”YnX|j||_|j	ƒs°t
ƒ‚Wntk
rÆYnXWnt
k
rÞYnX|j||_|j|j}|jƒ|j||_|j|_|j}|jƒ||_dS)NT)
r4Ú_ItalianStemmer__r_preludeÚ_ItalianStemmer__r_mark_regionsr_r;Ú#_ItalianStemmer__r_attached_pronounÚ"_ItalianStemmer__r_standard_suffixrArBÚ_ItalianStemmer__r_verb_suffixr8Ú_ItalianStemmer__r_vowel_suffixÚ_ItalianStemmer__r_postlude)rCrDrGrHrIZv_6Zv_7rJrJrKÚ_stem“sF


zItalianStemmer._stemNéÿÿÿÿrororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororororo)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rr7rQrTrUr]r^rYr`r=rerfrNrMrLrgrhrmrVr\rZrirjrkrlrnrJrJrJrKrs°












































,*RJ-rc@seZdZdS)r8N)rprqrrrJrJrJrKr8¶sr8c@seZdZdS)rBN)rprqrrrJrJrJrKrB¹srBc@seZdZdS)rAN)rprqrrrJrJrJrKrA¼srAc@seZdZdS)r>N)rprqrrrJrJrJrKr>¿sr>c@seZdZdS)r@N)rprqrrrJrJrJrKr@Âsr@c@seZdZdS)r?N)rprqrrrJrJrJrKr?Åsr?c@seZdZdS)rON)rprqrrrJrJrJrKrOÈsrOc@seZdZdS)rPN)rprqrrrJrJrJrKrPËsrPN)ZbasestemmerrZamongrrÚ
BaseExceptionr8rBrAr>r@r?rOrPrJrJrJrKÚ<module>s4