summaryrefslogtreecommitdiff
path: root/examples/query/LexQueryFre.gf
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2010-12-16 15:53:07 +0000
committeraarne <aarne@chalmers.se>2010-12-16 15:53:07 +0000
commitf390b2a3388b8b400616992f574f7213905d65b4 (patch)
tree2da33641c8aaf1b175b74a756130eb607cb44742 /examples/query/LexQueryFre.gf
parent61e4e9ac20090aa32269dffa83bce174e5bfb04d (diff)
some fixes in QuerySwe; a first version of QueryFre
Diffstat (limited to 'examples/query/LexQueryFre.gf')
-rw-r--r--examples/query/LexQueryFre.gf32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/query/LexQueryFre.gf b/examples/query/LexQueryFre.gf
new file mode 100644
index 000000000..6bfa934ee
--- /dev/null
+++ b/examples/query/LexQueryFre.gf
@@ -0,0 +1,32 @@
+instance LexQueryFre of LexQuery =
+ open SyntaxFre, (M = MakeStructuralFre), ParadigmsFre, ExtraFre, IrregFre in {
+
+oper
+ located_A : A = mkA "situé" ;
+
+ giveMe = \np -> mkVP (mkV2 (mkV "montrer")) np ; ---
+ know_V2 = connaître_V2 ;
+
+-- structural words
+ about_Prep : Prep = mkPrep "sur" ;
+ all_NP : NP = mkNP (mkPN "tout") ; ---
+ also_AdV : AdV = mkAdV "aussi" ;
+ also_AdA : AdA = mkAdA "aussi" ;
+ as_Prep : Prep = mkPrep "pour" ; --- only used for "vad har X för Y"
+ at_Prep : Prep = mkPrep "chez" ; --- | mkPrep "hos" | mkPrep "vid" ;
+ that_RP = which_RP ;
+
+ participlePropCN : Prop -> CN -> CN = variants {} ;
+
+ vpAP _ = mkAP (mkA "nonexistant") ; --- not used, see LexQuery.participlePropCN
+
+ called_A : A = mkA "appelé" ;
+
+ information_N : N = mkN "information" feminine ;
+ other_A : A = prefixA (mkA "autre") ;
+ otherwise_AdV : AdV = mkAdV "autrement" ;
+ otherwise_AdA : AdA = mkAdA "autrement" ;
+ what_IQuant : IQuant = which_IQuant ;
+
+
+}