Skip to content

Commit

Permalink
working on :nominal-verb-with support
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoontz committed Aug 1, 2024
1 parent f0a743f commit fd0ac0e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
28 changes: 28 additions & 0 deletions resources/english/lexicon/rules.edn
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,17 @@
:if {:cat :verb
:adjectival-verb? ::unspec}
:then [{:adjectival-verb? true}]}

{:rule :nominal-verb-with-none
:if {:cat :verb
:nominal-verb-with ::unspec}
:then [{:nominal-verb-with :none
:nominal-verb? false}]}

{:rule :nominal-verb-true
:if {:cat :verb
:nominal-verb? ::unspec}
:then [{:nominal-verb? true}]}

{:rule :intransitive-only-default-false
:if {:cat :verb
Expand Down Expand Up @@ -492,6 +503,23 @@
:phrasal? false
:canonical with-adjective}
:3 []}}])}

{:rule :nominal-arg-verbs ;; "have lunch"
:if {:cat :verb
:nominal-verb? true}
:then (let [subj (atom :top)
with-noun (atom :top)]
[{:nominal-verb-with with-noun
:reflexive? false
:sem {:obj :none
:iobj :none
:subj subj}
:subcat {:1 {:sem subj}
:2 {:cat :noun
:subcat []
:phrasal? false
:canonical with-noun}
:3 []}}])}

{:rule :ditransitive-verbs ;; "gives" in "she gives it to her"
:if {:cat :verb
Expand Down
3 changes: 3 additions & 0 deletions resources/english/lexicon/verbs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@
{:aux? false
:reflexive? false
:sense 4
:nominal-verb-with "dinner"
:sem {:subj subj
:pred :have-dinner
:obj :none}
Expand All @@ -459,6 +460,7 @@
{:aux? false
:reflexive? false
:sense 5
:nominal-verb-with "fun"
:sem {:subj subj
:pred :have-fun
:obj :none}
Expand All @@ -476,6 +478,7 @@
{:aux? false
:reflexive? false
:sense 6
:nominal-verb-with "lunch"
:sem {:subj subj
:pred :have-lunch
:obj :none}
Expand Down

0 comments on commit fd0ac0e

Please sign in to comment.