mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-29 22:42:52 -06:00
complete RGL implementation for Mongolian by Nyamsuren Erdenebadrakh
This commit is contained in:
35
lib/src/mongolian/RelativeMon.gf
Normal file
35
lib/src/mongolian/RelativeMon.gf
Normal file
@@ -0,0 +1,35 @@
|
||||
--# -path=.:../abstract:../common:../../prelude
|
||||
|
||||
concrete RelativeMon of Relative = CatMon ** open ResMon, MorphoMon, Prelude in {
|
||||
|
||||
flags optimize=all_subs ; coding=utf8 ;
|
||||
|
||||
lin
|
||||
|
||||
RelCl cl = {
|
||||
s = \\t,ant,pol,_ => cl.s ! t ! ant ! pol ! Part Rel ;
|
||||
existSubject = True
|
||||
} ;
|
||||
|
||||
RelVP rp vp = {
|
||||
s = \\t,ant,pol,_ =>
|
||||
let
|
||||
cl = (mkClause (\\_ => []) Sg vp.vt Acc vp)
|
||||
in
|
||||
cl.s ! t ! ant ! pol ! Part Object ;
|
||||
existSubject = False
|
||||
} ;
|
||||
|
||||
RelSlash rp slash = {
|
||||
s = \\t,ant,pol,_ => slash.s ! t ! ant ! pol ! Part Object ++ slash.c2.s ;
|
||||
existSubject = False
|
||||
} ;
|
||||
|
||||
IdRP = {s = []} ;
|
||||
|
||||
FunRP p np rp = {
|
||||
s = np.s ! Nom ++ "нь"
|
||||
} ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user