presciencelabs / tabitha-editor

0 stars 0 forks source link

Check argument structure of relative clauses and questions #108

Open craigp-atw opened 3 months ago

craigp-atw commented 3 months ago

We currently don't check the argument structure for relative clauses, questions, and same-participant clauses, because those clauses may change their structure (eg 'What did John see?' and 'The book [that John read].').

We need to support checking of these clause types, but they will require some special handling. In the comments below I will outline my ideas for each type.

craigp-atw commented 3 months ago

Same-Participant Patient/Adverbial Clauses

craigp-atw commented 3 months ago

Question Clauses

Helpful example sentences:

craigp-atw commented 3 months ago

Relative Clauses

Helpful example sentences:

Possible Approaches

  1. Using 'hidden' tokens - this is the best I can think of right now
    • Find the gap (if any)
      • If there is no head_np before the verb, put it right before the verb
      • If there is an adposition after the verb that is not followed by an np, put it right after that adposition
      • If there is not an np immediately after the verb (with no adposition between), put it there
      • Otherwise put it at the end
    • Copy in the relativized noun as 'hidden' tokens or something into the determined spot
    • Check the argument structure as usual