private function step0()
    {
        $this->word = preg_replace('#([q])u#u', '$1U', $this->word);
        $this->word = preg_replace('#(['.$this->plainVowels.'])y#u', '$1Y', $this->word);
        $this->word = preg_replace('#y(['.$this->plainVowels.'])#u', 'Y$1', $this->word);
        $this->word = preg_replace('#(['.$this->plainVowels.'])u(['.$this->plainVowels.'])#u', '$1U$2', $this->word);
        $this->word = preg_replace('#(['.$this->plainVowels.'])i(['.$this->plainVowels.'])#u', '$1I$2', $this->word);
    }
private function step0()
    {
        $this->word = preg_replace('#([q])u#u', '$1U', $this->word);
        $this->word = preg_replace('#(['.$this->plainVowels.'])y#u', '$1Y', $this->word);
        $this->word = preg_replace('#y(['.$this->plainVowels.'])#u', 'Y$1', $this->word);
        $this->word = preg_replace('#(['.$this->plainVowels.'])u(['.$this->plainVowels.'])#u', '$1U$2', $this->word);
        $this->word = preg_replace('#(['.$this->plainVowels.'])i(['.$this->plainVowels.'])#u', '$1I$2', $this->word);
    }
private function step0 ( ) { $ this -> word = preg_replace ( '#([q])u#u' , '$1U' , $ this -> word ) ; $ this -> word = preg_replace ( '#([' . $ this -> plainVowels . '])y#u' , '$1Y' , $ this -> word ) ; $ this -> word = preg_replace ( '#y([' . $ this -> plainVowels . '])#u' , 'Y$1' , $ this -> word ) ; $ this -> word = preg_replace ( '#([' . $ this -> plainVowels . '])u([' . $ this -> plainVowels . '])#u' , '$1U$2' , $ this -> word ) ; $ this -> word = preg_replace ( '#([' . $ this -> plainVowels . '])i([' . $ this -> plainVowels . '])#u' , '$1I$2' , $ this -> word ) ; }
Assume the word is in lower case.
Then put into upper case u or i preceded and followed by a vowel, and y preceded or followed by a vowel.
u after q is also put into upper case. For example,
jouer 		-> 		joUer
ennuie 		-> 		ennuIe
yeux 		-> 		Yeux
quand 		-> 		qUand
Assume the word is in lower case . Then put into upper case u or i preceded and followed by a vowel and y preceded or followed by a vowel . u after q is also put into upper case . For example jouer - > joUer ennuie - > ennuIe yeux - > Yeux quand - > qUand