public function allForms($arg, $array = false)
    {
        $wordForms = array();
        $words     = explode(' ', $arg);
        
        foreach ($words as $word) {
            $wordForms = array_merge($wordForms, $this->allWordForms($word));
        }
        
        if ($array) {
            return $wordForms;
        }
        
        $str = implode(' ', $wordForms);
        
        return $str;
    }