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

EnglishSynthesizer makes word lowercase #4830

Open
danielnaber opened this issue Apr 15, 2021 · 5 comments
Open

EnglishSynthesizer makes word lowercase #4830

danielnaber opened this issue Apr 15, 2021 · 5 comments
Labels

Comments

@danielnaber
Copy link
Member

This code in lookup lowercases the word, even if determiner is empty:

results.add(determiner + StringTools.lowercaseFirstCharIfCapitalized(result));

Fixing this by adding in if makes the test for AGREEMENT_SENT_START[34] ("Cats sleeps more than 15 hours per day.") fail, probably due to some bug in PatternRuleMatcher.formatMatches().

@ChristinaLJC
Copy link

Hi, I'd like to try on this issue.

@ChristinaLJC
Copy link

image
I am confused that why "results.add(determiner + StringTools.lowercaseFirstCharIfCapitalized(result));" has been commented out. Is it already fixed?

@ChristinaLJC
Copy link

And I am also confused about "the test for AGREEMENT_SENT_START[34]" you mentioned. Can you tell me where the test is?

@danielnaber
Copy link
Member Author

And I am also confused about "the test for AGREEMENT_SENT_START[34]" you mentioned. Can you tell me where the test is?

It's the 34th <rule> in <rulegroup id="AGREEMENT_SENT_START">...</rulegroup> in en/grammar.xml (or it was when I created the issue).

@ChristinaLJC
Copy link

Oh! It seems that it is no need to fix it now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants