Skip to content

Commit

Permalink
add first regular future tense forms
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoontz committed Jul 7, 2024
1 parent 32bfbba commit bcddf99
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
14 changes: 12 additions & 2 deletions resources/español/morphology/verbs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,16 @@

;; </present-tense rules>

;; .. other tenses..
]
;; <future tense>


{:g [#"^(.+)ar$" "$1é"]
:p [#"^(.+ar)é$" "$1"]
:u {:cat :verb
:infl :future
:agr {:number :sing
:person :1st}}}

;; </future tense>
]

6 changes: 6 additions & 0 deletions test/menard/test/español.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@
(is (= (u/get-in hablan [:agr :number]) :plur))
(is (= (u/get-in hablan [:infl]) :present))))

(deftest analyze-future-tense
;; regular
(let [hablaré (->> "hablaré" analyze first)]
(is (= (u/get-in hablaré [:agr :number]) :sing))
(is (= (u/get-in hablaré [:infl]) :future))))




Expand Down

0 comments on commit bcddf99

Please sign in to comment.