3

U'ícëã@s<ddlmZddlmZGdd„deƒZGdd„deƒZdS)é)ÚBaseStemmer)ÚAmongc@s¢eZdZdZeddtdƒeddudƒedddƒeddvd	ƒed
dwdƒeddxdƒed
ddƒeddydƒeddzdƒedd{dƒedd|dƒedd}dƒedd~dƒedddƒedd€dƒedddƒedd‚dƒeddƒdƒedd„dƒedd…d	ƒedd†d ƒed!d‡dƒed"dˆdƒed#d‰d ƒgZed$dŠdƒed%d&dƒed'd‹dƒed(ddƒed)dŒdƒed*ddƒed+ddƒed,ddƒed-dŽdƒed.d	dƒed/ddƒed0ddƒed1ddƒed2d3dƒed4d‘dƒed5d6dƒgZed7d’dƒed8d“dƒed9d”dƒed:ddƒed;ddƒed<d•dƒed=d–dƒed>d—dƒed?ddƒed@d	dƒedAd	d ƒedBddƒedCd˜dƒedDd™dƒedEdšdƒedFd›dƒedGdHdƒedIdœd ƒedJdd ƒedKdždƒedLdMdƒedNdMdƒedOdŸdƒedPd dƒedQd¡dƒgZedRd¢dƒedSd&dƒedTd£dƒedUddƒedVd¤dƒedWddƒedXd¥dƒedYd¦dƒedZd§dƒed[d¨dƒed\d©dƒed]dªdƒgZd^d_d`d&d&d&d&d&d&d&d&d&d&d&d&d&dd^ddgZ	d&Z
d&Zd&Zdadb„Z
dcdd„Zdedf„Zdgdh„Zdidj„Zdkdl„Zdmdn„Zdodp„Zdqdr„ZdsS)«ÚIrishStemmerz
    This class implements the stemming algorithm defined by a snowball script.
    Generated by Snowball 2.2.0 - https://snowballstem.org/
    zb'rZbhéZbhféZbpéÚchézd'zd'fhZdhéÚdté	ÚfhÚgcZghézh-zm'ÚmbZmhé
zn-ZndZngÚphÚshézt-ÚthÚtsuíochtauaíochtaéZireZaireZabhZeabhZibhZaibhZamhZeamhZimhZaimhuíochtuaíochtéuiríuairíéu	óideachaZpatachaZachtaZarcachtaZeachtaugrafaíochtaÚpaiteZachZeachuóideachZgineachZpatachu
grafaíochZpataighuóidighuachtúilu	eachtúiléZgineasZginisZachtZarcachtéZeachtugrafaíochtu
arcachtaíugrafaíochtaíZimidZaimiduímiduaímidZadhZeadhZfaidhZfidhuáilZainZtearÚtarééAécCsê|j|_|j|_|j|_|j}y¬|jtjddƒs6tƒ‚|jd7_|j|_|j	tjddƒsbtƒ‚|jd7_|j|_|jtjddƒsŽtƒ‚|jd7_|j	tjddƒs²tƒ‚|jd7_|j|_Wntk
rÞYnX||_dS)NéaéúrT)
ÚlimitÚI_pVÚI_p1ÚI_p2ÚcursorZgo_out_groupingrÚg_vÚlab0Zgo_in_grouping)ÚselfÚv_1©r,úH/tmp/pip-build-gk9425m9/snowballstemmer/snowballstemmer/irish_stemmer.pyZ__r_mark_regionsls0zIrishStemmer.__r_mark_regionscCs|j|_|jtjƒ}|dkr dS|j|_|dkr>|jƒs<dSnÔ|dkrV|jdƒsTdSn¼|dkrn|jdƒsldSn¤|dkr†|jd	ƒs„dSnŒ|d
krž|jdƒsœdSnt|dkr¶|jd
ƒs´dSn\|dkrÎ|jdƒsÌdSnD|dkræ|jdƒsädSn,|dkr|jdƒsdSn|jdƒsdSdS)NrFrrÚfrÚsrÚbr	Úcr
ÚdrÚgrÚprÚtÚmT)r'ÚbraZ
find_amongrÚa_0ÚketÚ	slice_delÚ
slice_from)r*Ú	among_varr,r,r-Z__r_initial_morph…sF







zIrishStemmer.__r_initial_morphcCs|j|jksdSdS)NFT)r$r')r*r,r,r-Z__r_RV¬szIrishStemmer.__r_RVcCs|j|jksdSdS)NFT)r%r')r*r,r,r-Z__r_R1±szIrishStemmer.__r_R1cCs|j|jksdSdS)NFT)r&r')r*r,r,r-Z__r_R2¶szIrishStemmer.__r_R2cCsf|j|_|jtjƒ}|dkr dS|j|_|dkrJ|jƒs<dS|jƒsbdSn|jƒsVdS|jƒsbdSdS)NrFrT)	r'r9Úfind_among_brÚa_1r7Ú_IrishStemmer__r_R1r:Ú_IrishStemmer__r_R2)r*r<r,r,r-Z__r_noun_sfx»szIrishStemmer.__r_noun_sfxcCs¼|j|_|jtjƒ}|dkr dS|j|_|dkrJ|jƒs<dS|jƒs¸dSnn|dkrb|jdƒs¸dSnV|dkrz|jdƒs¸dSn>|dkr’|jd	ƒs¸dSn&|d
krª|jdƒs¸dSn|jdƒs¸dSd
S)NrFrrZarcrZginrZgrafr	ruóidT)	r'r9r=rÚa_2r7r@r:r;)r*r<r,r,r-Z	__r_derivÏs2




zIrishStemmer.__r_derivcCsf|j|_|jtjƒ}|dkr dS|j|_|dkrJ|jƒs<dS|jƒsbdSn|jƒsVdS|jƒsbdSdS)NrFrT)	r'r9r=rÚa_3r7Ú_IrishStemmer__r_RVr:r?)r*r<r,r,r-Z__r_verb_sfxìszIrishStemmer.__r_verb_sfxcCs˜|j}|jƒ||_|jƒ|j|_|j|_|j|j}|jƒ|j||_|j|j}|jƒ|j||_|j|j}|jƒ|j||_|j|_dS)NT)r'Ú_IrishStemmer__r_initial_morphÚ_IrishStemmer__r_mark_regionsZlimit_backwardr#Ú_IrishStemmer__r_noun_sfxÚ_IrishStemmer__r_derivÚ_IrishStemmer__r_verb_sfx)r*r+Zv_3Zv_4Zv_5r,r,r-Ú_stems"zIrishStemmer._stemNéÿÿÿÿrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJ)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rr8r>rArBr(r&r%r$rErDrCr?r@rFrGrHrIr,r,r,r-rs¶








































































,'rc@seZdZdS)r)N)rKrLrMr,r,r,r-r)sr)N)ZbasestemmerrZamongrrÚ
BaseExceptionr)r,r,r,r-Ú<module>s