Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes Y #14

Open
awarnes opened this issue Feb 25, 2023 · 0 comments
Open

Sometimes Y #14

awarnes opened this issue Feb 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@awarnes
Copy link
Owner

awarnes commented Feb 25, 2023

The current countVowels and countConsonants functions are not handling any special sometimes y case. Merriam-Webster dictionary says y is a vowel when:

The word has no other vowel: gym, my.
The letter is at the end of a word or syllable: candy, deny, bicycle, acrylic.
The letter is in the middle of a syllable: system, borborygmus.

Implementing the algorithm to handle these cases could be interesting, and would likely lead to some slightly different results.

@awarnes awarnes added the enhancement New feature or request label Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant