diff options
| author | aarne <aarne@chalmers.se> | 2010-10-20 16:22:23 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2010-10-20 16:22:23 +0000 |
| commit | 8bffe71cd4af103faaa4276df086aa1b7546844e (patch) | |
| tree | 09547e1b1f082fd1238e2803bc50f00be96d03bb /examples/query/LexQuerySwe.gf | |
| parent | 2991b7acefd84c62eb305f3d13afc34b401b7527 (diff) | |
functorized Query and added Swe
Diffstat (limited to 'examples/query/LexQuerySwe.gf')
| -rw-r--r-- | examples/query/LexQuerySwe.gf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/query/LexQuerySwe.gf b/examples/query/LexQuerySwe.gf new file mode 100644 index 000000000..8d95e840b --- /dev/null +++ b/examples/query/LexQuerySwe.gf @@ -0,0 +1,32 @@ +instance LexQuerySwe of LexQuery = + open SyntaxSwe, (M = MakeStructuralSwe), ParadigmsSwe, ExtraSwe, IrregSwe in { + +oper + located_A : A = compoundA (mkA "belägen" "beläget" "belägna" [] []) ; + + give_V3 : V3 = mkV3 giva_V ; + know_V2 = mkV2 veta_V ; + +-- structural words + about_Prep : Prep = mkPrep "om" ; + all_NP : NP = mkNP (mkPN "allt") ; --- + also_AdV : AdV = mkAdV "också" ; + also_AdA : AdA = mkAdA "även" ; + as_Prep : Prep = mkPrep "som" ; + at_Prep : Prep = mkPrep "på" ; --- | mkPrep "hos" | mkPrep "vid" ; + that_RP = which_RP ; + + participlePropCN : Prop -> CN -> CN = variants {} ; + + vpAP _ = mkAP (mkA "obefintlig") ; --- not used, see LexQuery.participlePropCN + + called_A : A = compoundA (mkA "kallad" "kallat" "kallade" "kallade" "kallade") ; + + information_N : N = mkN "information" "informationer" ; + other_A : A = compoundA (mkA "annan" "annat" "andra" "andra" "andra") ; + otherwise_AdV : AdV = mkAdV "annars" ; + otherwise_AdA : AdA = mkAdA "annars" ; + what_IQuant : IQuant = which_IQuant ; + + +} |
