Skip to content

Commit

Permalink
relative pronoun improvements
Browse files Browse the repository at this point in the history
  * Resolves some issues identified in UniversalDependencies/UD_English-EWT#278
  • Loading branch information
amir-zeldes committed Jan 20, 2022
1 parent 8ea144b commit 8657f1d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion _build/utils/ud_morph.ini
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,16 @@ lemma=/you/;#S:addressee=/.*,.*/ #2>#1 #1:morph+=Number=Plur
xpos=/W.*/&lemma!=/that/ none #1:morph+=PronType=Int
# Standard relative
xpos=/W.*/;func=/acl:relcl/ #2>#1;#1.*#2 #1:morph+=PronType=Rel
# Coordinate standard relative
xpos=/W.*/;func=/conj/;func=/acl:relcl/ #2>#1;#1.*#2;#3>#2 #1:morph+=PronType=Rel
# Free relative
xpos=/W.*/;func=/acl:relcl/ #1>#2 #1:morph+=PronType=Rel
# Possessive 'whose' relative
xpos=/WP\$/&func=/nmod:poss/;func=/acl:relcl/;func=/.*/ #2>#3>#1;#1.*#2 #1:morph+=PronType=Rel
# Relative with "X of which"
func=/acl.*/;xpos=/N.*|DT|J.*/;xpos=/WDT|WP/&func=/nmod|obl/ #1>#2>#3;#2.*#3 #3:morph+=PronType=Rel
# Same but coordinated
func=/conj/;xpos=/N.*|DT|J.*/;xpos=/WDT|WP/&func=/nmod|obl/;func=/acl.*/ #1>#2>#3;#2.*#3;#4>#1 #3:morph+=PronType=Rel

# Subjunctive mood
xpos=/VB/;xpos=/MD/ #1>#2 #1:storage=not_subjv
Expand Down Expand Up @@ -197,4 +203,5 @@ morph!=/.*PronType.*/&xpos=/PRP.?/&upos=/PRON/ none #1:morph+=PronType=Prs
morph!=/.*PronType.*/&func=/det/ none #1:morph+=PronType=Art
lemma=/each|one/;lemma=/(an)?other/&func=/fixed/ #1>#2 #1:morph+=PronType=Rcp

func=/goeswith/ none #1:morph=_
func=/goeswith/ none #1:morph=_

0 comments on commit 8657f1d

Please sign in to comment.