Stemming.php
/*------------------------------------------------------------------------
        m() measures the number of consonant sequences between k0 and j. if c is
               a consonant sequence and v a vowel sequence, and <..> indicates arbitrary
               presence,

          <c><v>       gives 0
          <c>vc<v>     gives 1
          <c>vcvc<v>   gives 2
          <c>vcvcvc<v> gives 3
          ....
            ---------------------------------------------------------------------------*/
m() measures the number of consonant sequences between k0 and j. if c is
a consonant sequence and v a vowel sequence, and <..> indicates arbitrary
presence.


m () measures the number of consonant sequences between k0 and j . if c is a consonant sequence and v a vowel sequence and < .. > indicates arbitrary presence .
function m(){
        $n = 0;
        $i = $this->k0;
        while(true){
            if ($i > $this->j) return $n;
            if (! $this->cons($i)) break;
            $i++;
        }
        $i++;
        while(true){
            while(true){
                if ($i > $this->j) return $n;
                if ($this->cons($i)) break;
                $i++;
            }
            $i++;
            $n++;
            while(true){
                if ($i > $this->j) return $n;
                if (! $this->cons($i)) break;
                $i++;
            }
            $i++;
        }
    }
function m ( ) { $ n = 0 ; $ i = $ this -> k0 ; while ( true ) { if ( $ i > $ this -> j ) return $ n ; if ( ! $ this -> cons ( $ i ) ) break ; $ i ++ ; } $ i ++ ; while ( true ) { while ( true ) { if ( $ i > $ this -> j ) return $ n ; if ( $ this -> cons ( $ i ) ) break ; $ i ++ ; } $ i ++ ; $ n ++ ; while ( true ) { if ( $ i > $ this -> j ) return $ n ; if ( ! $ this -> cons ( $ i ) ) break ; $ i ++ ; } $ i ++ ; } }
m() measures the number of consonant sequences between k0 and j. if c is
a consonant sequence and v a vowel sequence, and <..> indicates arbitrary
presence,
m () measures the number of consonant sequences between k0 and j . if c is a consonant sequence and v a vowel sequence and < .. > indicates arbitrary presence