forked from GitHub/comp-syntax-gu-mlt
adjectives
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
resource MicroResKor = open Prelude, HangulJamo in {
|
||||
param
|
||||
VForm = Lemma | VPresent | VPast ;
|
||||
VForm = VLemma | VPresent | VPast | VAdnomial ;
|
||||
|
||||
oper
|
||||
Noun : Type = {s : Str} ;
|
||||
@@ -14,14 +14,21 @@ resource MicroResKor = open Prelude, HangulJamo in {
|
||||
_ => Predef.error ("lemmaToStem was applied to a non-lemma," ++ lemma)
|
||||
} ;
|
||||
|
||||
regVerb : (lemma : Str) -> Verb
|
||||
= \lemma ->
|
||||
reg : (descriptive : Bool) -> (lemma : Str) -> Verb
|
||||
= \descriptive,lemma ->
|
||||
let stem = lemmaToStem lemma ;
|
||||
in {
|
||||
s = table {
|
||||
Lemma => lemma ;
|
||||
VLemma => lemma ;
|
||||
VPresent => present_haeyo stem ;
|
||||
VPast => past_haeyo stem
|
||||
VPast => past_haeyo stem ;
|
||||
VAdnomial =>
|
||||
if_then_else Str descriptive
|
||||
(stem + vc_allomorph stem "ᆫ" "은")
|
||||
(stem + "는")
|
||||
}
|
||||
} ;
|
||||
|
||||
regVerb : (lemma : Str) -> Verb = reg False ;
|
||||
regAdjective : (lemma : Str) -> Adjective = reg True ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user