mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-14 05:32:51 -06:00
added Facebook grammar from SummerSchool tutorial on best practices for grammar writing
This commit is contained in:
16
contrib/summerschool/2013/bestPractices/LexFacebookEng.gf
Normal file
16
contrib/summerschool/2013/bestPractices/LexFacebookEng.gf
Normal file
@@ -0,0 +1,16 @@
|
||||
instance LexFacebookEng of LexFacebook =
|
||||
open SyntaxEng,
|
||||
ParadigmsEng,
|
||||
--ExtraEng,
|
||||
IrregEng in
|
||||
{
|
||||
oper
|
||||
nounFromS s = mkNP (mkNP the_Det (mkCN (mkN "fact"))) (SyntaxEng.mkAdv that_Subj s) ;
|
||||
|
||||
checkIn np = mkVP (mkV2 (partV (mkV "check") "in") (mkPrep "to")) np ;
|
||||
|
||||
beFriends np = mkVP (mkVP (dirV2 become_V) (mkNP a_Art plNum (mkCN (mkN "friend")))) (SyntaxEng.mkAdv (mkPrep "with") np) ;
|
||||
|
||||
like np1 np2 = mkS (mkCl np1 (mkVP (dirV2 (mkV "like")) np2)) ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user