Skip to content

Instantly share code, notes, and snippets.

@lattejed
Last active December 18, 2015 00:09
Show Gist options
  • Save lattejed/5694285 to your computer and use it in GitHub Desktop.
Save lattejed/5694285 to your computer and use it in GitHub Desktop.
# Vivake Gupta ([email protected])
# http://tartarus.org/martin/PorterStemmer/python.txt
def m(self):
n = 0
i = self.k0
while 1:
if i > self.j:
return n
if not self.cons(i):
break
i = i + 1
i = i + 1
while 1:
while 1:
if i > self.j:
return n
if self.cons(i):
break
i = i + 1
i = i + 1
n = n + 1
while 1:
if i > self.j:
return n
if not self.cons(i):
break
i = i + 1
i = i + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment