3

U'íc48ã@s¼ddlmZddlmZGdd„deƒZGdd„deƒZGdd„deƒZGd	d
„d
eƒZGdd„deƒZ	Gd
d„deƒZ
Gdd„deƒZGdd„deƒZGdd„deƒZ
Gdd„deƒZdS)é)ÚBaseStemmer)ÚAmongc@s<eZdZdZeddCdƒedddƒedddƒeddd	ƒed
dd	ƒedddƒed
ddƒedddƒedddƒedddƒedddƒgZeddDdƒeddd	ƒedddƒgZeddEdFƒeddGdHƒeddIdJƒgZeddKd	ƒeddLdƒeddMd	ƒedd	dƒeddNdƒgZeddOdƒeddPd	ƒed dQdƒed!dRdƒed"dSdƒed#dTdƒgZ	ed$dUdVƒed%dWdXƒed&dYdZƒed'd[d\ƒgZ
d(d)d*dddddddddddddd+gZdddd(d)d*dddddddddddddd+gZd(d,d*dddddddddddddd+gZ
dZdZd-Zd.d/„Zd0d1„Zd2d3„Zd4d5„Zd6d7„Zd8d9„Zd:d;„Zd<d=„Zd>d?„Zd@dA„ZdBS)]ÚDutchStemmerz
    This class implements the stemming algorithm defined by a snowball script.
    Generated by Snowball 2.2.0 - https://snowballstem.org/
    ÚréõáéõäõééõëõíéõïõóéõöõúéõüÚIÚYÚddÚkkÚttZeneÚseÚenZhedenÚsÚendÚigZingZlijkZbaarÚbarZaaÚeeZooÚuuééAéé€éCFc+Csê|j}xð|j}yÈ|j|_|jtjƒ}|dkr2tƒ‚|j|_|dkrR|jdƒsÒdSn€|dkrj|jdƒsÒdSnh|dkr‚|jdƒsÒdSnP|d	krš|jd
ƒsÒdSn8|dkr²|jdƒsÒdSn |j|jkrÄtƒ‚|jd7_wWntk
rêYnX||_PqW||_|j}y<|j|_|j	d
ƒs&||_t
ƒ‚|j|_|jdƒs>dSWnt
k
rVYnXxŠ|j}y\y:x2|j}yæ|jtjddƒsŽt
ƒ‚|j|_yž|j}yL|j	dƒs²tƒ‚|j|_|jtjddƒsÒtƒ‚|jdƒsâdStƒ‚Wntk
rYnX||_|j	d
ƒst
ƒ‚|j|_|jdƒs2dSWntk
rJYnX||_tƒ‚Wnt
k
rpYnX||_|j|jkrŒtƒ‚|jd7_qnWWntk
r¸YnXw\Wntk
rÖYnX||_Pq\WdS)NrrÚaFrÚerÚirÚorÚuÚyréaéèrT)ÚcursorÚbraÚ
find_amongrÚa_0Úlab0ÚketÚ
slice_fromÚlimitZeq_sÚlab1Zin_groupingÚg_vÚlab4Úlab6Úlab5Úlab3Úlab2)ÚselfÚv_1Úv_2Ú	among_varÚv_3Úv_4Úv_5Úv_6©rGúH/tmp/pip-build-gk9425m9/snowballstemmer/snowballstemmer/dutch_stemmer.pyZ__r_preludeIs¶






zDutchStemmer.__r_preludecCsÜ|j|_|j|_|jtjddƒs$dS|jd7_|jtjddƒsFdS|jd7_|j|_y|jdksntƒ‚d|_Wntk
rŠYnX|jtjddƒs dS|jd7_|jtjddƒsÂdS|jd7_|j|_dS)Nr.r/FrrT)	r7ÚI_p1ÚI_p2Zgo_out_groupingrr9r0Zgo_in_groupingr4)r?rGrGrHZ__r_mark_regions s.

zDutchStemmer.__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)Nrrr-Frr*T)	r0r1r2rÚa_1r4r5r6r7)r?r@rBrGrGrHZ__r_postlude¸s.

zDutchStemmer.__r_postludecCs|j|jksdSdS)NFT)rIr0)r?rGrGrHZ__r_R1ÑszDutchStemmer.__r_R1cCs|j|jksdSdS)NFT)rJr0)r?rGrGrHZ__r_R2ÖszDutchStemmer.__r_R2cCsj|j|j}|jtjƒdkr dS|j||_|j|_|j|jkrDdS|jd8_|j|_|jƒsfdSdS)NrFrT)	r7r0Úfind_among_brÚa_2r5Úlimit_backwardr1Ú	slice_del)r?r@rGrGrHZ__r_undoubleÛszDutchStemmer.__r_undoublecCs~d|_|j|_|jdƒsdS|j|_|jƒs0dS|j|j}|jtj	ddƒsPdS|j||_|j
ƒsh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jtjddƒsÄtƒ‚|j||_|j|_|j|jkrìtƒ‚|jd8_|j|_|j
ƒsdSWntk
r(YnX|j|
|_dS)NrrZheidFrr.r/Úcrrr)rréIT) r7r0r5rLrÚa_3r4r1rRr6Ú_DutchStemmer__r_en_endingrSÚg_v_jrOÚ_DutchStemmer__r_e_endingrQr8Ú_DutchStemmer__r_R2r>Úa_4r=r<r;r:rTÚlab7rPÚg_v_IÚlab8Úa_5r9rN)r?r@rBrArCrDrErFZv_7Zv_8Zv_9Zv_10rGrGrHZ__r_standard_suffixs(






























z DutchStemmer.__r_standard_suffixcCs`|j}|jƒ||_|j}|jƒ||_|j|_|j|_|jƒ|j|_|j}|jƒ||_dS)NT)r0Ú_DutchStemmer__r_preludeÚ_DutchStemmer__r_mark_regionsrNr7Ú _DutchStemmer__r_standard_suffixÚ_DutchStemmer__r_postlude)r?r@rArDrGrGrHÚ_stem«szDutchStemmer._stemNéÿÿÿÿrfrfrfrfrfrfrfrfrfrfrfrfrfrfrfrfrfrfrfrfrfrfrfrfrf)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rr3rKrMrWr\r`r9r^rYrJrIrPrarbrdrRr[rTrZrXrcrerGrGrGrHrsd

























&,&Wrc@seZdZdS)r4N)rgrhrirGrGrGrHr4¼sr4c@seZdZdS)r8N)rgrhrirGrGrGrHr8¿sr8c@seZdZdS)r>N)rgrhrirGrGrGrHr>Âsr>c@seZdZdS)r=N)rgrhrirGrGrGrHr=Åsr=c@seZdZdS)r:N)rgrhrirGrGrGrHr:Èsr:c@seZdZdS)r<N)rgrhrirGrGrGrHr<Ësr<c@seZdZdS)r;N)rgrhrirGrGrGrHr;Îsr;c@seZdZdS)r]N)rgrhrirGrGrGrHr]Ñsr]c@seZdZdS)r_N)rgrhrirGrGrGrHr_Ôsr_N)ZbasestemmerrZamongrrÚ
BaseExceptionr4r8r>r=r:r<r;r]r_rGrGrGrHÚ<module>s8