mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-06-21 17:26:25 -06:00
fix word order of question
This commit is contained in:
@@ -50,6 +50,10 @@ oper
|
||||
empty : Str ; -- need to avoid GF being silly. See https://inariksit.github.io/gf/2018/08/28/gf-gotchas.html#metavariables-or-those-question-marks-that-appear-when-parsing
|
||||
} ;
|
||||
|
||||
IPhrase : Type = NounPhrase ** {
|
||||
sp : NForm => Str ; -- standalone berapa banyak kucing
|
||||
} ;
|
||||
|
||||
emptyNP : NounPhrase = {
|
||||
s = \\_ => [] ;
|
||||
a = NotPron ;
|
||||
@@ -60,11 +64,15 @@ oper
|
||||
-- Det, Quant, Card, Ord
|
||||
|
||||
Quant : Type = {
|
||||
s : Str ;
|
||||
sp : NForm => Str ;
|
||||
s : Str ; -- quantifier in a context, eg. 'berapa (kucing)'
|
||||
sp : NForm => Str ; -- a standalone, eg. '(kucing) berapa banyak'
|
||||
poss : Possession ;
|
||||
} ;
|
||||
|
||||
IQuant : Type = Quant ** {
|
||||
isPre : Bool ;
|
||||
} ;
|
||||
|
||||
Determiner : Type = Quant ** {
|
||||
pr : Str ; -- prefix for numbers
|
||||
n : NumType ; -- number as in 5 (noun in singular), Sg or Pl
|
||||
@@ -102,6 +110,18 @@ oper
|
||||
sp = \\_ => str
|
||||
} ;
|
||||
|
||||
mkDet : Str -> Number -> Determiner = \str, num -> mkQuant str ** {
|
||||
pr = "" ;
|
||||
n = NoNum num ;
|
||||
} ;
|
||||
|
||||
mkIdet : Str -> Number -> Bool -> Determiner = \str, num, isPre -> mkDet str num ** {
|
||||
pr = case isPre of {True => str ; False => [] } ;
|
||||
-- if isPre is True, then: "berapa kucing"
|
||||
s = case isPre of { False => str ; True => [] };
|
||||
|
||||
} ;
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Prepositions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user