Skip to content

Commit

Permalink
working on reflexives fix rule interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoontz committed Aug 3, 2024
1 parent c6846bd commit f2fab6b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 19 deletions.
18 changes: 13 additions & 5 deletions resources/english/lexicon/rules.edn
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,20 @@
:subcat []}}
:reflexive? false
:sem {:subj subj
:obj obj}})
:obj obj}})]}

;; 4. transitive, nonreflexive:
;; transitive, reflexive
(let [subj (atom {:existential? false})
{:rule :reflexive-defaults-to-false
:if {:cat :verb
:reflexive? ::unspec
:ditransitive? ::unspec}
:then [{:reflexive? false}]}

{:rule :reflexive-transitive-verb
:if {:cat :verb
:reflexive? true
:ditransitive? false
:intransitive? false}
:then [(let [subj (atom {:existential? false})
obj (atom {:existential? false})
agr (atom :top)]
{:subcat {:1 {:cat :noun
Expand All @@ -204,7 +213,6 @@
:case :acc
:sem obj
:subcat []}}
:reflexive? true
:sem {:subj subj
:obj obj}})]}

Expand Down
32 changes: 18 additions & 14 deletions resources/english/lexicon/verbs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,21 @@

(;; the 'is' or 'was' in 'is born' or 'was born'
let [subj (atom {:animate? true})]
{:sense 7
:aux? false
:sem {:pred :be-born
:subj subj
:obj :none
:iobj :none}
:subcat {:1 {:sem subj}
:2 {:cat :adjective
:phrasal? false
:pred :born
:canonical "born"
:surface "born"}
:3 []}
:exceptions exceptions})
{:sense 7
:reflexive? false
:aux? false
:sem {:pred :be-born
:subj subj
:obj :none
:iobj :none}
:subcat {:1 {:sem subj}
:2 {:cat :adjective
:phrasal? false
:pred :born
:canonical "born"
:surface "born"}
:3 []}
:exceptions exceptions})
])


Expand Down Expand Up @@ -384,6 +385,7 @@
:sem {:pred :give}
:intransitive-only? true}
{:exceptions exceptions
:ditransitive? true
:subcat {:2 {:cat :prep
:sem {:pred :to}}
:3 {:cat :noun}}
Expand Down Expand Up @@ -614,11 +616,13 @@
[{:intransitive-only? true
:sem {:pred :put}}
{:exceptions exceptions
:ditransitive? true
:subcat {:2 {:cat :prep
:sem {:pred :on}}
:3 {:cat :noun}}
:sem {:pred :put-on}}
{:exceptions exceptions
:ditransitive? true
:subcat {:2 {:cat :prep
:sem {:pred :in}}
:3 {:cat :noun}}
Expand Down

0 comments on commit f2fab6b

Please sign in to comment.