src/Utilities/Vowels/EnglishVowels.php
/**
     * Returns true if the letter at the given index is a vowel, works with y
     * @param string $word the word to use
     * @param int $index the index in the string to inspect
     * @return boolean True letter at the provided index is a vowel 
     */
Returns true if the letter at the given index is a vowel, works with y
@param string $word the word to use
@param int $index the index in the string to inspect
@return boolean True letter at the provided index is a vowel
Returns true if the letter at the given index is a vowel works with y @param string $word the word to use @param int $index the index in the string to inspect @return boolean True letter at the provided index is a vowel
public function isVowel($word, $index)
    {
        if(strpbrk($word[$index], 'aeiou') !== false) {
            return true;
        } elseif($word[$index] === 'y' && strpbrk($word[--$index], 'aeiou') === false) {
            return true;
        } 
        return false;
    }
public function isVowel ( $ word , $ index ) { if ( strpbrk ( $ word [ $ index ] , 'aeiou' ) !== false ) { return true ; } elseif ( $ word [ $ index ] === 'y' && strpbrk ( $ word [ -- $ index ] , 'aeiou' ) === false ) { return true ; } return false ; }
Returns true if the letter at the given index is a vowel, works with y
 @param string $word the word to use
 @param int $index the index in the string to inspect
 @return boolean True letter at the provided index is a vowel
Returns true if the letter at the given index is a vowel works with y @param string $word the word to use @param int $index the index in the string to inspect @return boolean True letter at the provided index is a vowel