You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theHyphentator
trait would be appreciated.The text was updated successfully, but these errors were encountered: