Cuando busco si una palabra esta categorizada como 'warez' si no la encuentro, entonces me fijo si estaba dada en singular y busco el plural y viceversa.
El problema lo tengo al tratar de obtener el singular o plural para hacer la nueva consulta:
Código PHP:
   if ($this->plural){
  $word2 = self::singular()->getWord();
}else{
  $word2 = self::plural()->getWord();
}    
$sql = "SELECT type FROM dicx WHERE word='{$this->word2}' and type='w'";  
$rs  = $this->con->execute ($sql); 
    Código PHP:
   // devuelve el singular (singulariza)
    public function singular (){
      if ($this->word[strlen($this->word)-1]=='s'){
        if ($this->word[strlen($this->word)-2]=='e'){ // -es           
          $wordm = substr ($this->word,0,-2);
        }else{          
          $wordm = substr ($this->word,0,-1);  // -s
        }      
      }
      if (strlen ($wordm)==0){
        $wordm=$this->word;
      }
      $nw = new word($wordm);      
      return $nw;
    } 
     
 
 Se crea una instancia ?
 Se crea una instancia ? 

 
 
