Skip to content

Commit

Permalink
use a new {:modal :adjective} for 'would' and 'will' with "able to" (…
Browse files Browse the repository at this point in the history
…called :adjective since "able" is an adjective)
  • Loading branch information
ekoontz committed Jul 22, 2024
1 parent 83a6c9b commit 4f8b977
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
13 changes: 13 additions & 0 deletions resources/english/lexicon/rules.edn
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@
:subcat {:1 subcat-1-is-shared
:2 []}}}
:modal-with-pred? false}

;; "would want to study"
{:inflected? true
:sem sem
Expand All @@ -595,6 +596,18 @@
:sem sem
:subcat {:1 subcat-1-is-shared
:2 []}}}
:modal-with-pred? false}

;; "will be able to study"
{:inflected? true
:sem sem
:subcat {:1 subcat-1-is-shared
:2 {:cat :verb
:modal :adjective
:infl :base
:sem sem
:subcat {:1 subcat-1-is-shared
:2 []}}}
:modal-with-pred? false}])}

;; "can","must","might","may"
Expand Down
2 changes: 1 addition & 1 deletion resources/english/lexicon/verbs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
:obj embedded-sem})]
{:sense 4
:sem sem
:modal :infinitive
:modal :adjective
:subcat {:1 {:cat :noun
:sem subj}
:2 {:cat :adjective
Expand Down
8 changes: 7 additions & 1 deletion src/menard/english.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,13 @@

;; <TODO> move into declarative grammar (i.e. the model).
(def post-lexical-retrieval-rules
[{:rule :modal-none
[{:rule :modal-adjective
:if {:cat :verb
:aux? false
:modal :adjective}
:then [{:post-lex-rules-stop? true}]} ;; prevent the rest of the rules from applying.

{:rule :modal-none
:if {:cat :verb
:aux? false
:modal :none
Expand Down

0 comments on commit 4f8b977

Please sign in to comment.