Skip to content

Commit

Permalink
add short-circuit mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoontz committed Jul 22, 2024
1 parent 85f8828 commit 83a6c9b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/menard/english.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@
:if {:cat :verb
:aux? false
:modal :none
:infl ::unspec}
:infl ::unspec
:post-lex-rules-stop? ::unspec}
:then [{:infl :base}
{:infl :present}
{:infl :present-participle}
Expand All @@ -155,32 +156,37 @@
:if {:cat :verb
:aux? false
:modal :infinitive
:infl ::unspec}
:infl ::unspec
:post-lex-rules-stop? ::unspec}
:then [{:infl :base}
{:infl :present}
{:infl :present-participle}
{:infl :past-participle}
{:infl :past-simple}]}
{:rule :present-infl-to-present-tense

{:rule :present-infl-to-present-tense
:if {:cat :verb
:aux? false
:modal :none
:infl :present}
:infl :present
:post-lex-rules-stop? ::unspec}
:then [{:infl :present
:sem {:tense :present
:aspect :simple}}]}
{:rule :tense-non-aux-future
:if {:cat :verb
:aux? false
:modal :none
:infl :present}
:infl :present
:post-lex-rules-stop? ::unspec}
:then [{:infl :present
:sem {:tense :present
:aspect :simple}}]}
{:rule :past-simple-non-aux
:if {:cat :verb
:aux? false
:infl :past-simple}
:infl :past-simple
:post-lex-rules-stop? ::unspec}
:then [{:sem {:tense :past
:aspect :perfect}}]}])
;; </TODO>
Expand Down

0 comments on commit 83a6c9b

Please sign in to comment.