1
0
forked from GitHub/gf-core

complete RGL implementation for Mongolian by Nyamsuren Erdenebadrakh

This commit is contained in:
nyamaakaa
2015-03-13 13:40:22 +00:00
parent 4ff30e6771
commit 053f2377b2
39 changed files with 54028 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
resource ResFoodsMon {
param
Number = Sg | Pl ;
oper
Noun : Type = {s : Number => Str} ;
NounPhrase : Type = {s : Str ; n : Number} ;
Adjective : Type = {s : Str} ;
det : Number -> Str -> Noun -> NounPhrase = \n,d,cn -> {
s = d ++ cn.s ! n ;
n = n
} ;
regNoun : Str -> Noun = \x -> {
s = table { Sg => x ;
Pl => case x of {
_ + "c" => x + "нууд" ;
_ => x + "ууд"
}
}
} ;
mkAdj : Str -> Adjective = \adj -> {s = adj} ;
} ;