src/Utilities/Vowels/VowelsAbstractFactory.php
/**
     * Return the correct language vowel checker
     * @param string $language
     * @return \NlpTools\Utils\VowelAbstractFactory
     * @throws \Exception 
     */
Return the correct language vowel checker
@param string $language
@return \NlpTools\Utils\VowelAbstractFactory
@throws \Exception
Return the correct language vowel checker @param string $language @return \ NlpTools \ Utils \ VowelAbstractFactory @throws \ Exception
static public function factory($language = 'English')
    {
        $className = "\\".__NAMESPACE__."\\{$language}Vowels";
        if(class_exists($className)) { 
            return new $className();
        }         
        throw new \Exception("Class $className does not exist");
    }
static public function factory ( $ language = 'English' ) { $ className = " \\ " . __NAMESPACE__ . " \\ { $ language } Vowels " ; if ( class_exists ( $ className ) ) { return new $ className ( ) ; } throw new \ Exception ( " Class  $ className  does not exist " ) ; }
Return the correct language vowel checker
 @param string $language
 @return \NlpTools\Utils\VowelAbstractFactory
 @throws \Exception
Return the correct language vowel checker @param string $language @return \ NlpTools \ Utils \ VowelAbstractFactory @throws \ Exception