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

Only get the syllable count #36

Closed
piegamesde opened this issue Sep 12, 2023 · 0 comments
Closed

Only get the syllable count #36

piegamesde opened this issue Sep 12, 2023 · 0 comments

Comments

@piegamesde
Copy link

Many times I am only interested in how many syllables a word has, and not how exactly it is hyphenated. I can get this with hyphenator.opportunities(word).len() + 1, but this is verbose, error-prone (you must know to add 1), and probably inefficient as it allocates a vector. A dedicated helper method to the Hyphentator trait would be appreciated.

@piegamesde piegamesde closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant