WHREL_OBJ YAML source

code: WHREL_OBJ
biber_number: H32
name: WH relative clauses (object position)
definition: >-
  Relative clauses introduced by WH-words where the relative pronoun serves as object.
normalization: finite_verbs
detection:
- requires:
  - pos
  - dep
  semgrex: '{pos:/WDT|WP/}=wh <dobj {pos:/VB.*/}=verb'
  description: WH relative pronoun as object of verb in relative clause.
- source: pybiber
  requires:
  - word
  - lemma
  - pos
  - dep
  parts:
    p1:
      cql: '[lemma!="ask|tell"] [pos="NN.*|CD|DT"] [pos="W.*" & word!="that" & dep=".*obj.*"]'
    p2:
      cql: '[lemma!="ask|tell" & pos="NN.*|CD|DT"] [pos="\\.|,|:|;|-LRB-|-RRB-"] [word="who" & dep=".*obj.*"]'
  combine: "p1 | p2"
  description: >-
    WH relative (object): WH-word with obj dep, preceded by N/CD/DT,
    with 2-back token not ask/tell. Second pattern handles intervening
    punctuation ("the man, who...").
sources:
- biber_1988
- pybiber
notes: >-
  Not separately in MFTE ([[WHSC]] covers WH subordinate clauses generally). Highest
  loading on D3. Needs dependency parsing.
examples:
- text: the ring which Bilbo found