Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def r_append_U_to_stems_ending_with_d_or_g(self):
# (, line 430
# test, line 431
v_1 = self.limit - self.cursor
# (, line 431
# or, line 431
try:
v_2 = self.limit - self.cursor
try:
# literal, line 431
if not self.eq_s_b(1, u"d"):
raise lab1()
raise lab0()
except lab1: pass
self.cursor = self.limit - v_2
# literal, line 431
if not self.eq_s_b(1, u"g"):
return False
except lab0: pass
self.cursor = self.limit - v_1
# or, line 433
try:
v_3 = self.limit - self.cursor
try:
# (, line 432
# test, line 432
v_4 = self.limit - self.cursor
# (, line 432
# (, line 144
# test, line 144
v_2 = self.limit - self.cursor
# literal, line 144
if not self.eq_s_b(1, u"s"):
raise lab1()
self.cursor = self.limit - v_2
# next, line 144
if self.cursor <= self.limit_backward:
raise lab1()
self.cursor -= 1
# (, line 144
# test, line 144
v_3 = self.limit - self.cursor
if not self.in_grouping_b(TurkishStemmer.g_vowel, 97, 305):
raise lab1()
self.cursor = self.limit - v_3
raise lab0()
except lab1: pass
self.cursor = self.limit - v_1
# (, line 146
# (, line 146
# not, line 146
v_4 = self.limit - self.cursor
try:
# (, line 146
# test, line 146
v_5 = self.limit - self.cursor
# literal, line 146
if not self.eq_s_b(1, u"s"):
raise lab2()
self.cursor = self.limit - v_5
# (, line 132
# or, line 134
try:
v_1 = self.limit - self.cursor
try:
# (, line 133
# (, line 133
# test, line 133
v_2 = self.limit - self.cursor
# literal, line 133
if not self.eq_s_b(1, u"n"):
raise lab1()
self.cursor = self.limit - v_2
# next, line 133
if self.cursor <= self.limit_backward:
raise lab1()
self.cursor -= 1
# (, line 133
# test, line 133
v_3 = self.limit - self.cursor
if not self.in_grouping_b(TurkishStemmer.g_vowel, 97, 305):
raise lab1()
self.cursor = self.limit - v_3
raise lab0()
except lab1: pass
self.cursor = self.limit - v_1
# (, line 135
# (, line 135
# not, line 135
v_4 = self.limit - self.cursor
try:
# (, line 135
def r_stem_noun_suffixes(self):
# (, line 361
# or, line 363
try:
v_1 = self.limit - self.cursor
try:
# (, line 362
# [, line 362
self.ket = self.cursor
# call mark_lAr, line 362
if not self.r_mark_lAr():
raise lab1()
# ], line 362
self.bra = self.cursor
# delete, line 362
if not self.slice_del():
return False
# try, line 362
v_2 = self.limit - self.cursor
try:
# (, line 362
# call stem_suffix_chain_before_ki, line 362
if not self.r_stem_suffix_chain_before_ki():
self.cursor = self.limit - v_2
raise lab2()
except lab2: pass
raise lab0()
try:
# (, line 446
# gopast, line 446
try:
while True:
try:
if not self.in_grouping(TurkishStemmer.g_vowel, 97, 305):
raise lab4()
raise lab3()
except lab4: pass
if self.cursor >= self.limit:
raise lab2()
self.cursor += 1
except lab3: pass
v_2 -= 1
raise lab1()
except lab2: pass
self.cursor = v_3
raise lab0()
except lab1: pass
except lab0: pass
if v_2 > 0:
return False
self.cursor = v_1
return True
while True:
try:
# literal, line 450
if not self.eq_s(2, u"ad"):
raise lab3()
raise lab2()
except lab3: pass
if self.cursor >= self.limit:
raise lab1()
self.cursor += 1
except lab2: pass
# (, line 450
self.I_strlen = 2;
# (, line 450
if not self.I_strlen == self.limit:
raise lab1()
self.cursor = v_2
raise lab0()
except lab1: pass
self.cursor = v_1
# test, line 452
v_4 = self.cursor
# (, line 452
# gopast, line 452
try:
while True:
try:
# literal, line 452
if not self.eq_s(5, u"soyad"):
raise lab5()
raise lab4()
except lab5: pass
self.bra = self.cursor
# delete, line 362
if not self.slice_del():
return False
# try, line 362
v_2 = self.limit - self.cursor
try:
# (, line 362
# call stem_suffix_chain_before_ki, line 362
if not self.r_stem_suffix_chain_before_ki():
self.cursor = self.limit - v_2
raise lab2()
except lab2: pass
raise lab0()
except lab1: pass
self.cursor = self.limit - v_1
try:
# (, line 364
# [, line 364
self.ket = self.cursor
# call mark_ncA, line 364
if not self.r_mark_ncA():
raise lab3()
# ], line 364
self.bra = self.cursor
# delete, line 364
if not self.slice_del():
return False
# try, line 365
v_3 = self.limit - self.cursor
# (, line 154
# test, line 154
v_2 = self.limit - self.cursor
# literal, line 154
if not self.eq_s_b(1, u"y"):
raise lab1()
self.cursor = self.limit - v_2
# next, line 154
if self.cursor <= self.limit_backward:
raise lab1()
self.cursor -= 1
# (, line 154
# test, line 154
v_3 = self.limit - self.cursor
if not self.in_grouping_b(TurkishStemmer.g_vowel, 97, 305):
raise lab1()
self.cursor = self.limit - v_3
raise lab0()
except lab1: pass
self.cursor = self.limit - v_1
# (, line 156
# (, line 156
# not, line 156
v_4 = self.limit - self.cursor
try:
# (, line 156
# test, line 156
v_5 = self.limit - self.cursor
# literal, line 156
if not self.eq_s_b(1, u"y"):
raise lab2()
self.cursor = self.limit - v_5
v_1 = self.limit - self.cursor
try:
# call stem_nominal_verb_suffixes, line 468
if not self.r_stem_nominal_verb_suffixes():
raise lab0()
except lab0: pass
self.cursor = self.limit - v_1
# Boolean test continue_stemming_noun_suffixes, line 469
if not self.B_continue_stemming_noun_suffixes:
return False
# do, line 470
v_2 = self.limit - self.cursor
try:
# call stem_noun_suffixes, line 470
if not self.r_stem_noun_suffixes():
raise lab1()
except lab1: pass
self.cursor = self.limit - v_2
self.cursor = self.limit_backward
# call postlude, line 473
if not self.r_postlude():
return False
return True
# (, line 160
# (, line 160
# test, line 160
v_2 = self.limit - self.cursor
if not self.in_grouping_b(TurkishStemmer.g_U, 105, 305):
raise lab1()
self.cursor = self.limit - v_2
# next, line 160
if self.cursor <= self.limit_backward:
raise lab1()
self.cursor -= 1
# (, line 160
# test, line 160
v_3 = self.limit - self.cursor
if not self.out_grouping_b(TurkishStemmer.g_vowel, 97, 305):
raise lab1()
self.cursor = self.limit - v_3
raise lab0()
except lab1: pass
self.cursor = self.limit - v_1
# (, line 162
# (, line 162
# not, line 162
v_4 = self.limit - self.cursor
try:
# (, line 162
# test, line 162
v_5 = self.limit - self.cursor
if not self.in_grouping_b(TurkishStemmer.g_U, 105, 305):
raise lab2()
self.cursor = self.limit - v_5
return False