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

API stabilization #9

Open
tapeinosyne opened this issue Nov 23, 2016 · 1 comment
Open

API stabilization #9

tapeinosyne opened this issue Nov 23, 2016 · 1 comment
Milestone

Comments

@tapeinosyne
Copy link
Owner

tapeinosyne commented Nov 23, 2016

Tentatively:

hyphenate : &corpus<strategy> -> newtype

opportunities : newtype -> Vec<strategy::opportunity>

syllables : newtype -> iter

punctuate/punctuate_with : iter -> intersperse<iter>

breakpoints_from_separators : str -> Vec<strategy::opportunity>
@tapeinosyne tapeinosyne added this to the 1.0 milestone Nov 23, 2016
@mattiasflodin
Copy link

You probably already realize this, but just in case: fixing issue #1 will require an API change. A hyphenation opportunity needs to come with information on how the word changes (e.g. zucker -> zukker) due to hyphenation. Alternatively, perhaps each opportunity should be described as a pair of string slices containing the part before and after hyphenation point (e.g. ("zuk", "ker")).

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

2 participants