o =bW@sddlmZddlmZGdddeZGdddeZGdddeZGd d d eZGd d d eZ Gd ddeZ GdddeZ dS)) BaseStemmer)Amongc@s,eZdZdZedddedddedddgZedddedd ded ddgZed dd ed ddeddd edddedddedddgZedddedd d edd d edd d edd d edd dedd d edd d edd d edd d edd dedd d edd dg Zed dd ed!d ded"dd ed#dd ed$dded%dd gZ ed&dded'dd ed(dd)ed*dd+ed,dd-ed.d/d/ed0dd1ed2dd3ed4dd5ed6dd7ed8dd9ed:dd1ed;dd-eddded?d5d@edAdd1edBdd@edCdDdEedFddEedGdd@edHdd=edIdd3edJdd7gZ edKdd/edLddEedMddedNdd/edOdd/ed>dded?d9d edPdd9edQdd9g Z edRddedSddedTddedUddedVddedWddedXddedYddedZdded[dded\dded]dd ed^dded_dded`ddedaddedbd+dedcdddgZ ededdedfdd gZ edgddedhddediddedjddedkddedlddedmddednddgZedoddedpddedqddedrddedsddedtdd3edudd@edvddedwddEedxdd/edyddedzdd7ed{dd=ed|dd ed}dded~ddeddd9eddd1gZgdZgdZgdZdZd Zd ZddZddZddZddZddZddZddZddZddZddZddZ ddZ!ddZ"ddZ#ddZ$ddZ%dS)EnglishStemmerz This class implements the stemming algorithm defined by a snowball script. Generated by Snowball 2.2.0 - https://snowballstem.org/ arsencommungener'rz's'z'siedsiesssesssusbbddffggblmmnnpprratttizedeedingedlyeedlyinglyancienciogi libli abliallifulli lessliousli entlialitibilitiiviti tionalationalalismationizationizeratorivenessfulnessousnessicateativealizeicitiicalfulnessicanceenceableibleateiveizeitialismionerousantentmentementelsucceedproceedexceedcanninginningearringherringoutingandesatlasbiascosmosdyingearlygentlyhoweidlylyingnewsonlysinglyskiesskisskytyingugly)rDArdr)rrDrr)7r FcCsd|_|j}z|j|_|dst|j|_|sWdSWn ty(Ynw||_|j}z|j|_|dss  J