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

634 basic head opt subj #739

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open

634 basic head opt subj #739

wants to merge 2 commits into from

Conversation

ajcassell
Copy link
Contributor

#653 removed the three unused types and moved label into a new section called Trees
#617 small text change in questionnaire
#634 Added the joint conditional for subj-drop=subj-drop-all AND subj-con=subj-con-some. This fixed the bug and did not break any regression tests.
Screen Shot 2024-09-27 at 2 42 13 PM

@emilymbender
Copy link
Contributor

Is the addition of basic-head-opt-subj adding any ambiguity anymore? (Also, I wonder if it's actually decl-head-opt-subj that should be added, despite what the bug report said.)

@ajcassell
Copy link
Contributor Author

ajcassell commented Sep 28, 2024

Is the addition of basic-head-opt-subj adding any ambiguity anymore? (Also, I wonder if it's actually decl-head-opt-subj that should be added, despite what the bug report said.)

It is not adding any ambiguity anymore. Originally I had added just

if ch.get('subj-drop') == 'subj-drop-all': rules.add('basic-head-opt-subj := basic-head-opt-subj-phrase')

which is where the ambiguity came from because a few lines earlier in the code, the decl-head-opt-subj rule was also being instantiated:

if ch.get('subj-drop') == 'subj-drop-all' and not (ch.get('subj-con') == 'subj-con-some'): rules.add('decl-head-opt-subj := decl-head-opt-subj-phrase.') if ch.get('subj-drop') == 'subj-drop-lex' and not (ch.get('subj-con') == 'subj-con-some'): rules.add('decl-head-opt-subj := decl-head-opt-subj-phrase.')

So I decided to only add the basic-head-opt-subj rule as I did originally (when subj-drop=subj-drop-lex) but only when the specific criteria for decl-head-opt-subj was not met (subj-con=subj-con-some). This fixed the bug in that it instantiated the rule but also didn't break any of the regression tests because it no longer added the ambiguity of which rule to use. Does that seem right?

@emilymbender
Copy link
Contributor

Still not quite, actually. I think what's needed is decl-head-opt-subj in the case represented by that choices file which wasn't otherwise already giving decl-head-opt-subj.

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

Successfully merging this pull request may close these issues.

2 participants