-
Notifications
You must be signed in to change notification settings - Fork 188
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
Doubled commas when two appositives are next to each other #15
Comments
Jeremy, I guess a good starting point to fix this bug would be OrthographyProcessor.java from line 184 onwards. |
Thanks, Rodrigo! I'll take a look. I've made a handful of modifications:
all of the tests pass with this modifications and they enable some sentence structures for me. Would you be interested in pull requests? |
Jeremy, thanks for contributing your fixes. I have looked at the code changes and they look fine to me. Before I merge, would it be possible to write two JUnit tests as well for the first two code changes in the OrthographyFormatTests class? |
Sure, I'll give that a shot shortly. |
SimpleNLG erroneously generates two commas after "1999" above. Both "since 1999" and "except 2001" are appositives, each added to the prepositional phrase "In every year when a condition occurred"
Here's the code that generates it, using a fairly simple Ruby library that interfaces with Java and SimpleNLG:
Obviously this isn't a difficult bug to solve in my client code (I can just replace all doubled commas with a single comma), but probably better for SimpleNLG to handle it on its own.
I'm working on getting the other bug (#13) replicated with code for you...
The text was updated successfully, but these errors were encountered: