forked from GitHub/comp-syntax-gu-mlt
wip: noun morphology
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
resource MicroResKor = open Prelude, HangulJamo in {
|
||||
param
|
||||
VForm = VLemma | VPresent | VPast | VAdnomial ;
|
||||
NForm = NBare | NTopic | NSubject | NObject | NPluralSubject | NPluralTopic ;
|
||||
|
||||
oper
|
||||
Noun : Type = {s : Str} ;
|
||||
Noun : Type = {s : NForm => Str} ;
|
||||
Verb : Type = {s : VForm => Str} ;
|
||||
Verb2 : Type = Verb ;
|
||||
Adjective : Type = Verb ;
|
||||
@@ -31,4 +32,16 @@ resource MicroResKor = open Prelude, HangulJamo in {
|
||||
|
||||
regVerb : (lemma : Str) -> Verb = reg False ;
|
||||
regAdjective : (lemma : Str) -> Adjective = reg True ;
|
||||
|
||||
noun : (bare : Str) -> Noun
|
||||
= \bare -> {
|
||||
s = table {
|
||||
NBare => bare ;
|
||||
NTopic => bare + vc_allomorph bare "는" "은" ;
|
||||
NSubject => bare + vc_allomorph bare "이" "가" ;
|
||||
NObject => bare + vc_allomorph bare "를" "을" ;
|
||||
NPluralTopic => bare + "들은" ;
|
||||
NPluralSubject => bare + "들이"
|
||||
}
|
||||
} ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user