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

Problem with getNumberOfSyllables #1

Open
LokiMidgard opened this issue Aug 7, 2018 · 0 comments
Open

Problem with getNumberOfSyllables #1

LokiMidgard opened this issue Aug 7, 2018 · 0 comments

Comments

@LokiMidgard
Copy link

Following code seems to be wrong:

// Collection<String> parts = getCompoundParts(content);
// if (parts.size() >= 2) {
// return parts.size();
// }
// else {
if (content.contains("ck")) {
return 2;
}

As soon as an german word contains an ck it will always count as two syllables. for example au-gen-blick-lich-er will be counted as 2 while I think it should be 5.

Previously this rule was only used when CompoundParts was smaller then 2 but the if/else was commented out and now everytime ck is part of an word it returns 2.

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