mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
FoodsUrd added (by Shafqat)
This commit is contained in:
31
contrib/summerschool/foods/FoodsUrd.gf
Normal file
31
contrib/summerschool/foods/FoodsUrd.gf
Normal file
@@ -0,0 +1,31 @@
|
||||
concrete FoodsUrd of Foods = {
|
||||
flags coding = utf8 ;
|
||||
param Number = Sg | Pl ;
|
||||
|
||||
oper coupla : Number -> Str =\n -> case n of {Sg => "ہے" ; Pl => "ہیں"};
|
||||
|
||||
|
||||
lincat
|
||||
Comment, Quality = {s : Str} ;
|
||||
Item = {s: Str ; n: Number};
|
||||
Kind = {s: Number => Str};
|
||||
|
||||
lin
|
||||
Pred item quality = {s = item.s ++ quality.s ++ coupla item.n} ;
|
||||
This kind = {s = "یھ" ++ kind.s ! Sg; n= Sg} ;
|
||||
These kind = {s = "یھ" ++ kind.s ! Pl; n = Pl} ;
|
||||
That kind = {s = "وہ" ++ kind.s ! Sg; n= Sg} ;
|
||||
Those kind = {s = "وہ" ++ kind.s ! Pl; n=Pl} ;
|
||||
Mod quality kind = {s = \\n => quality.s ++ kind.s ! n} ;
|
||||
Wine = {s = table { Sg => "شراب" ; Pl => "شرابیں"} };
|
||||
Cheese = {s = table { Sg => "پنیر" ; Pl => "پنیریں"} };
|
||||
Fish = {s = table { Sg => "مچھلی" ; Pl => "مچھلیاں"} };
|
||||
Pizza = {s = table { Sg => "پیزہ" ; Pl => "پیزے"} };
|
||||
Very quality = {s = "بہت" ++ quality.s} ;
|
||||
Fresh = {s = "تازہ"} ;
|
||||
Warm = {s = "گرم"} ;
|
||||
Italian = {s = "اٹا لوی"} ;
|
||||
Expensive = {s = "مہنگا"} ;
|
||||
Delicious = {s = "مزیدار"} ;
|
||||
Boring = {s = "فضول"} ;
|
||||
}
|
||||
Reference in New Issue
Block a user