original_string: private function step1()
      {
          //  erte   ert
          //      replace with er
          if ( ($position = $this->searchIfInR1(array('erte', 'ert'))) !== false) {
              $this->word = preg_replace('#(erte|ert)$#u', 'er', $this->word);
              return true;
          }
  
           // a   e   ede   ande   ende   ane   ene   hetene   en   heten   ar   er   heter   as   es   edes   endes   enes   hetenes   ens   hetens   ers   ets   et   het   ast
          //      delete
          if ( ($position = $this->searchIfInR1(array(
              'hetenes', 'hetene', 'hetens', 'heten', 'endes', 'heter', 'ande', 'ende', 'enes', 'edes', 'ede', 'ane',
              'ene', 'het', 'ers', 'ets', 'ast', 'ens', 'en', 'ar', 'er', 'as', 'es', 'et', 'a', 'e'
          ))) !== false) {
              $this->word = Utf8::substr($this->word, 0, $position);
              return true;
          }
  
          //  s
          //      delete if preceded by a valid s-ending
          if ( ($position = $this->searchIfInR1(array('s'))) !== false) {
              $word = Utf8::substr($this->word, 0, $position);
              if ($this->hasValidSEnding($word)) {
                  $this->word = $word;
              }
              return true;
          }
      }
code: private function step1()
      {
          //  erte   ert
          //      replace with er
          if ( ($position = $this->searchIfInR1(array('erte', 'ert'))) !== false) {
              $this->word = preg_replace('#(erte|ert)$#u', 'er', $this->word);
              return true;
          }
  
           // a   e   ede   ande   ende   ane   ene   hetene   en   heten   ar   er   heter   as   es   edes   endes   enes   hetenes   ens   hetens   ers   ets   et   het   ast
          //      delete
          if ( ($position = $this->searchIfInR1(array(
              'hetenes', 'hetene', 'hetens', 'heten', 'endes', 'heter', 'ande', 'ende', 'enes', 'edes', 'ede', 'ane',
              'ene', 'het', 'ers', 'ets', 'ast', 'ens', 'en', 'ar', 'er', 'as', 'es', 'et', 'a', 'e'
          ))) !== false) {
              $this->word = Utf8::substr($this->word, 0, $position);
              return true;
          }
  
          //  s
          //      delete if preceded by a valid s-ending
          if ( ($position = $this->searchIfInR1(array('s'))) !== false) {
              $word = Utf8::substr($this->word, 0, $position);
              if ($this->hasValidSEnding($word)) {
                  $this->word = $word;
              }
              return true;
          }
      }
code_tokens: private function step1 ( ) { //  erte   ert //      replace with er if ( ( $ position = $ this -> searchIfInR1 ( array ( 'erte' , 'ert' ) ) ) !== false ) { $ this -> word = preg_replace ( '#(erte|ert)$#u' , 'er' , $ this -> word ) ; return true ; } // a   e   ede   ande   ende   ane   ene   hetene   en   heten   ar   er   heter   as   es   edes   endes   enes   hetenes   ens   hetens   ers   ets   et   het   ast //      delete if ( ( $ position = $ this -> searchIfInR1 ( array ( 'hetenes' , 'hetene' , 'hetens' , 'heten' , 'endes' , 'heter' , 'ande' , 'ende' , 'enes' , 'edes' , 'ede' , 'ane' , 'ene' , 'het' , 'ers' , 'ets' , 'ast' , 'ens' , 'en' , 'ar' , 'er' , 'as' , 'es' , 'et' , 'a' , 'e' ) ) ) !== false ) { $ this -> word = Utf8 :: substr ( $ this -> word , 0 , $ position ) ; return true ; } //  s //      delete if preceded by a valid s-ending if ( ( $ position = $ this -> searchIfInR1 ( array ( 's' ) ) ) !== false ) { $ word = Utf8 :: substr ( $ this -> word , 0 , $ position ) ; if ( $ this -> hasValidSEnding ( $ word ) ) { $ this -> word = $ word ; } return true ; } }
docstring: Step 1
  Search for the longest among the following suffixes in R1, and perform the action indicated.
docstring_tokens: Step 1 Search for the longest among the following suffixes in R1 and perform the action indicated .