1
0
forked from GitHub/gf-rgl

(Kor) Add some Dets

This commit is contained in:
Inari Listenmaa
2020-04-03 15:43:16 +02:00
parent 477a214cc0
commit a9ec29a1e6
2 changed files with 18 additions and 12 deletions

View File

@@ -64,20 +64,19 @@ oper
-- Det, Quant, Card, Ord
BaseQuant : Type = {
sp : NForm => Str ;
isPoss : Bool ;
p : Phono
} ;
Determiner : Type = BaseQuant ** {
s : NumOrigin => Str ; -- Chosen by the counter of CN
sp : NForm => Str ;
n : Number ;
numtype : NumType ; -- Whether its Num component is digit, numeral or Sg/Pl
} ;
Quant : Type = BaseQuant ** {
s : Str ;
sp : NForm => Str ;
} ;
Num : Type = {
@@ -99,6 +98,7 @@ oper
} ;
baseQuant : BaseQuant = {
sp = \\_ => [] ;
isPoss = False ;
p = Vowel ;
} ;
@@ -109,6 +109,13 @@ oper
p = (mkNoun sp).p ;
} ;
mkDet : Str -> Number -> Determiner = \s,num -> baseQuant ** {
s = \\_ => (mkNoun s).s ! Bare ; -- NumOrigin irrelevant for non-numbers
sp = (mkNoun s).s ;
n = num ;
numtype = NoNum ;
} ;
plural : NForm => Str = table {
Bare => "들" ;
nf => "들" + allomorph nf "들"