1
0
forked from GitHub/gf-rgl

(Kor) Add comparatives and superlatives

This commit is contained in:
Inari Listenmaa
2020-04-03 18:04:34 +02:00
parent a4ad8964bc
commit 8b62ad1fa7
5 changed files with 13 additions and 11 deletions

View File

@@ -11,7 +11,8 @@ concrete AdjectiveKor of Adjective = CatKor ** open ResKor, Prelude in {
-- : A -> NP -> AP ; -- : A -> NP -> AP ;
ComparA a np = a ** { ComparA a np = a ** {
compar = np.s ! Bare s = \\vf => "더" ++ a.s ! vf ;
compar = glue (np.s ! Bare) "보다" ;
} ; } ;
-- : A2 -> NP -> AP ; -- married to her -- : A2 -> NP -> AP ; -- married to her
@@ -37,7 +38,6 @@ concrete AdjectiveKor of Adjective = CatKor ** open ResKor, Prelude in {
-- : Ord -> AP ; -- warmest -- : Ord -> AP ; -- warmest
AdjOrd ord = ord ** { AdjOrd ord = ord ** {
s = \\_ => ord.s ;
compar = [] compar = []
} ; } ;

View File

@@ -66,7 +66,7 @@ concrete CatKor of Cat = CommonX ** open ResKor, Prelude in {
Quant = ResKor.Quant ; Quant = ResKor.Quant ;
Num = ResKor.Num ; Num = ResKor.Num ;
Ord = { Ord = {
s : Str ; -- AForm => Str ; -- Ord can come from AP and become AP again s : VForm => Str ; -- Ord can come from AP and become AP again
n : Number -- Ord can come from Num, which has inherent number n : Number -- Ord can come from Num, which has inherent number
} ; } ;
DAP = ResKor.Determiner ; DAP = ResKor.Determiner ;

View File

@@ -114,10 +114,10 @@ concrete NounKor of Noun = CatKor ** open ResKor, Prelude in {
-- } ; -- } ;
-- : A -> Ord ; -- : A -> Ord ;
-- OrdSuperl a = { OrdSuperl a = {
-- s = \\af => "제일" ++ a.s ! af ; s = \\vf => "가장" ++ a.s ! vf ;
-- n = Sg -- ?? is this meaningful? n = Sg -- ?? is this meaningful?
-- } ; } ;
-- One can combine a numeral and a superlative. -- One can combine a numeral and a superlative.
@@ -151,7 +151,7 @@ concrete NounKor of Noun = CatKor ** open ResKor, Prelude in {
-- Use3N3 n3 = lin N2 n3 ; -- Use3N3 n3 = lin N2 n3 ;
-- : AP -> CN -> CN -- : AP -> CN -> CN
AdjCN ap cn = cn ** { AdjCN ap cn = cn ** {
s = \\nf => ap.s ! VAttr Pos ++ cn.s ! nf s = \\nf => ap.compar ++ ap.s ! VAttr Pos ++ cn.s ! nf
} ; } ;
-- : CN -> RS -> CN ; -- : CN -> RS -> CN ;

View File

@@ -1,7 +1,7 @@
--# -path=.:../abstract:../common:../prelude --# -path=.:../abstract:../common:../prelude
concrete SymbolKor of Symbol = CatKor ** concrete SymbolKor of Symbol = CatKor **
open Prelude, ResKor, (NK=NounKor) in { open Prelude, ResKor, (NK=NounKor), (VK=VerbKor) in {
lin lin
@@ -45,7 +45,9 @@ lin
SymbNum sy = baseNum ** {s = \\_,_ => sy.s} ; SymbNum sy = baseNum ** {s = \\_,_ => sy.s} ;
-- : Symb -> Ord ; -- : Symb -> Ord ;
SymbOrd sy = sy ** {n=Pl} ; SymbOrd sy =
let comp : Comp = VK.CompAdv (lin Adv sy)
in {s = comp.s ; n=Pl} ;
lincat lincat
Symb, [Symb] = SS ; Symb, [Symb] = SS ;

View File

@@ -111,7 +111,7 @@ lin
-- : AP -> Comp ; -- : AP -> Comp ;
CompAP ap = emptyComp ** { CompAP ap = emptyComp ** {
s = ap.s s = \\vf => ap.compar ++ ap.s ! vf
} ; } ;
-- : CN -> Comp ; -- : CN -> Comp ;