private function unDoubling()
    {
        if ($this->search(array('kk', 'dd', 'tt')) !== false) {
            $this->word = Utf8::substr($this->word, 0, -1);
        }
    }
private function unDoubling()
    {
        if ($this->search(array('kk', 'dd', 'tt')) !== false) {
            $this->word = Utf8::substr($this->word, 0, -1);
        }
    }
private function unDoubling ( ) { if ( $ this -> search ( array ( 'kk' , 'dd' , 'tt' ) ) !== false ) { $ this -> word = Utf8 :: substr ( $ this -> word , 0 , - 1 ) ; } }
Define undoubling the ending as removing the last letter if the word ends kk, dd or tt.
Define undoubling the ending as removing the last letter if the word ends kk dd or tt .