mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 00:22:51 -06:00
extension of DictHin and ParseHin
This commit is contained in:
@@ -6,6 +6,7 @@ interface DiffHindustani = open Prelude in {
|
||||
|
||||
kwd : Str ;
|
||||
ky : Str ;
|
||||
ka : Str ;
|
||||
agr : Str ;
|
||||
awr : Str ;
|
||||
jn : Str ;
|
||||
|
||||
@@ -140,5 +140,13 @@ incomplete concrete NounHindustani of Noun =
|
||||
} ;
|
||||
|
||||
ApposCN cn np = {s = \\n,c => cn.s ! n ! Dir ++ np.s ! NPC c ; g = cn.g} ;
|
||||
|
||||
PossNP cn np = {s = \\n,c => case cn.g of {Masc => cn.s ! n ! c ++ ka ++ np.s ! NPC Dir ;
|
||||
Fem => cn.s ! n ! c ++ ky ++ np.s ! NPC Dir } ;
|
||||
g = cn.g} ;
|
||||
|
||||
PartNP cn np = {s = \\n,c => case cn.g of {Masc => cn.s ! n ! c ++ ka ++ np.s ! NPC Dir ;
|
||||
Fem => cn.s ! n ! c ++ ky ++ np.s ! NPC Dir } ;
|
||||
g = cn.g} ;
|
||||
|
||||
}
|
||||
|
||||
@@ -31,6 +31,12 @@ incomplete concrete VerbHindustani of Verb = CatHindustani ** open CommonHindust
|
||||
AdvVP vp adv = insertObj (\\a => adv.s ! giveGender a) vp ;
|
||||
|
||||
AdVVP adv vp = insertAdV adv.s vp ;
|
||||
|
||||
AdvVPSlash vp adv = insertObj (\\a => adv.s ! giveGender a) vp ** {c2 = vp.c2} ; --need to confirm
|
||||
|
||||
AdVVPSlash adv vp = insertAdV adv.s vp ** {c2 = vp.c2} ; -- need to confirm
|
||||
|
||||
|
||||
ReflVP v = insertObjPre (\\_ => RefPron) v ;
|
||||
PassV2 v = predV v ; -- need to be fixed
|
||||
CompAP ap ={s = \\a => ap.s ! giveNumber a ! giveGender a ! Dir ! Posit } ;
|
||||
|
||||
Reference in New Issue
Block a user