mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-13 23:09:31 -06:00
Maltese RG: Fix apposition. Add ExtAdvNP & ExtAdvVP. Fix adjective order.
This commit is contained in:
@@ -13,7 +13,7 @@ concrete AdjectiveMlt of Adjective = CatMlt ** open ResMlt, Prelude in {
|
||||
-- warm
|
||||
PositA a = {
|
||||
s = \\gn => a.s ! (APosit gn) ;
|
||||
isPre = True
|
||||
isPre = False
|
||||
} ;
|
||||
|
||||
-- A -> NP -> AP
|
||||
|
||||
@@ -16,7 +16,8 @@ concrete IdiomMlt of Idiom = CatMlt ** open Prelude, ResMlt in {
|
||||
|
||||
-- VP -> Cl
|
||||
-- one sleeps
|
||||
GenericCl vp = mkClause "wieħed" (agrP3 Sg Masc) vp ;
|
||||
-- GenericCl vp = mkClause "wieħed" (agrP3 Sg Masc) vp ;
|
||||
GenericCl vp = mkClause "dak li jkun" (agrP3 Sg Masc) vp ;
|
||||
|
||||
-- NP -> RS -> Cl
|
||||
-- it is I who did it
|
||||
|
||||
@@ -174,6 +174,10 @@ concrete NounMlt of Noun = CatMlt ** open ResMlt, Prelude in {
|
||||
-- Paris today
|
||||
AdvNP np adv = overwriteNPs np (\\c => np.s ! c ++ adv.s) ;
|
||||
|
||||
-- NP -> Adv -> NP
|
||||
-- boys, such as ..
|
||||
ExtAdvNP np adv = overwriteNPs np (\\c => np.s ! c ++ "," ++ adv.s ++ ",") ;
|
||||
|
||||
-- Num
|
||||
NumSg = {s = \\c => []; n = NumX Sg ; hasCard = False} ;
|
||||
NumPl = {s = \\c => []; n = NumX Pl ; hasCard = False} ;
|
||||
@@ -275,8 +279,8 @@ concrete NounMlt of Noun = CatMlt ** open ResMlt, Prelude in {
|
||||
SentCN cn sc = overwriteCNs cn (\\num => cn.s ! num ++ sc.s) ;
|
||||
|
||||
-- CN -> NP -> CN
|
||||
-- Appossition: city Paris
|
||||
ApposCN cn np = overwriteCNs cn (\\num => cn.s ! num ++ np.s ! NPNom) ; -- known to be overgenerating
|
||||
-- Apposition: city Paris
|
||||
ApposCN cn np = overwriteCNs cn (\\num => cn.s ! num ++ prepNP prep_ta np) ;
|
||||
|
||||
-- CN -> NP -> CN
|
||||
-- Possessive: house of mine
|
||||
|
||||
@@ -115,6 +115,10 @@ concrete VerbMlt of Verb = CatMlt ** open Prelude, ResMlt in {
|
||||
False => insertObj (\\_ => adv.s) vp
|
||||
} ;
|
||||
|
||||
-- VP -> Adv -> VP
|
||||
-- sleep , even though ...
|
||||
ExtAdvVP vp adv = insertObj (\\_ => "," ++ adv.s ++ ",") vp ;
|
||||
|
||||
-- AdV -> VP -> VP
|
||||
-- always sleep
|
||||
AdVVP adv vp = insertAdV adv.s vp ;
|
||||
|
||||
Reference in New Issue
Block a user