forked from GitHub/gf-rgl
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73b5f4e21e | ||
|
|
186e465bac | ||
|
|
edf76df252 | ||
|
|
3b14d6c035 | ||
|
|
1d2e16e929 | ||
|
|
39cea8b9b6 | ||
|
|
0012630784 | ||
|
|
0f4dd88f9e | ||
|
|
f6576c4b36 | ||
|
|
231e689426 | ||
|
|
997a9adae3 | ||
|
|
dcc0f3f56c | ||
|
|
0a197ec126 | ||
|
|
c97cbb530c | ||
|
|
1ec6a98640 | ||
|
|
3d6fa9e55d | ||
|
|
ffc9231e95 | ||
|
|
aeebeb9a69 | ||
|
|
f3a5a70221 | ||
|
|
100ca57b71 | ||
|
|
684d468db7 | ||
|
|
924c5b3b7a | ||
|
|
5dce027e68 | ||
|
|
eccb04b1b9 | ||
|
|
a412e8d85e | ||
|
|
fda7e1595d | ||
|
|
e67f079167 | ||
|
|
5587c14083 | ||
|
|
c7ddbd2fc6 | ||
|
|
cdee869595 | ||
|
|
ae3dd0dcee | ||
|
|
664363c1c1 | ||
|
|
ef4f72a731 | ||
|
|
0c9e995cb2 | ||
|
|
34576e5ec5 | ||
|
|
ab9dfc6f1c | ||
|
|
aa89efcbf8 | ||
|
|
a97733d5dc | ||
|
|
5995be8940 | ||
|
|
4c23ca2116 | ||
|
|
a223b3803c | ||
|
|
66da1a49da | ||
|
|
d2b7bf2fb6 | ||
|
|
10d45593e4 | ||
|
|
621dc23f60 | ||
|
|
dcd262df05 | ||
|
|
c3f937c667 | ||
|
|
20cb49cd57 | ||
|
|
bd0506760e | ||
|
|
eae650960b | ||
|
|
34062e2ed2 | ||
|
|
827a0296c9 | ||
|
|
110266306d | ||
|
|
498acd0b86 | ||
|
|
d947e7e2e2 | ||
|
|
00790d98fa | ||
|
|
83cfc496a4 | ||
|
|
363219730e | ||
|
|
8c4cd58bd1 | ||
|
|
11f73acc28 | ||
|
|
344342012d | ||
|
|
a79202f667 | ||
|
|
8a82c2ca53 | ||
|
|
e866940d65 | ||
|
|
8f1b3eeece | ||
|
|
b14c0f8492 | ||
|
|
2e6a750c1a | ||
|
|
98128249bd | ||
|
|
1e581fbd10 | ||
|
|
f2ac424bfe | ||
|
|
e65469ffb2 | ||
|
|
8458a74e25 | ||
|
|
7156f488dd | ||
|
|
ff44b03344 | ||
|
|
4282523f2f | ||
|
|
d8208cba24 | ||
|
|
0a03e037f4 | ||
|
|
0201d62777 | ||
|
|
b8bb7f1d72 | ||
|
|
fe56b729b4 | ||
|
|
cab232a4f6 | ||
|
|
cdeaf5a271 | ||
|
|
60e38122d0 | ||
|
|
800e2b0dda | ||
|
|
84bdce7cc8 | ||
|
|
add5029b7a | ||
|
|
19ba581f0e | ||
|
|
a890a1aad5 | ||
|
|
26a1e55cbe | ||
|
|
992e670c10 | ||
|
|
eea95a6f76 | ||
|
|
f1facac1bf | ||
|
|
c5bb0dacb5 | ||
|
|
44ea945c8c | ||
|
|
9265270a0c | ||
|
|
86e2afcfc0 | ||
|
|
6115d44398 | ||
|
|
cf6a376272 | ||
|
|
3a8527689c | ||
|
|
416d37eee7 | ||
|
|
c4d578cac3 | ||
|
|
a7341d9be1 | ||
|
|
57ef377e6d | ||
|
|
3a133d035d | ||
|
|
912ddd521f | ||
|
|
945bc086f2 | ||
|
|
70806027c1 | ||
|
|
88a3759a9e | ||
|
|
1910010e70 | ||
|
|
0cd851aa10 | ||
|
|
2b07314680 | ||
|
|
a3e19ed673 | ||
|
|
b571d86b7c | ||
|
|
6064e69d8e | ||
|
|
510abc0364 | ||
|
|
331a07bd35 | ||
|
|
34ba4cf564 | ||
|
|
5a9ab2cbdf | ||
|
|
97b8cb72aa | ||
|
|
09087c1944 | ||
|
|
f497b4a63a | ||
|
|
56e97ebfff | ||
|
|
16c19eb4b0 | ||
|
|
35f5d9a68b | ||
|
|
0f78e35bed | ||
|
|
bff00560d5 | ||
|
|
4ab63d2d66 | ||
|
|
41e3b8280b | ||
|
|
4a3e30a1cd | ||
|
|
9458f96f0b | ||
|
|
ba922b5daa | ||
|
|
f261b2f45b | ||
|
|
939e96fb6c | ||
|
|
3da5f0d318 | ||
|
|
37d915c879 | ||
|
|
b69c3518a7 | ||
|
|
0896a77049 | ||
|
|
7225033a03 | ||
|
|
ed27aa97fc | ||
|
|
de3d59c7e8 | ||
|
|
03024d7b72 | ||
|
|
f6187834c4 | ||
|
|
842747b407 | ||
|
|
922f664f74 | ||
|
|
3943089d3d | ||
|
|
6a6788c24e | ||
|
|
e7e7f12ad8 | ||
|
|
90d8897bf9 | ||
|
|
be0fb1f7c1 | ||
|
|
7d73dd8195 | ||
|
|
48ec088faa | ||
|
|
8a84ca1a45 | ||
|
|
34f5e625e3 | ||
|
|
27c2d7cbb3 | ||
|
|
26abc63953 | ||
|
|
15df5ed37e | ||
|
|
43f19f283e | ||
|
|
9b6b94ec1d | ||
|
|
8b462bdbfb | ||
|
|
14c7db6427 | ||
|
|
2c613bfc83 | ||
|
|
8a8c1c6b42 | ||
|
|
76b27152f9 | ||
|
|
36bc768f26 | ||
|
|
b7275a2bac | ||
|
|
7e8e6dbf34 | ||
|
|
27ff3935c5 | ||
|
|
4cd3d3158e | ||
|
|
e3b27613fd | ||
|
|
5f6a8b2905 | ||
|
|
6203aee170 | ||
|
|
ffb77daf31 | ||
|
|
494c91f9dd | ||
|
|
6f6405b90e | ||
|
|
da0e273d3d | ||
|
|
263b668249 | ||
|
|
019a347246 | ||
|
|
6aeda22ed6 | ||
|
|
ae9b7d4d45 | ||
|
|
323e4b4cdf | ||
|
|
e42c5f53e2 | ||
|
|
fea01dd313 | ||
|
|
9e402cb608 | ||
|
|
401ac1f954 | ||
|
|
6a2cb9ec77 | ||
|
|
b339f7c2fc | ||
|
|
d6f3cae141 | ||
|
|
44acdbd350 | ||
|
|
f630f6ef29 | ||
|
|
8808ce108b | ||
|
|
1c3bb0f6eb | ||
|
|
5cc990d259 | ||
|
|
621cfd8b43 | ||
|
|
fe2dde5a2c | ||
|
|
2adce20f76 | ||
|
|
b8a0e7adfe | ||
|
|
e4cf12ee1a | ||
|
|
943f387a23 |
-12
@@ -5,15 +5,3 @@ dist/
|
|||||||
*.pgf
|
*.pgf
|
||||||
*.tmp
|
*.tmp
|
||||||
*~
|
*~
|
||||||
.direnv
|
|
||||||
_grphp_*.dot
|
|
||||||
_grphp_*.png
|
|
||||||
_grpht_*.dot
|
|
||||||
_grpht_*.png
|
|
||||||
_gftmp
|
|
||||||
t.dot
|
|
||||||
t.dot.png
|
|
||||||
u.dot.png
|
|
||||||
t.dot.*.png
|
|
||||||
u.dot.*.png
|
|
||||||
u.dot
|
|
||||||
|
|||||||
Generated
-62
@@ -1,62 +0,0 @@
|
|||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1775036866,
|
|
||||||
"narHash": "sha256-ZojAnPuCdy657PbTq5V0Y+AHKhZAIwSIT2cb8UgAz/U=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "6201e203d09599479a3b3450ed24fa81537ebc4e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1750386251,
|
|
||||||
"narHash": "sha256-1ovgdmuDYVo5OUC5NzdF+V4zx2uT8RtsgZahxidBTyw=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "076e8c6678d8c54204abcb4b1b14c366835a58bb",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"sydpkgs": "sydpkgs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"sydpkgs": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1771299872,
|
|
||||||
"narHash": "sha256-+OPW1SKKHT7aqhyjs2O20gd1MXa7LyD+9/lwMUCVL7Y=",
|
|
||||||
"ref": "refs/heads/main",
|
|
||||||
"rev": "53bf019e26478666ab7f458f78e569b8b106cc1f",
|
|
||||||
"revCount": 36,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.deertopia.net/msyds/sydpkgs"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.deertopia.net/msyds/sydpkgs"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
{
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
# gf.url = "github:anka-213/cclaw-nix-stuff/nix-flakes";
|
|
||||||
sydpkgs.url = "git+https://git.deertopia.net/msyds/sydpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, sydpkgs, ... }@inputs:
|
|
||||||
let
|
|
||||||
supportedSystems = [
|
|
||||||
"aarch64-darwin"
|
|
||||||
"aarch64-linux"
|
|
||||||
"x86_64-darwin"
|
|
||||||
"x86_64-linux"
|
|
||||||
];
|
|
||||||
|
|
||||||
each-system = f: nixpkgs.lib.genAttrs supportedSystems (system: f rec {
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit system;
|
|
||||||
overlays = [
|
|
||||||
# (final: prev: { inherit (gf.packages.${system}) gf-core; })
|
|
||||||
sydpkgs.overlays.default
|
|
||||||
];
|
|
||||||
};
|
|
||||||
inherit (pkgs) lib;
|
|
||||||
inherit system;
|
|
||||||
});
|
|
||||||
in {
|
|
||||||
# Exposed as a REPL convenience.
|
|
||||||
_pkgs = each-system ({ pkgs, ... }: pkgs);
|
|
||||||
|
|
||||||
packages = each-system ({ pkgs, ... }: {
|
|
||||||
default = pkgs.callPackage ./package.nix {};
|
|
||||||
});
|
|
||||||
|
|
||||||
devShells = each-system ({ pkgs, system, ... }:
|
|
||||||
let
|
|
||||||
gf-lsp = import
|
|
||||||
(pkgs.fetchzip {
|
|
||||||
url = "https://github.com/anka-213/gf-lsp/archive/refs/tags/1.0.6.0.tar.gz";
|
|
||||||
hash = "sha256-UAI2qUslzLOWYjTirZJ0y4DZbkPZnVXTY0XtFO8+Rks=";
|
|
||||||
}) {inherit system;};
|
|
||||||
in {
|
|
||||||
default = pkgs.mkShell {
|
|
||||||
inputsFrom = [ self.packages.${system}.default ];
|
|
||||||
packages = [
|
|
||||||
gf-lsp.gf-lsp
|
|
||||||
pkgs.gftest
|
|
||||||
pkgs.graphviz
|
|
||||||
pkgs.imagemagick
|
|
||||||
];
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
|
||||||
+2
-2
@@ -7,7 +7,7 @@ Bul,Bulgarian,bulgarian,,,y,,,,,y,n
|
|||||||
Cat,Catalan,catalan,Romance,,y,,,,y,y,n
|
Cat,Catalan,catalan,Romance,,y,,,,y,y,n
|
||||||
Cgg,Rukiga,rukiga,,,y,y,n,n,y,y,n
|
Cgg,Rukiga,rukiga,,,y,y,n,n,y,y,n
|
||||||
Chi,Chinese (simplified),chinese,,,,,,,,y,y
|
Chi,Chinese (simplified),chinese,,,,,,,,y,y
|
||||||
Cze,Czech,czech,,,,,,n,,y,n
|
Cze,Czech,czech,,,,,,y,,y,n
|
||||||
Dan,Danish,danish,Scand,,y,,,,,y,n
|
Dan,Danish,danish,Scand,,y,,,,,y,n
|
||||||
Dut,Dutch,dutch,,,y,,,,,y,n
|
Dut,Dutch,dutch,,,y,,,,,y,n
|
||||||
Eng,English,english,,,y,,,,y,y,y
|
Eng,English,english,,,y,,,,y,y,y
|
||||||
@@ -55,7 +55,7 @@ Sco,Scots,scots,,,y,,,,,y,n
|
|||||||
Swa,Swahili,swahili,Bantu,,,y,n,n,n,n,n
|
Swa,Swahili,swahili,Bantu,,,y,n,n,n,n,n
|
||||||
Swe,Swedish,swedish,Scand,,y,,,,y,y,y
|
Swe,Swedish,swedish,Scand,,y,,,,y,y,y
|
||||||
Tam,Tamil,tamil,n,n,n,n,n,n,n,n,n
|
Tam,Tamil,tamil,n,n,n,n,n,n,n,n,n
|
||||||
Tel,Telugu,telugu,,,y,n,n,n,,n,n
|
Tel,Telugu,telugu,,,y,y,n,n,,n,n
|
||||||
Tha,Thai,thai,,to_thai,,,,,,y,n
|
Tha,Thai,thai,,to_thai,,,,,,y,n
|
||||||
Tur,Turkish,turkish,,,y,,,n,,n,n
|
Tur,Turkish,turkish,,,y,,,n,,n,n
|
||||||
Ukr,Ukrainian,ukrainian,,,,y,n,n,n,y,n
|
Ukr,Ukrainian,ukrainian,,,,y,n,n,n,y,n
|
||||||
|
|||||||
|
-23
@@ -1,23 +0,0 @@
|
|||||||
{ stdenv
|
|
||||||
, ghc
|
|
||||||
, gf-core
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "gf-rgl";
|
|
||||||
src = ./.;
|
|
||||||
buildInputs = [ ghc gf-core ];
|
|
||||||
# Keep references to source, so go to definition works
|
|
||||||
# postUnpack = ''
|
|
||||||
# rm -r source/src
|
|
||||||
# ln -s $src/src source/src
|
|
||||||
# '';
|
|
||||||
LC_ALL = "C.UTF-8";
|
|
||||||
buildPhase = ''
|
|
||||||
runghc Setup.hs build
|
|
||||||
'';
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/share/gf/lib
|
|
||||||
runghc Setup.hs copy --dest=$out/share/gf/lib
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -52,12 +52,6 @@ apiModules = ["Try","Symbolic","Syntax","Constructors","Combinators"]
|
|||||||
|
|
||||||
clone :: [String] -> String -> String -> String -> String -> (String, String) -> IO ()
|
clone :: [String] -> String -> String -> String -> String -> (String, String) -> IO ()
|
||||||
clone options fromdir todir from to (absname,absfx) = do
|
clone options fromdir todir from to (absname,absfx) = do
|
||||||
printf "clone options=%s\n\
|
|
||||||
\ fromdir=%s\n\
|
|
||||||
\ todir=%s\n\
|
|
||||||
\ from=%s\n\
|
|
||||||
\ to=%s\n" (show options) (show fromdir)
|
|
||||||
(show todir) (show from) (show to)
|
|
||||||
s <- readFile (fromdir ++ "/" ++ absname ++ from ++ absfx ++ ".gf")
|
s <- readFile (fromdir ++ "/" ++ absname ++ from ++ absfx ++ ".gf")
|
||||||
writeAndReportFile (todir ++ "/" ++ absname ++ to ++ absfx ++ ".gf") (commentIf options (replaceLang from to s))
|
writeAndReportFile (todir ++ "/" ++ absname ++ to ++ absfx ++ ".gf") (commentIf options (replaceLang from to s))
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ fun
|
|||||||
InflectionAdA : AdA -> Inflection ;
|
InflectionAdA : AdA -> Inflection ;
|
||||||
InflectionAdN : AdN -> Inflection ;
|
InflectionAdN : AdN -> Inflection ;
|
||||||
InflectionPrep : Prep -> Inflection ;
|
InflectionPrep : Prep -> Inflection ;
|
||||||
|
InflectionCl : Cl -> Inflection ;
|
||||||
|
|
||||||
fun
|
fun
|
||||||
NoDefinition : String -> Definition ;
|
NoDefinition : String -> Definition ;
|
||||||
|
|||||||
@@ -1,11 +1,26 @@
|
|||||||
concrete AdjectiveSqi of Adjective = CatSqi ** open ResSqi, Prelude in {
|
concrete AdjectiveSqi of Adjective = CatSqi ** open ResSqi, Prelude in {
|
||||||
|
|
||||||
|
oper
|
||||||
|
adjForm : A -> Species => Case => Gender => Number => Str = \a -> \\sp,c,g,n =>
|
||||||
|
case a.clit of {
|
||||||
|
True => link_clitic ! sp ! c ! g ! n ++ a.s ! c ! g ! n ;
|
||||||
|
False => a.s ! c ! g ! n
|
||||||
|
} ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
PositA a = {
|
PositA a = {
|
||||||
s = \\spec,c,g,n => case a.clit of {
|
s = adjForm a
|
||||||
True => link_clitic ! spec ! c ! g ! n ++ a.s ! c ! g ! n ;
|
} ;
|
||||||
False => a.s ! c ! g ! n
|
|
||||||
}
|
ComparA a np = {s=\\sp,c,g,n=>"më" ++ adjForm a ! sp ! c ! g ! n ++ "se" ++ np.s ! Ablat} ;
|
||||||
} ;
|
UseComparA a = {s=\\sp,c,g,n=>"më" ++ adjForm a ! sp ! c ! g ! n} ;
|
||||||
|
ComplA2 a np = {s=\\sp,c,g,n=>adjForm (lin A a) ! sp ! c ! g ! n ++ a.c2.s ++ np.s ! a.c2.c} ;
|
||||||
|
UseA2 a = PositA a ;
|
||||||
|
ReflA2 a = {s=\\sp,c,g,n=>adjForm (lin A a) ! sp ! c ! g ! n ++ a.c2.s ++ "vetveten"} ;
|
||||||
|
CAdvAP cadv ap np = {s=\\sp,c,g,n=>cadv.s ++ ap.s ! sp ! c ! g ! n ++ cadv.p ++ np.s ! Ablat} ;
|
||||||
|
AdjOrd ord = {s=\\_,c,g,n=>ord.s ! c ! g ! n} ;
|
||||||
|
SentAP ap sc = {s=\\sp,c,g,n=>ap.s ! sp ! c ! g ! n ++ "që" ++ sc.s} ;
|
||||||
|
AdAP ada ap = {s=\\sp,c,g,n=>ada.s ++ ap.s ! sp ! c ! g ! n} ;
|
||||||
|
AdvAP ap adv = {s=\\sp,c,g,n=>ap.s ! sp ! c ! g ! n ++ adv.s} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
concrete AdverbSqi of Adverb = CatSqi ** open Prelude, ResSqi in {
|
||||||
|
lin
|
||||||
|
PositAdvAdj a = {s=a.s ! Nom ! Masc ! Sg} ;
|
||||||
|
PrepNP p np = {s=p.s ++ np.s ! p.c} ;
|
||||||
|
ComparAdvAdj c a np = {s=c.s ++ a.s ! Nom ! Masc ! Sg ++ c.p ++ np.s ! Ablat} ;
|
||||||
|
ComparAdvAdjS c a s = {s=c.s ++ a.s ! Nom ! Masc ! Sg ++ c.p ++ s.s} ;
|
||||||
|
AdAdv a adv = {s=a.s ++ adv.s} ;
|
||||||
|
PositAdAAdj a = {s=a.s ! Nom ! Masc ! Sg} ;
|
||||||
|
SubjS subj s = {s=subj.s ++ s.s} ;
|
||||||
|
AdnCAdv c = {s=c.s ++ c.p} ;
|
||||||
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
concrete AllSqi of AllSqiAbs =
|
concrete AllSqi of AllSqiAbs =
|
||||||
LangSqi
|
LangSqi,
|
||||||
|
IrregSqi
|
||||||
**
|
**
|
||||||
{} ;
|
{} ;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
abstract AllSqiAbs =
|
abstract AllSqiAbs =
|
||||||
Lang
|
Lang,
|
||||||
|
IrregSqiAbs
|
||||||
** {}
|
** {}
|
||||||
|
|||||||
+77
-23
@@ -1,25 +1,79 @@
|
|||||||
concrete CatSqi of Cat = CommonX ** open ParamX, Prelude, ResSqi in {
|
concrete CatSqi of Cat = CommonX ** open ParamX,Prelude,ResSqi in {
|
||||||
|
lincat A = Adj ;
|
||||||
lincat N = Noun ;
|
linref A = \a -> case a.clit of {True=>"i"; False=>[]} ++ a.s ! Nom ! Masc ! Sg ;
|
||||||
lincat N2 = Noun ** {c2 : Compl} ;
|
lincat A2 = Adj ** {c2 : Compl} ;
|
||||||
lincat N3 = Noun ** {c2,c3 : Compl} ;
|
linref A2 = \a -> case a.clit of {True=>"i"; False=>[]} ++ a.s ! Nom ! Masc ! Sg ++ a.c2.s ;
|
||||||
lincat A = Adj ;
|
lincat V, VA, VV, VS, VQ = Verb ;
|
||||||
lincat A2 = Adj ** {c2 : Compl} ;
|
lincat V2 = Verb ** {c2 : Compl} ;
|
||||||
lincat V, VA, VV, VS, VQ = Verb ;
|
lincat V2S, V2Q, V3, V2A, V2V = Verb ** {c2,c3 : Compl} ;
|
||||||
lincat V2, V2S, V2Q = Verb ** {c2 : Compl} ;
|
lincat Prep = Compl ;
|
||||||
lincat V3, V2A, V2V = Verb ** {c2,c3 : Compl} ;
|
lincat ACard = {s : Str} ;
|
||||||
lincat Prep = Compl ;
|
lincat AP = {s : Species => Case => Gender => Number => Str} ;
|
||||||
|
lincat CN = Noun ;
|
||||||
lincat Numeral = {s : Str} ;
|
lincat Card = {s : Str} ;
|
||||||
lincat Digits = {s : Str; n : Number; tail : DTail} ;
|
lincat Cl = {s : ParamX.Tense => Anteriority => Polarity => Str} ;
|
||||||
lincat Decimal = {s : Str; n : Number; hasDot : Bool} ;
|
lincat ClSlash = {s : ParamX.Tense => Anteriority => Polarity => Str; c2 : Compl} ;
|
||||||
|
lincat Comp = {s : Agr => Str} ;
|
||||||
lincat AP = {s: Species => Case => Gender => Number => Str} ;
|
lincat Conj = {s : Str} ;
|
||||||
lincat CN = Noun ;
|
lincat DAP = {s : Str; n : Number} ;
|
||||||
lincat Num = {s : Str; n : Number} ;
|
lincat Decimal = {s : Str; n : Number; hasDot : Bool} ;
|
||||||
lincat Quant = {s : Case => Gender => Number => Str; spec : Species} ;
|
lincat Det = {
|
||||||
lincat Det = {s : Case => Gender => Str; spec : Species; n : Number} ;
|
s : Case => Gender => Str;
|
||||||
lincat NP = {s: Case => Str; a : Agr} ;
|
post : Species => Case => Gender => Str;
|
||||||
lincat Pron = {s: Case => Str; acc_clit, dat_clit : Str; a : Agr} ;
|
sp : Species;
|
||||||
|
n : Number
|
||||||
|
} ;
|
||||||
|
lincat Digits = {s : Str; n : Number; tail : DTail} ;
|
||||||
|
lincat GN = {s : Str} ;
|
||||||
|
lincat IComp = {s : Str} ;
|
||||||
|
lincat IDet = {s : Gender => Str; n : Number} ;
|
||||||
|
lincat IP = {s : Str; a : Agr} ;
|
||||||
|
lincat IQuant = {s : Gender => Str} ;
|
||||||
|
lincat Imp = {s : Polarity => Number => Str} ;
|
||||||
|
lincat LN = {s : Str} ;
|
||||||
|
lincat N = Noun ;
|
||||||
|
lincat N2 = {s : Species => Case => Number => Str; g : Gender;
|
||||||
|
c2 : Compl} ;
|
||||||
|
lincat N3 = {s : Species => Case => Number => Str; g : Gender;
|
||||||
|
c2 : Compl; c3 : Compl} ;
|
||||||
|
lincat NP = {s : Case => Str; a : Agr} ;
|
||||||
|
lincat Num = {s : Str; n : Number} ;
|
||||||
|
lincat Numeral = {s : Str} ;
|
||||||
|
lincat Ord = {s : Case => Gender => Number => Str} ;
|
||||||
|
lincat PN = {s : Str} ;
|
||||||
|
lincat Predet = {s : Str} ;
|
||||||
|
lincat Pron = {s: Case => Str; acc_clit, dat_clit : Str; a : Agr} ;
|
||||||
|
lincat QCl = {s : ParamX.Tense => Anteriority => Polarity => Str} ;
|
||||||
|
lincat QS = {s : Str} ;
|
||||||
|
lincat Quant = {
|
||||||
|
s : Case => Gender => Number => Str;
|
||||||
|
sp : Species;
|
||||||
|
isPoss : Bool
|
||||||
|
} ;
|
||||||
|
lincat RCl = {s : Agr => ParamX.Tense => Anteriority => Polarity => Str} ;
|
||||||
|
lincat RP = {s : Case => GenNum => Str} ;
|
||||||
|
lincat RS = {s : Agr => Str} ;
|
||||||
|
lincat S = {s : Str} ;
|
||||||
|
lincat SN = {s : Str} ;
|
||||||
|
lincat SSlash = {s : Str; c2 : Compl} ;
|
||||||
|
lincat Subj = {s : Str} ;
|
||||||
|
lincat VP = {indicative : Tense => Number => Person => Gender => Case => Str;
|
||||||
|
subjunctive : Number => Person => Gender => Case => Str;
|
||||||
|
imperative : Number => Case => Str;
|
||||||
|
participle : Agr => Case => Str;
|
||||||
|
pres_optative : Number => Person => Case => Str;
|
||||||
|
perf_optative : Number => Person => Case => Str;
|
||||||
|
pres_admirative : Number => Person => Case => Str;
|
||||||
|
imperf_admirative : Number => Person => Case => Str;
|
||||||
|
vtype : VType} ;
|
||||||
|
|
||||||
|
lincat VPSlash = {indicative : Tense => Number => Person => Str;
|
||||||
|
subjunctive : Number => Person => Str;
|
||||||
|
imperative : Number => Str; participle : Str;
|
||||||
|
pres_optative : Number => Person => Str;
|
||||||
|
perf_optative : Number => Person => Str;
|
||||||
|
pres_admirative : Number => Person => Str;
|
||||||
|
imperf_admirative : Number => Person => Str;
|
||||||
|
vtype : VType;
|
||||||
|
c2 : Compl} ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
concrete ConjunctionSqi of Conjunction = CatSqi ** open ResSqi, Prelude, ParamX in {
|
||||||
|
lincat
|
||||||
|
[S] = {first,last : Str} ;
|
||||||
|
[RS] = {first,last : Agr => Str} ;
|
||||||
|
[Adv] = {first,last : Str} ;
|
||||||
|
[AdV] = {first,last : Str} ;
|
||||||
|
[IAdv] = {first,last : Str} ;
|
||||||
|
[NP] = {first,last : Case => Str; a : Agr} ;
|
||||||
|
[AP] = {first,last : Species=>Case=>Gender=>Number=>Str} ;
|
||||||
|
[CN] = {first,last : Species=>Case=>Number=>Str; g:Gender} ;
|
||||||
|
[DAP] = {first,last : Str; n:Number} ;
|
||||||
|
lin
|
||||||
|
BaseS x y={first=x.s;last=y.s}; ConsS x xs={first=x.s++","++xs.first;last=xs.last}; ConjS c xs={s=xs.first++c.s++xs.last};
|
||||||
|
BaseAdv x y={first=x.s;last=y.s}; ConsAdv x xs={first=x.s++","++xs.first;last=xs.last}; ConjAdv c xs={s=xs.first++c.s++xs.last};
|
||||||
|
BaseAdV x y={first=x.s;last=y.s}; ConsAdV x xs={first=x.s++","++xs.first;last=xs.last}; ConjAdV c xs={s=xs.first++c.s++xs.last};
|
||||||
|
BaseIAdv x y={first=x.s;last=y.s}; ConsIAdv x xs={first=x.s++","++xs.first;last=xs.last}; ConjIAdv c xs={s=xs.first++c.s++xs.last};
|
||||||
|
BaseNP x y={first=x.s;last=y.s;a={gn=GPl;p=P3}};
|
||||||
|
ConsNP x xs={first=\\k=>x.s!k++","++xs.first!k;last=xs.last;a={gn=GPl;p=P3}};
|
||||||
|
ConjNP c xs={s=\\k=>xs.first!k++c.s++xs.last!k;a=xs.a};
|
||||||
|
BaseAP x y={first=x.s;last=y.s}; ConsAP x xs={first=\\sp,k,g,n=>x.s!sp!k!g!n++","++xs.first!sp!k!g!n;last=xs.last};
|
||||||
|
ConjAP c xs={s=\\sp,k,g,n=>xs.first!sp!k!g!n++c.s++xs.last!sp!k!g!n};
|
||||||
|
BaseRS x y={first=x.s;last=y.s}; ConsRS x xs={first=\\a=>x.s!a++","++xs.first!a;last=xs.last}; ConjRS c xs={s=\\a=>xs.first!a++c.s++xs.last!a};
|
||||||
|
BaseCN x y={first=x.s;last=y.s;g=x.g}; ConsCN x xs={first=\\sp,k,n=>x.s!sp!k!n++","++xs.first!sp!k!n;last=xs.last;g=xs.g};
|
||||||
|
ConjCN c xs={s=\\sp,k,n=>xs.first!sp!k!n++c.s++xs.last!sp!k!n;g=xs.g};
|
||||||
|
BaseDAP x y={first=x.s;last=y.s;n=Pl}; ConsDAP x xs={first=x.s++","++xs.first;last=xs.last;n=Pl};
|
||||||
|
ConjDet c xs={s=\\_,_=>xs.first++c.s++xs.last;post=\\_,_,_=>[];n=xs.n;sp=Def};
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
concrete ConstructionSqi of Construction = CatSqi **
|
||||||
|
open Prelude, ParamX, ResSqi, ParadigmsSqi, GrammarSqi in {
|
||||||
|
|
||||||
|
lincat
|
||||||
|
Timeunit = N ;
|
||||||
|
Hour = {s:Str} ;
|
||||||
|
Weekday = N ;
|
||||||
|
Month = N ;
|
||||||
|
Monthday = {s:Str} ;
|
||||||
|
Year = {s:Str} ;
|
||||||
|
Language = N ;
|
||||||
|
|
||||||
|
oper
|
||||||
|
adjVP : A -> VP = \a -> UseComp (CompAP (PositA a)) ;
|
||||||
|
appendVP : VP -> Str -> VP = \v,s -> v ** {
|
||||||
|
indicative=\\t,n,p,g,c=>v.indicative!t!n!p!g!c++s;
|
||||||
|
subjunctive=\\n,p,g,c=>v.subjunctive!n!p!g!c++s;
|
||||||
|
imperative=\\n,c=>v.imperative!n!c++s;
|
||||||
|
participle=\\a,c=>v.participle!a!c++s
|
||||||
|
} ;
|
||||||
|
hour : Str -> Hour = \s -> lin Hour {s=s} ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
hungry_VP=adjVP (mkA "uritur"); thirsty_VP=adjVP (mkA "etur");
|
||||||
|
tired_VP=adjVP (mkA "lodhur"); scared_VP=adjVP (mkA "frikësuar");
|
||||||
|
ill_VP=adjVP (mkA "sëmurë"); ready_VP=adjVP (mkA "gatshëm");
|
||||||
|
has_age_VP c=appendVP (UseV (irregV "kam" "ke" "ka" "kemi" "keni" "kanë" "ki" "kini" "pasur")) (c.s++"vjeç");
|
||||||
|
n_units_AP c unit a={s=\\sp,k,g,n=>c.s++unit.s!Indef!Nom!Pl++(PositA a).s!sp!k!g!n};
|
||||||
|
n_units_of_NP c unit np={s=\\_=>c.s++unit.s!Indef!Nom!Pl++"nga"++np.s!Ablat;a={gn=GPl;p=P3}};
|
||||||
|
n_unit_CN c unit cn={s=\\sp,k,n=>c.s++unit.s!Indef!Nom!Sg++cn.s!sp!k!n;g=cn.g};
|
||||||
|
bottle_of_CN np={s=\\sp,k,n=>(mkN "shishe").s!sp!k!n++"me"++np.s!Acc;g=Fem};
|
||||||
|
cup_of_CN np={s=\\sp,k,n=>(mkN "filxhan").s!sp!k!n++"me"++np.s!Acc;g=Masc};
|
||||||
|
glass_of_CN np={s=\\sp,k,n=>(mkN "gotë").s!sp!k!n++"me"++np.s!Acc;g=Fem};
|
||||||
|
|
||||||
|
timeunitAdv c u={s="për"++c.s++u.s!Indef!Acc!Pl};
|
||||||
|
timeunitRange a b u={s="nga"++a.s++"deri në"++b.s++u.s!Indef!Acc!Pl};
|
||||||
|
oneHour=hour "1"; twoHour=hour "2"; threeHour=hour "3"; fourHour=hour "4";
|
||||||
|
fiveHour=hour "5"; sixHour=hour "6"; sevenHour=hour "7"; eightHour=hour "8";
|
||||||
|
nineHour=hour "9"; tenHour=hour "10"; elevenHour=hour "11"; twelveHour=hour "12";
|
||||||
|
thirteenHour=hour "13"; fourteenHour=hour "14"; fifteenHour=hour "15"; sixteenHour=hour "16";
|
||||||
|
seventeenHour=hour "17"; eighteenHour=hour "18"; nineteenHour=hour "19"; twentyHour=hour "20";
|
||||||
|
twentyOneHour=hour "21"; twentyTwoHour=hour "22"; twentyThreeHour=hour "23"; twentyFourHour=hour "24";
|
||||||
|
timeHour h={s="në orën"++h.s}; timeHourMinute h m={s="në orën"++h.s++SOFT_BIND++":"++SOFT_BIND++m.s};
|
||||||
|
|
||||||
|
weekdayPunctualAdv w={s="të"++w.s!Def!Acc!Sg};
|
||||||
|
weekdayHabitualAdv w={s="të"++w.s!Def!Acc!Pl};
|
||||||
|
weekdayLastAdv w={s="të"++w.s!Def!Acc!Sg++"e kaluar"};
|
||||||
|
weekdayNextAdv w={s="të"++w.s!Def!Acc!Sg++"e ardhshme"};
|
||||||
|
monthAdv m={s="në"++m.s!Indef!Acc!Sg}; yearAdv y={s="në"++y.s};
|
||||||
|
dayMonthAdv d m={s="më"++d.s++m.s!Indef!Acc!Sg};
|
||||||
|
monthYearAdv m y={s="në"++m.s!Indef!Acc!Sg++y.s};
|
||||||
|
dayMonthYearAdv d m y={s="më"++d.s++m.s!Indef!Acc!Sg++y.s};
|
||||||
|
intYear i={s=i.s}; intMonthday i={s=i.s};
|
||||||
|
weekdayN w=w; monthN m=m;
|
||||||
|
weekdayPN w=mkPN (w.s!Indef!Nom!Sg); monthPN m=mkPN (m.s!Indef!Nom!Sg);
|
||||||
|
|
||||||
|
second_Timeunit=mkN "sekondë"; minute_Timeunit=mkN "minutë"; hour_Timeunit=mkN "orë";
|
||||||
|
day_Timeunit=mkN "ditë"; week_Timeunit=mkN "javë"; month_Timeunit=mkN "muaj"; year_Timeunit=mkN "vit";
|
||||||
|
monday_Weekday=mkN "e hënë"; tuesday_Weekday=mkN "e martë"; wednesday_Weekday=mkN "e mërkurë";
|
||||||
|
thursday_Weekday=mkN "e enjte"; friday_Weekday=mkN "e premte"; saturday_Weekday=mkN "e shtunë"; sunday_Weekday=mkN "e diel";
|
||||||
|
january_Month=mkN "janar"; february_Month=mkN "shkurt"; march_Month=mkN "mars"; april_Month=mkN "prill";
|
||||||
|
may_Month=mkN "maj"; june_Month=mkN "qershor"; july_Month=mkN "korrik"; august_Month=mkN "gusht";
|
||||||
|
september_Month=mkN "shtator"; october_Month=mkN "tetor"; november_Month=mkN "nëntor"; december_Month=mkN "dhjetor";
|
||||||
|
}
|
||||||
@@ -51,32 +51,32 @@ lin InflectionV = \x -> {
|
|||||||
t="fl" ;
|
t="fl" ;
|
||||||
s1=heading1 "Folje" ;
|
s1=heading1 "Folje" ;
|
||||||
s2=frameTable (
|
s2=frameTable (
|
||||||
tr (intagAttr "th" "rowspan=\"24\"" "Indicative" ++ intagAttr "th" "rowspan=\"6\"" "Pres" ++ intagAttr "th" "rowspan=\"3\"" "Sg" ++ th "P1" ++ td (x.Indicative ! Pres ! Sg ! P1)) ++
|
tr (intagAttr "th" "rowspan=\"24\"" "Indicative" ++ intagAttr "th" "rowspan=\"6\"" "Pres" ++ intagAttr "th" "rowspan=\"3\"" "Sg" ++ th "P1" ++ td (x.indicative ! Pres ! Sg ! P1)) ++
|
||||||
tr (th "P2" ++ td (x.Indicative ! Pres ! Sg ! P2)) ++
|
tr (th "P2" ++ td (x.indicative ! Pres ! Sg ! P2)) ++
|
||||||
tr (th "P3" ++ td (x.Indicative ! Pres ! Sg ! P3)) ++
|
tr (th "P3" ++ td (x.indicative ! Pres ! Sg ! P3)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"3\"" "Pl" ++ th "P1" ++ td (x.Indicative ! Pres ! Pl ! P1)) ++
|
tr (intagAttr "th" "rowspan=\"3\"" "Pl" ++ th "P1" ++ td (x.indicative ! Pres ! Pl ! P1)) ++
|
||||||
tr (th "P2" ++ td (x.Indicative ! Pres ! Pl ! P2)) ++
|
tr (th "P2" ++ td (x.indicative ! Pres ! Pl ! P2)) ++
|
||||||
tr (th "P3" ++ td (x.Indicative ! Pres ! Pl ! P3)) ++
|
tr (th "P3" ++ td (x.indicative ! Pres ! Pl ! P3)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"6\"" "Past" ++ intagAttr "th" "rowspan=\"3\"" "Sg" ++ th "P1" ++ td (x.Indicative ! Past ! Sg ! P1)) ++
|
tr (intagAttr "th" "rowspan=\"6\"" "Past" ++ intagAttr "th" "rowspan=\"3\"" "Sg" ++ th "P1" ++ td (x.indicative ! Past ! Sg ! P1)) ++
|
||||||
tr (th "P2" ++ td (x.Indicative ! Past ! Sg ! P2)) ++
|
tr (th "P2" ++ td (x.indicative ! Past ! Sg ! P2)) ++
|
||||||
tr (th "P3" ++ td (x.Indicative ! Past ! Sg ! P3)) ++
|
tr (th "P3" ++ td (x.indicative ! Past ! Sg ! P3)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"3\"" "Pl" ++ th "P1" ++ td (x.Indicative ! Past ! Pl ! P1)) ++
|
tr (intagAttr "th" "rowspan=\"3\"" "Pl" ++ th "P1" ++ td (x.indicative ! Past ! Pl ! P1)) ++
|
||||||
tr (th "P2" ++ td (x.Indicative ! Past ! Pl ! P2)) ++
|
tr (th "P2" ++ td (x.indicative ! Past ! Pl ! P2)) ++
|
||||||
tr (th "P3" ++ td (x.Indicative ! Past ! Pl ! P3)) ++
|
tr (th "P3" ++ td (x.indicative ! Past ! Pl ! P3)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"6\"" "Aorist" ++ intagAttr "th" "rowspan=\"3\"" "Sg" ++ th "P1" ++ td (x.Indicative ! Aorist ! Sg ! P1)) ++
|
tr (intagAttr "th" "rowspan=\"6\"" "Aorist" ++ intagAttr "th" "rowspan=\"3\"" "Sg" ++ th "P1" ++ td (x.indicative ! Aorist ! Sg ! P1)) ++
|
||||||
tr (th "P2" ++ td (x.Indicative ! Aorist ! Sg ! P2)) ++
|
tr (th "P2" ++ td (x.indicative ! Aorist ! Sg ! P2)) ++
|
||||||
tr (th "P3" ++ td (x.Indicative ! Aorist ! Sg ! P3)) ++
|
tr (th "P3" ++ td (x.indicative ! Aorist ! Sg ! P3)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"3\"" "Pl" ++ th "P1" ++ td (x.Indicative ! Aorist ! Pl ! P1)) ++
|
tr (intagAttr "th" "rowspan=\"3\"" "Pl" ++ th "P1" ++ td (x.indicative ! Aorist ! Pl ! P1)) ++
|
||||||
tr (th "P2" ++ td (x.Indicative ! Aorist ! Pl ! P2)) ++
|
tr (th "P2" ++ td (x.indicative ! Aorist ! Pl ! P2)) ++
|
||||||
tr (th "P3" ++ td (x.Indicative ! Aorist ! Pl ! P3)) ++
|
tr (th "P3" ++ td (x.indicative ! Aorist ! Pl ! P3)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"6\"" "Imperfect" ++ intagAttr "th" "rowspan=\"3\"" "Sg" ++ th "P1" ++ td (x.Indicative ! Imperfect ! Sg ! P1)) ++
|
tr (intagAttr "th" "rowspan=\"6\"" "Imperfect" ++ intagAttr "th" "rowspan=\"3\"" "Sg" ++ th "P1" ++ td (x.indicative ! Imperfect ! Sg ! P1)) ++
|
||||||
tr (th "P2" ++ td (x.Indicative ! Imperfect ! Sg ! P2)) ++
|
tr (th "P2" ++ td (x.indicative ! Imperfect ! Sg ! P2)) ++
|
||||||
tr (th "P3" ++ td (x.Indicative ! Imperfect ! Sg ! P3)) ++
|
tr (th "P3" ++ td (x.indicative ! Imperfect ! Sg ! P3)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"3\"" "Pl" ++ th "P1" ++ td (x.Indicative ! Imperfect ! Pl ! P1)) ++
|
tr (intagAttr "th" "rowspan=\"3\"" "Pl" ++ th "P1" ++ td (x.indicative ! Imperfect ! Pl ! P1)) ++
|
||||||
tr (th "P2" ++ td (x.Indicative ! Imperfect ! Pl ! P2)) ++
|
tr (th "P2" ++ td (x.indicative ! Imperfect ! Pl ! P2)) ++
|
||||||
tr (th "P3" ++ td (x.Indicative ! Imperfect ! Pl ! P3)) ++
|
tr (th "P3" ++ td (x.indicative ! Imperfect ! Pl ! P3)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"2\"" "Imperative" ++ th "Sg" ++ td (x.Imperative ! Sg)) ++
|
tr (intagAttr "th" "rowspan=\"2\"" "Imperative" ++ th "Sg" ++ td (x.imperative ! Sg)) ++
|
||||||
tr (th "Pl" ++ td (x.Imperative ! Pl)) ++
|
tr (th "Pl" ++ td (x.imperative ! Pl)) ++
|
||||||
tr (th "participle" ++ td (x.participle)) ++
|
tr (th "participle" ++ td (x.participle)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"6\"" "pres_optative" ++ intagAttr "th" "rowspan=\"3\"" "Sg" ++ th "P1" ++ td (x.pres_optative ! Sg ! P1)) ++
|
tr (intagAttr "th" "rowspan=\"6\"" "pres_optative" ++ intagAttr "th" "rowspan=\"3\"" "Sg" ++ th "P1" ++ td (x.pres_optative ! Sg ! P1)) ++
|
||||||
tr (th "P2" ++ td (x.pres_optative ! Sg ! P2)) ++
|
tr (th "P2" ++ td (x.pres_optative ! Sg ! P2)) ++
|
||||||
|
|||||||
@@ -0,0 +1,135 @@
|
|||||||
|
concrete ExtendSqi of Extend = CatSqi **
|
||||||
|
open Prelude, ParamX, ResSqi, GrammarSqi, (I=IrregSqi) in {
|
||||||
|
|
||||||
|
lincat
|
||||||
|
RNP = {s : Agr => Case => Str; isPron : Bool} ;
|
||||||
|
RNPList = {first,last : Agr => Case => Str} ;
|
||||||
|
VPS = {s : Agr => Str} ;
|
||||||
|
VPI = {s : Agr => Str} ;
|
||||||
|
[VPS] = {first,last : Agr => Str} ;
|
||||||
|
[VPI] = {first,last : Agr => Str} ;
|
||||||
|
[Comp] = {first,last : Agr => Str} ;
|
||||||
|
[Imp] = {first,last : Polarity => Number => Str} ;
|
||||||
|
|
||||||
|
oper
|
||||||
|
baseVP : Verb -> VP = \v -> lin VP {
|
||||||
|
indicative = \\t,n,p,_,_ => v.indicative ! t ! n ! p ;
|
||||||
|
subjunctive = \\n,p,_,_ => subjunctiveForm v.vtype
|
||||||
|
(v.indicative ! ResSqi.Pres ! Sg ! P1)
|
||||||
|
(v.indicative ! ResSqi.Pres ! n ! p) n p ;
|
||||||
|
imperative = \\n,_ => v.imperative ! n ;
|
||||||
|
participle = \\_,_ => v.participle ;
|
||||||
|
pres_optative = \\n,p,_ => v.pres_optative ! n ! p ;
|
||||||
|
perf_optative = \\n,p,_ => v.perf_optative ! n ! p ;
|
||||||
|
pres_admirative = \\n,p,_ => v.pres_admirative ! n ! p ;
|
||||||
|
imperf_admirative = \\n,p,_ => v.imperf_admirative ! n ! p ;
|
||||||
|
vtype = v.vtype
|
||||||
|
} ;
|
||||||
|
|
||||||
|
extAddVP : VP -> (Agr => Str) -> VP = \v,x -> v ** {
|
||||||
|
indicative = \\t,n,p,g,c => v.indicative ! t ! n ! p ! g ! c ++
|
||||||
|
x ! {gn=genNum g n; p=p} ;
|
||||||
|
subjunctive = \\n,p,g,c => v.subjunctive ! n ! p ! g ! c ++
|
||||||
|
x ! {gn=genNum g n; p=p} ;
|
||||||
|
imperative = \\n,c => v.imperative ! n ! c ++
|
||||||
|
x ! {gn=case n of {Sg=>GSg Masc; Pl=>GPl}; p=P2} ;
|
||||||
|
participle = \\a,c => v.participle ! a ! c ++ x ! a
|
||||||
|
} ;
|
||||||
|
|
||||||
|
baseSlashVP : VPSlash -> VP = \v -> lin VP {
|
||||||
|
indicative = \\t,n,p,_,_ => v.indicative ! t ! n ! p ;
|
||||||
|
subjunctive = \\n,p,_,_ => v.subjunctive ! n ! p ;
|
||||||
|
imperative = \\n,_ => v.imperative ! n ;
|
||||||
|
participle = \\_,_ => v.participle ;
|
||||||
|
pres_optative = \\n,p,_ => v.pres_optative ! n ! p ;
|
||||||
|
perf_optative = \\n,p,_ => v.perf_optative ! n ! p ;
|
||||||
|
pres_admirative = \\n,p,_ => v.pres_admirative ! n ! p ;
|
||||||
|
imperf_admirative = \\n,p,_ => v.imperf_admirative ! n ! p ;
|
||||||
|
vtype = v.vtype
|
||||||
|
} ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
GenModNP n np cn = {
|
||||||
|
s = \\c => cn.s ! Def ! c ! n.n ++
|
||||||
|
link_clitic ! Def ! c ! cn.g ! n.n ++ np.s ! Ablat ;
|
||||||
|
a = agrgP3 cn.g n.n
|
||||||
|
} ;
|
||||||
|
|
||||||
|
EmptyRelSlash cl = {s=\\_,t,a,p=>"që"++cl.s!t!a!p++cl.c2.s} ;
|
||||||
|
|
||||||
|
ReflPron = {
|
||||||
|
s = \\a,c => case <agrNumber a,c> of {
|
||||||
|
<Sg,Acc> => "veten" ; <Pl,Acc> => "veten" ; _ => "vetes"
|
||||||
|
} ;
|
||||||
|
isPron = True
|
||||||
|
} ;
|
||||||
|
ReflPoss n cn = {s=\\_,c=>cn.s!Def!c!n.n; isPron=False} ;
|
||||||
|
PredetRNP p r = r ** {s=\\a,c=>p.s++r.s!a!c} ;
|
||||||
|
AdvRNP np p r = {s=\\a,c=>np.s!c++p.s++r.s!a!p.c; isPron=False} ;
|
||||||
|
AdvRVP vp p r = extAddVP vp (\\a=>p.s++r.s!a!p.c) ;
|
||||||
|
AdvRAP ap p r = {
|
||||||
|
s=\\sp,c,g,n=>ap.s!sp!c!g!n++p.s++r.s!(agrgP3 g n)!p.c
|
||||||
|
} ;
|
||||||
|
PossPronRNP p n cn r = {
|
||||||
|
s=\\c=>cn.s!Def!c!n.n++link_clitic!Def!c!cn.g!n.n++r.s!p.a!Ablat;
|
||||||
|
a=agrgP3 cn.g n.n
|
||||||
|
} ;
|
||||||
|
|
||||||
|
CompoundN a b = {
|
||||||
|
s=\\sp,c,n=>(UseN b).s!sp!c!n++(UseN a).s!Indef!Ablat!Sg;
|
||||||
|
g=b.g
|
||||||
|
} ;
|
||||||
|
CompoundAP n a = {
|
||||||
|
s=\\sp,c,g,num=>(UseN n).s!Indef!Nom!Sg++(PositA a).s!sp!c!g!num
|
||||||
|
} ;
|
||||||
|
GerundCN vp = {s=\\_,_,_=>vp.participle!{gn=GSg Masc;p=P3}!Nom; g=Masc} ;
|
||||||
|
GerundNP vp = {s=\\_=>vp.participle!{gn=GSg Masc;p=P3}!Nom; a={gn=GSg Masc;p=P3}} ;
|
||||||
|
GerundAdv vp = {s="duke"++vp.participle!{gn=GSg Masc;p=P3}!Nom} ;
|
||||||
|
WithoutVP vp = {s="pa"++vp.participle!{gn=GSg Masc;p=P3}!Nom} ;
|
||||||
|
ByVP vp = {s="duke"++vp.participle!{gn=GSg Masc;p=P3}!Nom} ;
|
||||||
|
ApposNP a b = a ** {s=\\c=>a.s!c++SOFT_BIND++","++b.s!c} ;
|
||||||
|
PositAdVAdj a = {s=a.s!Nom!Masc!Sg} ;
|
||||||
|
UttVPShort vp = {s=vp.imperative!Sg!Nom} ;
|
||||||
|
ComplSlashPartLast sl np = ComplSlash sl np ;
|
||||||
|
|
||||||
|
PresPartAP vp = {s=\\_,_,_,_=>"duke"++vp.participle!{gn=GSg Masc;p=P3}!Nom} ;
|
||||||
|
PastPartAP sl = {s=\\_,_,_,_=>sl.participle} ;
|
||||||
|
PastPartAgentAP sl np = {
|
||||||
|
s=\\_,_,_,_=>sl.participle++"nga"++np.s!Nom
|
||||||
|
} ;
|
||||||
|
PassVPSlash sl = extAddVP (baseVP I.jam_V) (\\_=>sl.participle) ;
|
||||||
|
PassAgentVPSlash sl np =
|
||||||
|
extAddVP (baseVP I.jam_V) (\\_=>sl.participle++"nga"++np.s!Nom) ;
|
||||||
|
ProgrVPSlash sl = sl ;
|
||||||
|
ComplBareVS v s = extAddVP (baseVP v) (\\_=>s.s) ;
|
||||||
|
|
||||||
|
MkVPS t p vp = {
|
||||||
|
s=\\a=>(PredVP {s=\\_=>[];a=a} vp).s!t.t!t.a!p.p
|
||||||
|
} ;
|
||||||
|
BaseVPS x y = {first=x.s; last=y.s} ;
|
||||||
|
ConsVPS x xs = {first=\\a=>x.s!a++","++xs.first!a; last=xs.last} ;
|
||||||
|
ConjVPS c xs = {s=\\a=>xs.first!a++c.s++xs.last!a} ;
|
||||||
|
PredVPS np v = {s=v.s!np.a} ;
|
||||||
|
|
||||||
|
MkVPI vp = {s=\\a=>"të"++vp.subjunctive ! agrNumber a ! a.p ! agrGender a ! Nom} ;
|
||||||
|
BaseVPI x y = {first=x.s; last=y.s} ;
|
||||||
|
ConsVPI x xs = {first=\\a=>x.s!a++","++xs.first!a; last=xs.last} ;
|
||||||
|
ConjVPI c xs = {s=\\a=>xs.first!a++c.s++xs.last!a} ;
|
||||||
|
ComplVPIVV v x = extAddVP (baseVP v) (\\a=>x.s!a) ;
|
||||||
|
|
||||||
|
BaseComp x y = {first=x.s; last=y.s} ;
|
||||||
|
ConsComp x xs = {first=\\a=>x.s!a++","++xs.first!a; last=xs.last} ;
|
||||||
|
ConjComp c xs = {s=\\a=>xs.first!a++c.s++xs.last!a} ;
|
||||||
|
|
||||||
|
BaseImp x y = {first=x.s; last=y.s} ;
|
||||||
|
ConsImp x xs = {
|
||||||
|
first=\\p,n=>x.s!p!n++","++xs.first!p!n;
|
||||||
|
last=xs.last
|
||||||
|
} ;
|
||||||
|
ConjImp c xs = {s=\\p,n=>xs.first!p!n++c.s++xs.last!p!n} ;
|
||||||
|
|
||||||
|
UseDAP d = {s=\\_=>d.s; a=agrgP3 Masc d.n} ;
|
||||||
|
UseDAPMasc = UseDAP ;
|
||||||
|
UseDAPFem d = {s=\\_=>d.s; a=agrgP3 Fem d.n} ;
|
||||||
|
TPastSimple = {s=[]; t=ParamX.Past} ;
|
||||||
|
}
|
||||||
@@ -1,8 +1,16 @@
|
|||||||
concrete GrammarSqi of Grammar =
|
concrete GrammarSqi of Grammar =
|
||||||
NounSqi,
|
NounSqi,
|
||||||
|
VerbSqi,
|
||||||
AdjectiveSqi,
|
AdjectiveSqi,
|
||||||
|
AdverbSqi,
|
||||||
|
SentenceSqi,
|
||||||
|
QuestionSqi,
|
||||||
|
RelativeSqi,
|
||||||
|
ConjunctionSqi,
|
||||||
NumeralSqi,
|
NumeralSqi,
|
||||||
PhraseSqi,
|
PhraseSqi,
|
||||||
|
IdiomSqi,
|
||||||
|
NamesSqi,
|
||||||
StructuralSqi
|
StructuralSqi
|
||||||
** {
|
** {
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
concrete IdiomSqi of Idiom = CatSqi ** open Prelude, ParamX, ResSqi in {
|
||||||
|
lin
|
||||||
|
ImpersCl vp = {s=\\t,a,p=>negation p++futureParticle t++vp.indicative!sqiTense t!Sg!P3!Masc!Nom} ;
|
||||||
|
GenericCl vp = {s=\\t,a,p=>"njeriu"++negation p++futureParticle t++vp.indicative!sqiTense t!Sg!P3!Masc!Nom} ;
|
||||||
|
CleftNP np rs = {s=\\_,_,_=>np.s!Nom++rs.s!np.a} ;
|
||||||
|
CleftAdv adv s = {s=\\_,_,_=>adv.s++s.s} ;
|
||||||
|
ExistNP np = {s=\\t,_,p=>negation p++case t of {ParamX.Past=>"pati";_=>"ka"}++np.s!Acc} ;
|
||||||
|
ExistIP ip = {s=\\_,_,p=>negation p++"ka"++ip.s} ;
|
||||||
|
ExistNPAdv np adv = {s=\\t,a,p=>(ExistNP np).s!t!a!p++adv.s} ;
|
||||||
|
ExistIPAdv ip adv = {s=\\t,a,p=>(ExistIP ip).s!t!a!p++adv.s} ;
|
||||||
|
ProgrVP vp = vp ;
|
||||||
|
ImpPl1 vp = {s="le të"++vp.subjunctive!Pl!P1!Masc!Nom} ;
|
||||||
|
ImpP3 np vp = {s="le"++np.s!Nom++"të"++vp.subjunctive!agrNumber np.a!np.a.p!agrGender np.a!Nom} ;
|
||||||
|
SelfAdvVP vp = vp ** {
|
||||||
|
indicative=\\t,n,p,g,c=>vp.indicative!t!n!p!g!c++"vetë";
|
||||||
|
subjunctive=\\n,p,g,c=>vp.subjunctive!n!p!g!c++"vetë"
|
||||||
|
} ;
|
||||||
|
SelfAdVVP vp = vp ** {
|
||||||
|
indicative=\\t,n,p,g,c=>"vetë"++vp.indicative!t!n!p!g!c;
|
||||||
|
subjunctive=\\n,p,g,c=>"vetë"++vp.subjunctive!n!p!g!c
|
||||||
|
} ;
|
||||||
|
SelfNP np = np ** {s=\\c=>np.s!c++"vetë"} ;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
concrete IrregSqi of IrregSqiAbs = CatSqi ** open ParadigmsSqi in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
bej_V = irregV "bëj" "bën" "bën" "bëjmë" "bëni" "bëjnë" "bëj" "bëni" "bërë" ;
|
||||||
|
bie_V = irregV "bie" "bie" "bie" "biem" "bini" "bien" "bjer" "bini" "rënë" ;
|
||||||
|
dal_V = irregV "dal" "del" "del" "dalim" "dilni" "dalin" "dil" "dilni" "dalë" ;
|
||||||
|
dua_V = irregV "dua" "do" "do" "duam" "doni" "duan" "duaj" "doni" "dashur" ;
|
||||||
|
eci_V = irregV "eci" "ecën" "ecën" "ecim" "ecni" "ecin" "ec" "ecni" "ecur" ;
|
||||||
|
ha_V = irregV "ha" "ha" "ha" "hamë" "hani" "hanë" "ha" "hani" "ngrënë" ;
|
||||||
|
hyj_V = irregV "hyj" "hyn" "hyn" "hyjmë" "hyni" "hyjnë" "hyr" "hyni" "hyrë" ;
|
||||||
|
iki_V = irregV "iki" "ikën" "ikën" "ikim" "ikni" "ikin" "ik" "ikni" "ikur" ;
|
||||||
|
jam_V = irregV "jam" "je" "është" "jemi" "jeni" "janë" "ji" "jini" "qenë" ;
|
||||||
|
jap_V = irregV "jap" "jep" "jep" "japim" "jepni" "japin" "jep" "jepni" "dhënë" ;
|
||||||
|
kam_V = irregV "kam" "ke" "ka" "kemi" "keni" "kanë" "ki" "kini" "pasur" ;
|
||||||
|
ngre_V = irregV "ngre" "ngre" "ngre" "ngremë" "ngrini" "ngrenë" "ngre" "ngrini" "ngritur" ;
|
||||||
|
njoh_V = irregV "njoh" "njeh" "njeh" "njohim" "njihni" "njohin" "njih" "njihni" "njohur" ;
|
||||||
|
pi_V = irregV "pi" "pi" "pi" "pimë" "pini" "pinë" "pi" "pini" "pirë" ;
|
||||||
|
shoh_V = irregV "shoh" "sheh" "sheh" "shohim" "shihni" "shohin" "shih" "shihni" "parë" ;
|
||||||
|
them_V = irregV "them" "thua" "thotë" "themi" "thoni" "thonë" "thuaj" "thoni" "thënë" ;
|
||||||
|
urrej_V = irregV "urrej" "urren" "urren" "urrejmë" "urreni" "urrejnë" "urre" "urreni" "urryer" ;
|
||||||
|
ve_V = irregV "vë" "vë" "vë" "vëmë" "vini" "vënë" "vër" "vini" "vënë" ;
|
||||||
|
vij_V = irregV "vij" "vjen" "vjen" "vijmë" "vini" "vijnë" "eja" "ejani" "ardhur" ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
abstract IrregSqiAbs = Cat ** {
|
||||||
|
|
||||||
|
fun
|
||||||
|
bej_V : V ;
|
||||||
|
bie_V : V ;
|
||||||
|
dal_V : V ;
|
||||||
|
dua_V : V ;
|
||||||
|
eci_V : V ;
|
||||||
|
ha_V : V ;
|
||||||
|
hyj_V : V ;
|
||||||
|
iki_V : V ;
|
||||||
|
jam_V : V ;
|
||||||
|
jap_V : V ;
|
||||||
|
kam_V : V ;
|
||||||
|
ngre_V : V ;
|
||||||
|
njoh_V : V ;
|
||||||
|
pi_V : V ;
|
||||||
|
shoh_V : V ;
|
||||||
|
them_V : V ;
|
||||||
|
urrej_V : V ;
|
||||||
|
ve_V : V ;
|
||||||
|
vij_V : V ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
concrete LangSqi of Lang =
|
concrete LangSqi of Lang =
|
||||||
GrammarSqi,
|
GrammarSqi,
|
||||||
LexiconSqi
|
LexiconSqi
|
||||||
|
,ConstructionSqi
|
||||||
,DocumentationSqi --# notpresent
|
,DocumentationSqi --# notpresent
|
||||||
** {
|
** {
|
||||||
|
|
||||||
|
|||||||
+8417
-8393
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,12 @@
|
|||||||
|
concrete NamesSqi of Names = CatSqi ** open ResSqi in {
|
||||||
|
lin
|
||||||
|
GivenName n = {s=\\_=>n.s; a={gn=GSg Masc;p=P3}} ;
|
||||||
|
MaleSurname n = {s=\\_=>n.s; a={gn=GSg Masc;p=P3}} ;
|
||||||
|
FemaleSurname n = {s=\\_=>n.s; a={gn=GSg Fem;p=P3}} ;
|
||||||
|
PlSurname n = {s=\\_=>n.s; a={gn=GPl;p=P3}} ;
|
||||||
|
FullName n s = {s=\\_=>n.s++s.s; a={gn=GSg Masc;p=P3}} ;
|
||||||
|
UseLN n = {s=\\_=>n.s; a={gn=GSg Masc;p=P3}} ;
|
||||||
|
PlainLN n = {s=\\_=>n.s; a={gn=GSg Masc;p=P3}} ;
|
||||||
|
InLN n = {s="në"++n.s} ;
|
||||||
|
AdjLN a n = {s=n.s++a.s!Def!Nom!Masc!Sg} ;
|
||||||
|
}
|
||||||
+101
-11
@@ -1,39 +1,129 @@
|
|||||||
concrete NounSqi of Noun = CatSqi ** open MorphoSqi, ResSqi in {
|
concrete NounSqi of Noun = CatSqi ** open MorphoSqi, ResSqi, Prelude in {
|
||||||
|
|
||||||
flags optimize=all_subs ;
|
|
||||||
|
|
||||||
lin
|
lin
|
||||||
DetCN det cn = {
|
DetCN det cn = {
|
||||||
s = \\c => det.s ! c ! cn.g ++ cn.s ! det.spec ! c ! det.n ;
|
s = \\c => det.s ! c ! cn.g ++ cn.s ! det.sp ! c ! det.n ++
|
||||||
|
det.post ! det.sp ! c ! cn.g ;
|
||||||
a = agrgP3 cn.g det.n
|
a = agrgP3 cn.g det.n
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
UsePron p = p ;
|
UsePron p = {s=p.s; a=p.a} ;
|
||||||
|
UsePN p = {s=\\_=>p.s; a={gn=GSg Masc;p=P3}} ;
|
||||||
|
PredetNP p np = np ** {s=\\c=>p.s ++ np.s ! c} ;
|
||||||
|
AdvNP np adv = np ** {s=\\c=>np.s ! c ++ adv.s} ;
|
||||||
|
ExtAdvNP np adv = np ** {s=\\c=>np.s ! c ++ SOFT_BIND ++ "," ++ adv.s} ;
|
||||||
|
MassNP cn = {s=\\c=>cn.s ! Indef ! c ! Sg; a=agrgP3 cn.g Sg} ;
|
||||||
|
|
||||||
DetQuant quant num = {
|
DetQuant quant num = {
|
||||||
s = \\c,g => quant.s ! c ! g ! num.n ++ num.s ;
|
s = \\c,g => case quant.isPoss of {
|
||||||
|
True => num.s;
|
||||||
|
False => quant.s ! c ! g ! num.n ++ num.s
|
||||||
|
} ;
|
||||||
|
post = \\_,c,g => case quant.isPoss of {
|
||||||
|
True => quant.s ! c ! g ! num.n;
|
||||||
|
False => []
|
||||||
|
} ;
|
||||||
n = num.n ;
|
n = num.n ;
|
||||||
spec = quant.spec
|
sp = quant.sp
|
||||||
|
} ;
|
||||||
|
|
||||||
|
DetQuantOrd quant num ord = {
|
||||||
|
s = \\c,g => case quant.isPoss of {
|
||||||
|
True => num.s;
|
||||||
|
False => quant.s ! c ! g ! num.n ++ num.s
|
||||||
|
} ;
|
||||||
|
post = \\_,c,g => case quant.isPoss of {
|
||||||
|
True => quant.s ! c ! g ! num.n ++ ord.s ! c ! g ! num.n;
|
||||||
|
False => ord.s ! c ! g ! num.n
|
||||||
|
} ;
|
||||||
|
n=num.n; sp=quant.sp
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
NumSg = {s = []; n = Sg} ;
|
NumSg = {s = []; n = Sg} ;
|
||||||
NumPl = {s = []; n = Pl} ;
|
NumPl = {s = []; n = Pl} ;
|
||||||
|
NumCard c = {s=c.s; n=Pl} ;
|
||||||
|
NumNumeral n = n ;
|
||||||
|
NumDecimal n = {s=n.s} ;
|
||||||
|
AdNum a n = {s=a.s ++ n.s} ;
|
||||||
|
|
||||||
|
OrdNumeral n = {s=\\_,_,_=>n.s} ;
|
||||||
|
OrdDigits n = {s=\\_,_,_=>n.s} ;
|
||||||
|
OrdSuperl a = {s=\\c,g,n=>"më" ++
|
||||||
|
case a.clit of {
|
||||||
|
True => case <c,g,n> of {
|
||||||
|
<Nom,Masc,Sg> => "i" ++ a.s ! c ! g ! n;
|
||||||
|
<Nom,Fem,Sg> => "e" ++ a.s ! c ! g ! n;
|
||||||
|
_ => "të" ++ a.s ! c ! g ! n
|
||||||
|
};
|
||||||
|
False => a.s ! c ! g ! n
|
||||||
|
}} ;
|
||||||
|
OrdNumeralSuperl n a = {s=\\c,g,num=>n.s ++ a.s ! c ! g ! num} ;
|
||||||
|
|
||||||
DefArt = {
|
DefArt = {
|
||||||
s = \\c,g,n => [] ;
|
s = \\c,g,n => [] ;
|
||||||
spec = Def
|
sp = Def;
|
||||||
|
isPoss = False
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
IndefArt = {
|
IndefArt = {
|
||||||
s = \\c,g => table Number ["një"; []] ;
|
s = \\c,g => table Number ["një"; []] ;
|
||||||
spec = Indef
|
sp = Indef;
|
||||||
|
isPoss = False
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
UseN n = n ;
|
UseN n = n ;
|
||||||
UseN2 n = n ;
|
|
||||||
|
ComplN2 n np = {
|
||||||
|
s=\\sp,c,num=>n.s ! sp ! c ! num ++ n.c2.s ++ np.s ! n.c2.c;
|
||||||
|
g=n.g
|
||||||
|
} ;
|
||||||
|
ComplN3 n np = n ** {s=\\sp,c,num=>n.s ! sp ! c ! num ++ n.c2.s ++ np.s ! n.c2.c; c2=n.c3} ;
|
||||||
|
Use2N3 n = n ** {c2=n.c2} ;
|
||||||
|
Use3N3 n = n ** {c2=n.c3} ;
|
||||||
|
RelCN cn rs = cn ** {s=\\sp,c,n=>cn.s ! sp ! c ! n ++ rs.s ! agrgP3 cn.g n} ;
|
||||||
|
AdvCN cn adv = cn ** {s=\\sp,c,n=>cn.s ! sp ! c ! n ++ adv.s} ;
|
||||||
|
SentCN cn sc = cn ** {s=\\sp,c,n=>cn.s ! sp ! c ! n ++ sc.s} ;
|
||||||
|
ApposCN cn np = cn ** {s=\\sp,c,n=>cn.s ! sp ! c ! n ++ np.s ! c} ;
|
||||||
|
PossNP cn np = cn ** {
|
||||||
|
s=\\sp,c,n=>cn.s ! sp ! c ! n ++
|
||||||
|
link_clitic ! sp ! c ! cn.g ! n ++ np.s ! Ablat
|
||||||
|
} ;
|
||||||
|
PartNP cn np = cn ** {s=\\sp,c,n=>cn.s ! sp ! c ! n ++ "me" ++ np.s ! Acc} ;
|
||||||
|
CountNP det np = {s=\\c=>det.s ! c ! Masc ++ "nga" ++ np.s ! Ablat; a=agrgP3 Masc det.n} ;
|
||||||
|
|
||||||
|
PossPron p = {
|
||||||
|
s=\\c,g,n=>case <p.a.gn,p.a.p,g,n> of {
|
||||||
|
<GSg _,P1,Masc,Sg> => case c of {Nom=>"im"; _=>"tim"};
|
||||||
|
<GSg _,P1,Fem,Sg> => case c of {Nom=>"ime"; Acc=>"time"; _=>"sime"};
|
||||||
|
<GSg _,P2,Masc,Sg> => case c of {Nom=>"yt"; _=>"tënd"};
|
||||||
|
<GSg _,P2,Fem,Sg> => case c of {Nom=>"jote"; Acc=>"tënde"; _=>"sate"};
|
||||||
|
<GSg Masc,P3,_,_> => link_clitic!Def!c!g!n++"tij";
|
||||||
|
<GSg Fem,P3,_,_> => link_clitic!Def!c!g!n++"saj";
|
||||||
|
<GPl,P3,_,_> => link_clitic!Def!c!g!n++"tyre";
|
||||||
|
<GSg _,P1,Masc,Pl> => link_clitic!Def!c!g!n++"mi";
|
||||||
|
<GSg _,P1,Fem,Pl> => link_clitic!Def!c!g!n++"mia";
|
||||||
|
<GSg _,P2,Masc,Pl> => link_clitic!Def!c!g!n++"tu";
|
||||||
|
<GSg _,P2,Fem,Pl> => link_clitic!Def!c!g!n++"tua";
|
||||||
|
<GPl,P1,Masc,Sg> => case c of {Nom=>"ynë"; _=>"tonë"};
|
||||||
|
<GPl,P1,Fem,Sg> => case c of {Nom=>"jonë"; Acc=>"tonë"; _=>"sonë"};
|
||||||
|
<GPl,P1,Masc,Pl> => "tanë";
|
||||||
|
<GPl,P1,Fem,Pl> => "tona";
|
||||||
|
<GPl,P2,_,Sg> => case c of {Nom=>"juaj"; _=>"tuaj"};
|
||||||
|
<GPl,P2,_,Pl> => "tuaj"
|
||||||
|
};
|
||||||
|
sp=Def;
|
||||||
|
isPoss=True
|
||||||
|
} ;
|
||||||
|
|
||||||
|
DetDAP det = {
|
||||||
|
s=det.s ! Nom ! Masc ++ det.post ! det.sp ! Nom ! Masc;
|
||||||
|
n=det.n
|
||||||
|
} ;
|
||||||
|
AdjDAP dap ap = {s=dap.s ++ ap.s ! Indef ! Nom ! Masc ! dap.n; n=dap.n} ;
|
||||||
|
QuantityNP dec mu = {s=\\_=>case mu.isPre of {True=>mu.s++dec.s; False=>dec.s++mu.s}; a=agrgP3 Masc Pl} ;
|
||||||
|
|
||||||
AdjCN ap cn = {
|
AdjCN ap cn = {
|
||||||
s = \\spec,c,n => cn.s ! spec ! c ! n ++ ap.s ! spec ! c ! cn.g ! n ;
|
s = \\sp,c,n => cn.s ! sp ! c ! n ++ ap.s ! sp ! c ! cn.g ! n ;
|
||||||
g = cn.g
|
g = cn.g
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ lincat Sub10 = LinDigit ;
|
|||||||
lincat Sub100 = LinSub100 ;
|
lincat Sub100 = LinSub100 ;
|
||||||
lincat Sub1000 = LinSub100 ;
|
lincat Sub1000 = LinSub100 ;
|
||||||
lincat Sub1000000 = { s : Str } ;
|
lincat Sub1000000 = { s : Str } ;
|
||||||
|
lincat Sub1000000000 = {s : Str} ;
|
||||||
|
lincat Sub1000000000000 = {s : Str} ;
|
||||||
|
|
||||||
oper mkNum : Str -> LinDigit = \tri ->
|
oper mkNum : Str -> LinDigit = \tri ->
|
||||||
{ s = table {unit => tri ; teen => tri + "mbë" + "dhjetë" ; ten => tri + "dhjetë" }};
|
{ s = table {unit => tri ; teen => tri + "mbë" + "dhjetë" ; ten => tri + "dhjetë" }};
|
||||||
@@ -39,10 +41,23 @@ lin pot1 d = mkR (d.s ! ten) ;
|
|||||||
lin pot1plus d e = mkR ((d.s ! ten) ++ "e" ++ (e.s ! unit)) ;
|
lin pot1plus d e = mkR ((d.s ! ten) ++ "e" ++ (e.s ! unit)) ;
|
||||||
lin pot1as2 n = n ;
|
lin pot1as2 n = n ;
|
||||||
lin pot2 d = mkR (bind (d.s ! unit) "qind") ;
|
lin pot2 d = mkR (bind (d.s ! unit) "qind") ;
|
||||||
|
lin pot21 = mkR "njëqind" ;
|
||||||
lin pot2plus d e = mkR ((bind (d.s ! unit) "qind") ++ "e" ++ e.s) ;
|
lin pot2plus d e = mkR ((bind (d.s ! unit) "qind") ++ "e" ++ e.s) ;
|
||||||
lin pot2as3 n = {s = n.s };
|
lin pot2as3 n = {s = n.s };
|
||||||
lin pot3 n = {s = n.s ++ "mijë" } ;
|
lin pot3 n = {s = n.s ++ "mijë" } ;
|
||||||
lin pot3plus n m = {s = n.s ++ "mijë" ++ m.s} ;
|
lin pot3plus n m = {s = n.s ++ "mijë" ++ m.s} ;
|
||||||
|
lin pot31 = {s="një mijë"} ;
|
||||||
|
lin pot3as4 n=n ;
|
||||||
|
lin pot3decimal n={s=n.s++"mijë"} ;
|
||||||
|
lin pot41={s="një milion"} ;
|
||||||
|
lin pot4 n={s=n.s++"milionë"} ;
|
||||||
|
lin pot4plus n m={s=n.s++"milionë"++m.s} ;
|
||||||
|
lin pot4decimal n={s=n.s++"milionë"} ;
|
||||||
|
lin pot4as5 n=n ;
|
||||||
|
lin pot51={s="një miliard"} ;
|
||||||
|
lin pot5 n={s=n.s++"miliardë"} ;
|
||||||
|
lin pot5plus n m={s=n.s++"miliardë"++m.s} ;
|
||||||
|
lin pot5decimal n={s=n.s++"miliardë"} ;
|
||||||
|
|
||||||
|
|
||||||
lincat Dig = {s : Str; n : Number} ;
|
lincat Dig = {s : Str; n : Number} ;
|
||||||
|
|||||||
@@ -1199,6 +1199,39 @@ oper
|
|||||||
_ => regV form1
|
_ => regV form1
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
irregV : (p1sg,p2sg,p3sg,p1pl,p2pl,p3pl,impSg,impPl,part : Str) -> V =
|
||||||
|
\p1sg,p2sg,p3sg,p1pl,p2pl,p3pl,impSg,impPl,part -> lin V {
|
||||||
|
indicative = table {
|
||||||
|
Pres => table {
|
||||||
|
Sg => table {P1 => p1sg ; P2 => p2sg ; P3 => p3sg} ;
|
||||||
|
Pl => table {P1 => p1pl ; P2 => p2pl ; P3 => p3pl}
|
||||||
|
} ;
|
||||||
|
_ => table {
|
||||||
|
Sg => table {P1 => p1sg ; P2 => p2sg ; P3 => p3sg} ;
|
||||||
|
Pl => table {P1 => p1pl ; P2 => p2pl ; P3 => p3pl}
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
imperative = table {Sg => impSg ; Pl => impPl} ;
|
||||||
|
participle = part ;
|
||||||
|
pres_optative = \\n,p => case <n,p> of {
|
||||||
|
<Sg,P1>=>p1sg; <Sg,P2>=>p2sg; <Sg,P3>=>p3sg;
|
||||||
|
<Pl,P1>=>p1pl; <Pl,P2>=>p2pl; <Pl,P3>=>p3pl
|
||||||
|
} ;
|
||||||
|
perf_optative = \\n,p => case <n,p> of {
|
||||||
|
<Sg,P1>=>p1sg; <Sg,P2>=>p2sg; <Sg,P3>=>p3sg;
|
||||||
|
<Pl,P1>=>p1pl; <Pl,P2>=>p2pl; <Pl,P3>=>p3pl
|
||||||
|
} ;
|
||||||
|
pres_admirative = \\n,p => case <n,p> of {
|
||||||
|
<Sg,P1>=>p1sg; <Sg,P2>=>p2sg; <Sg,P3>=>p3sg;
|
||||||
|
<Pl,P1>=>p1pl; <Pl,P2>=>p2pl; <Pl,P3>=>p3pl
|
||||||
|
} ;
|
||||||
|
imperf_admirative = \\n,p => case <n,p> of {
|
||||||
|
<Sg,P1>=>p1sg; <Sg,P2>=>p2sg; <Sg,P3>=>p3sg;
|
||||||
|
<Pl,P1>=>p1pl; <Pl,P2>=>p2pl; <Pl,P3>=>p3pl
|
||||||
|
} ;
|
||||||
|
vtype = VNormal
|
||||||
|
} ;
|
||||||
|
|
||||||
mkN = overload {
|
mkN = overload {
|
||||||
mkN : Str -> N = regN; -- s;Indef;Nom;Sg
|
mkN : Str -> N = regN; -- s;Indef;Nom;Sg
|
||||||
mkN : Str -> Str -> N = reg2N -- s;Indef;Nom;Sg s;Indef;Nom;Pl
|
mkN : Str -> Str -> N = reg2N -- s;Indef;Nom;Sg s;Indef;Nom;Pl
|
||||||
@@ -1231,6 +1264,19 @@ mkV = overload {
|
|||||||
mkV : Str -> Str -> V = reg2V -- Indicative;Pres;Sg;P1 participle
|
mkV : Str -> Str -> V = reg2V -- Indicative;Pres;Sg;P1 participle
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
compoundV : V -> Str -> V = \v,adv -> lin V {
|
||||||
|
indicative = \\t,n,p => v.indicative ! t ! n ! p ++ adv ;
|
||||||
|
imperative = \\n => v.imperative ! n ++ adv ;
|
||||||
|
participle = v.participle ++ adv ;
|
||||||
|
pres_optative = \\n,p => v.pres_optative ! n ! p ++ adv ;
|
||||||
|
perf_optative = \\n,p => v.perf_optative ! n ! p ++ adv ;
|
||||||
|
pres_admirative = \\n,p => v.pres_admirative ! n ! p ++ adv ;
|
||||||
|
imperf_admirative = \\n,p => v.imperf_admirative ! n ! p ++ adv ;
|
||||||
|
vtype = v.vtype
|
||||||
|
} ;
|
||||||
|
|
||||||
|
reflV : V -> V = \v -> v ** {vtype=VRefl} ;
|
||||||
|
|
||||||
mkV2 = overload {
|
mkV2 = overload {
|
||||||
mkV2 : V -> V2 = \v -> lin V2 v ** {c2=noPrep} ;
|
mkV2 : V -> V2 = \v -> lin V2 v ** {c2=noPrep} ;
|
||||||
mkV2 : V -> Prep -> V2 = \v,p -> lin V2 v ** {c2=p} ;
|
mkV2 : V -> Prep -> V2 = \v,p -> lin V2 v ** {c2=p} ;
|
||||||
@@ -1273,9 +1319,9 @@ mkAdN : Str -> AdN = \s -> lin AdN {s=s} ;
|
|||||||
mkCAdv : Str -> CAdv = \s -> lin CAdv {s=s; p=""} ;
|
mkCAdv : Str -> CAdv = \s -> lin CAdv {s=s; p=""} ;
|
||||||
|
|
||||||
mkIAdv : Str -> IAdv = \s -> lin IAdv {s=s} ;
|
mkIAdv : Str -> IAdv = \s -> lin IAdv {s=s} ;
|
||||||
mkIP : Str -> IP = \s -> lin IP {s=s} ;
|
mkIP : Str -> IP = \s -> lin IP {s=s; a={gn=GSg Masc; p=P3}} ;
|
||||||
mkIQuant : Str -> IQuant = \s -> lin IQuant {s=s} ;
|
mkIQuant : Str -> IQuant = \s -> lin IQuant {s=\\_=>s} ;
|
||||||
mkIDet : Str -> IDet = \s -> lin IDet {s=s} ;
|
mkIDet : Str -> IDet = \s -> lin IDet {s=\\_=>s; n=Sg} ;
|
||||||
|
|
||||||
mkInterj : Str -> Interj = \s -> lin Interj {s=s} ;
|
mkInterj : Str -> Interj = \s -> lin Interj {s=s} ;
|
||||||
|
|
||||||
@@ -1283,7 +1329,13 @@ mkVoc : Str -> Voc = \s -> lin Voc {s=s} ;
|
|||||||
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False} ;
|
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False} ;
|
||||||
mkSubj : Str -> Subj = \s -> lin Subj {s=s} ;
|
mkSubj : Str -> Subj = \s -> lin Subj {s=s} ;
|
||||||
|
|
||||||
oper mkQuant : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Quant =
|
mkQuant = overload {
|
||||||
|
mkQuant : Str -> Quant = \s -> lin Quant {
|
||||||
|
s = \\_,_,_ => s ;
|
||||||
|
sp = Indef ;
|
||||||
|
isPoss = False
|
||||||
|
} ;
|
||||||
|
mkQuant : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Quant =
|
||||||
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16 -> lin Quant
|
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16 -> lin Quant
|
||||||
{ s = table {
|
{ s = table {
|
||||||
Nom => table {
|
Nom => table {
|
||||||
@@ -1327,10 +1379,19 @@ oper mkQuant : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Quant =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
spec = Indef
|
sp = Indef ;
|
||||||
} ;
|
isPoss = False
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
|
||||||
oper mkDet : (_,_,_,_,_,_,_,_ : Str) -> Number -> Det =
|
mkDet = overload {
|
||||||
|
mkDet : Str -> Number -> Det = \s,n -> lin Det {
|
||||||
|
s = \\_,_ => s ;
|
||||||
|
post = \\_,_,_ => [] ;
|
||||||
|
sp = Indef ;
|
||||||
|
n = n
|
||||||
|
} ;
|
||||||
|
mkDet : (_,_,_,_,_,_,_,_ : Str) -> Number -> Det =
|
||||||
\f1,f2,f3,f4,f5,f6,f7,f8,n -> lin Det
|
\f1,f2,f3,f4,f5,f6,f7,f8,n -> lin Det
|
||||||
{ s = table {
|
{ s = table {
|
||||||
Nom => table {
|
Nom => table {
|
||||||
@@ -1350,9 +1411,11 @@ oper mkDet : (_,_,_,_,_,_,_,_ : Str) -> Number -> Det =
|
|||||||
Fem => f8
|
Fem => f8
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
spec = Indef ;
|
post = \\_,_,_ => [] ;
|
||||||
|
sp = Indef ;
|
||||||
n = n
|
n = n
|
||||||
} ;
|
}
|
||||||
|
} ;
|
||||||
|
|
||||||
mkConj : Str -> Conj = \s -> lin Conj {s=s} ;
|
mkConj : Str -> Conj = \s -> lin Conj {s=s} ;
|
||||||
mkPConj : Str -> PConj = \s -> lin PConj {s=s} ;
|
mkPConj : Str -> PConj = \s -> lin PConj {s=s} ;
|
||||||
@@ -1369,7 +1432,23 @@ mkCard : Str -> Card = \s -> lin Card {s=s} ;
|
|||||||
mkACard : Str -> ACard = \s -> lin ACard {s=s} ;
|
mkACard : Str -> ACard = \s -> lin ACard {s=s} ;
|
||||||
mkPredet : Str -> Predet = \s -> lin Predet {s=s} ;
|
mkPredet : Str -> Predet = \s -> lin Predet {s=s} ;
|
||||||
|
|
||||||
mkPrep : Str -> Prep = \s -> lin Prep {s=s} ;
|
mkPrep : Str -> Prep = \s -> lin Prep {
|
||||||
noPrep : Prep = lin Prep {s=""} ;
|
s=s;
|
||||||
|
c=case s of {
|
||||||
|
"nga" => Nom;
|
||||||
|
"prej" => Ablat;
|
||||||
|
"gjatë" => Ablat;
|
||||||
|
"pas" => Ablat;
|
||||||
|
"para" => Ablat;
|
||||||
|
"prapa" => Ablat;
|
||||||
|
"midis" => Ablat;
|
||||||
|
"mes" => Ablat;
|
||||||
|
"përveç" => Ablat;
|
||||||
|
"përtej" => Ablat;
|
||||||
|
"krahas" => Ablat;
|
||||||
|
_ => Acc
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
noPrep : Prep = lin Prep {s=""; c=Acc} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,11 +4,24 @@ concrete PhraseSqi of Phrase = CatSqi ** open Prelude, ResSqi in {
|
|||||||
PhrUtt pconj utt voc = {s = pconj.s ++ utt.s ++ voc.s} ;
|
PhrUtt pconj utt voc = {s = pconj.s ++ utt.s ++ voc.s} ;
|
||||||
|
|
||||||
UttS s = s ;
|
UttS s = s ;
|
||||||
|
UttQS s = s ;
|
||||||
|
UttImpSg p i = {s=i.s ! p.p ! Sg} ;
|
||||||
|
UttImpPl p i = {s=i.s ! p.p ! Pl} ;
|
||||||
|
UttImpPol p i = {s=i.s ! p.p ! Pl} ;
|
||||||
|
UttIP ip = {s=ip.s} ;
|
||||||
|
UttIAdv a = a ;
|
||||||
UttNP np = {s = np.s ! Nom} ;
|
UttNP np = {s = np.s ! Nom} ;
|
||||||
|
UttAdv a = a ;
|
||||||
|
UttVP vp = {s="të" ++ vp.subjunctive ! Sg ! P3 ! Masc ! Nom} ;
|
||||||
|
UttCN cn = {s=cn.s ! Indef ! Nom ! Sg} ;
|
||||||
|
UttCard c = c ;
|
||||||
|
UttAP ap = {s=ap.s ! Indef ! Nom ! Masc ! Sg} ;
|
||||||
UttInterj i = i ;
|
UttInterj i = i ;
|
||||||
|
|
||||||
NoPConj = {s = []} ;
|
NoPConj = {s = []} ;
|
||||||
|
PConjConj c = c ;
|
||||||
|
|
||||||
NoVoc = {s = []} ;
|
NoVoc = {s = []} ;
|
||||||
|
VocNP np = {s=SOFT_BIND ++ "," ++ np.s ! Nom} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
concrete QuestionSqi of Question = CatSqi ** open Prelude, ParamX, ResSqi, (I=IrregSqi) in {
|
||||||
|
lincat QVP = {s : Str} ;
|
||||||
|
lin
|
||||||
|
QuestCl cl = cl ;
|
||||||
|
QuestVP ip vp = {s=\\t,a,p=>ip.s++negation p++futureParticle t++vp.indicative!sqiTense t!agrNumber ip.a!ip.a.p!agrGender ip.a!Nom} ;
|
||||||
|
QuestSlash ip cl = {s=\\t,a,p=>ip.s++cl.s!t!a!p++cl.c2.s} ;
|
||||||
|
QuestIAdv i cl = {s=\\t,a,p=>i.s++cl.s!t!a!p} ;
|
||||||
|
QuestIComp i np = {s=\\_,_,_=>i.s++(lin Verb I.jam_V).indicative!ResSqi.Pres!agrNumber np.a!np.a.p++np.s!Nom} ;
|
||||||
|
IdetCN d cn = {s=d.s!cn.g++cn.s!Indef!Nom!d.n; a=agrgP3 cn.g d.n} ;
|
||||||
|
IdetIP d = {s=d.s!Masc; a=agrgP3 Masc d.n} ;
|
||||||
|
AdvIP ip a = ip ** {s=ip.s++a.s} ;
|
||||||
|
IdetQuant q n = {s=\\g=>q.s!g++n.s; n=n.n} ;
|
||||||
|
PrepIP p ip = {s=p.s++ip.s} ;
|
||||||
|
AdvIAdv i a = {s=i.s++a.s} ;
|
||||||
|
CompIAdv i = i ;
|
||||||
|
CompIP ip = {s=ip.s} ;
|
||||||
|
ComplSlashIP sl ip = {s=sl.indicative!ResSqi.Pres!Sg!P3++sl.c2.s++ip.s} ;
|
||||||
|
AdvQVP vp i = {s=vp.indicative!ResSqi.Pres!Sg!P3!Masc!Nom++i.s} ;
|
||||||
|
AddAdvQVP q i = {s=q.s++i.s} ;
|
||||||
|
QuestQVP ip q = {s=\\_,_,_=>ip.s++q.s} ;
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
concrete RelativeSqi of Relative = CatSqi ** open ParamX, ResSqi in {
|
||||||
|
lin
|
||||||
|
RelCl cl = {s=\\_,t,a,p=>"që"++cl.s!t!a!p} ;
|
||||||
|
RelVP rp vp = {s=\\agr,t,a,p=>rp.s!Nom!agr.gn++negation p++futureParticle t++vp.indicative!sqiTense t!agrNumber agr!agr.p!agrGender agr!Nom} ;
|
||||||
|
RelSlash rp cl = {s=\\agr,t,a,p=>rp.s!cl.c2.c!agr.gn++cl.s!t!a!p++cl.c2.s} ;
|
||||||
|
IdRP = {s=\\_,_=>"që"} ;
|
||||||
|
FunRP prep np rp = {s=\\c,g=>prep.s++np.s!prep.c++rp.s!c!g} ;
|
||||||
|
}
|
||||||
+64
-5
@@ -1,6 +1,6 @@
|
|||||||
resource ResSqi = ParamX-[Tense,Past,Pres] ** open Prelude in {
|
resource ResSqi = ParamX-[Tense,Past,Pres] ** open Prelude in {
|
||||||
|
|
||||||
oper Compl = {s : Str} ;
|
oper Compl = {s : Str; c : Case} ;
|
||||||
|
|
||||||
param Species = Indef | Def ;
|
param Species = Indef | Def ;
|
||||||
param Case = Nom | Acc | Dat | Ablat ;
|
param Case = Nom | Acc | Dat | Ablat ;
|
||||||
@@ -9,6 +9,16 @@ param Gender = Masc | Fem ;
|
|||||||
param GenNum = GSg Gender | GPl ;
|
param GenNum = GSg Gender | GPl ;
|
||||||
oper Agr = {gn : GenNum; p : Person} ;
|
oper Agr = {gn : GenNum; p : Person} ;
|
||||||
|
|
||||||
|
oper agrNumber : Agr -> Number = \a -> case a.gn of {
|
||||||
|
GSg _ => Sg ;
|
||||||
|
GPl => Pl
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper agrGender : Agr -> Gender = \a -> case a.gn of {
|
||||||
|
GSg g => g ;
|
||||||
|
GPl => Masc
|
||||||
|
} ;
|
||||||
|
|
||||||
oper Noun = {s: Species => Case => Number => Str; g: Gender} ; -- 3978
|
oper Noun = {s: Species => Case => Number => Str; g: Gender} ; -- 3978
|
||||||
oper mkNoun : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Gender -> Noun =
|
oper mkNoun : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Gender -> Noun =
|
||||||
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,g ->
|
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,g ->
|
||||||
@@ -104,10 +114,11 @@ oper mkAdj : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Bool -> Adj =
|
|||||||
|
|
||||||
|
|
||||||
param Tense = Pres | Past | Imperfect | Aorist ;
|
param Tense = Pres | Past | Imperfect | Aorist ;
|
||||||
oper Verb = {Indicative: Tense => Number => Person => Str; Imperative: Number => Str; participle: Str; pres_optative: Number => Person => Str; perf_optative: Number => Person => Str; pres_admirative: Number => Person => Str; imperf_admirative: Number => Person => Str} ; -- 758
|
param VType = VNormal | VRefl | VJ ;
|
||||||
|
oper Verb = {indicative: Tense => Number => Person => Str; imperative: Number => Str; participle: Str; pres_optative: Number => Person => Str; perf_optative: Number => Person => Str; pres_admirative: Number => Person => Str; imperf_admirative: Number => Person => Str; vtype : VType} ; -- 758
|
||||||
oper mkVerb : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Verb =
|
oper mkVerb : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Verb =
|
||||||
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18,f19,f20,f21,f22,f23,f24,f25,f26,f27,f28,f29,f30,f31,f32,f33,f34,f35,f36,f37,f38,f39,f40,f41,f42,f43,f44,f45,f46,f47,f48,f49,f50,f51 ->
|
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18,f19,f20,f21,f22,f23,f24,f25,f26,f27,f28,f29,f30,f31,f32,f33,f34,f35,f36,f37,f38,f39,f40,f41,f42,f43,f44,f45,f46,f47,f48,f49,f50,f51 ->
|
||||||
{ Indicative = table {
|
{ indicative = table {
|
||||||
Pres => table {
|
Pres => table {
|
||||||
Sg => table {
|
Sg => table {
|
||||||
P1 => f1 ;
|
P1 => f1 ;
|
||||||
@@ -157,7 +168,7 @@ oper mkVerb : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
Imperative = table {
|
imperative = table {
|
||||||
Sg => f25 ;
|
Sg => f25 ;
|
||||||
Pl => f26
|
Pl => f26
|
||||||
} ;
|
} ;
|
||||||
@@ -209,7 +220,8 @@ oper mkVerb : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_
|
|||||||
P2 => f50 ;
|
P2 => f50 ;
|
||||||
P3 => f51
|
P3 => f51
|
||||||
}
|
}
|
||||||
}
|
} ;
|
||||||
|
vtype = VNormal
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
oper link_clitic : Species => Case => Gender => Number => Str =
|
oper link_clitic : Species => Case => Gender => Number => Str =
|
||||||
@@ -258,4 +270,51 @@ oper genNum : Gender -> Number -> GenNum = \g,n ->
|
|||||||
agrgP3 : Gender -> Number -> Agr =
|
agrgP3 : Gender -> Number -> Agr =
|
||||||
\g,n -> {gn=genNum g n; p=P3} ;
|
\g,n -> {gn=genNum g n; p=P3} ;
|
||||||
|
|
||||||
|
oper sqiTense : ParamX.Tense -> Tense = \t -> case t of {
|
||||||
|
ParamX.Pres => Pres ;
|
||||||
|
ParamX.Past => Aorist ;
|
||||||
|
ParamX.Fut => Pres ;
|
||||||
|
ParamX.Cond => Imperfect
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper negation : Polarity -> Str = \p -> case p of {
|
||||||
|
Pos => [] ;
|
||||||
|
Neg => "nuk"
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper futureParticle : ParamX.Tense -> Str = \t -> case t of {
|
||||||
|
ParamX.Fut => "do" ++ "të" ;
|
||||||
|
ParamX.Cond => "do" ++ "të" ;
|
||||||
|
_ => []
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper subjunctiveForm : VType -> Str -> Str -> Number -> Person -> Str =
|
||||||
|
\vt,citation,fallback,n,p -> case vt of {
|
||||||
|
VJ => case <n,p> of {
|
||||||
|
<Sg,P1> => citation ;
|
||||||
|
<Sg,P3> => citation ++ BIND ++ "ë" ;
|
||||||
|
_ => fallback
|
||||||
|
} ;
|
||||||
|
_ => fallback
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper haveAux : ParamX.Tense => Number => Person => Str = table {
|
||||||
|
ParamX.Pres => table {
|
||||||
|
Sg => table {P1 => "kam"; P2 => "ke"; P3 => "ka"};
|
||||||
|
Pl => table {P1 => "kemi"; P2 => "keni"; P3 => "kanë"}
|
||||||
|
} ;
|
||||||
|
ParamX.Past => table {
|
||||||
|
Sg => table {P1 => "kisha"; P2 => "kishe"; P3 => "kishte"};
|
||||||
|
Pl => table {P1 => "kishim"; P2 => "kishit"; P3 => "kishin"}
|
||||||
|
} ;
|
||||||
|
ParamX.Fut => table {
|
||||||
|
Sg => table {P1 => "do të kem"; P2 => "do të kesh"; P3 => "do të ketë"};
|
||||||
|
Pl => table {P1 => "do të kemi"; P2 => "do të keni"; P3 => "do të kenë"}
|
||||||
|
} ;
|
||||||
|
ParamX.Cond => table {
|
||||||
|
Sg => table {P1 => "do të kisha"; P2 => "do të kishe"; P3 => "do të kishte"};
|
||||||
|
Pl => table {P1 => "do të kishim"; P2 => "do të kishit"; P3 => "do të kishin"}
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
concrete SentenceSqi of Sentence = CatSqi ** open Prelude, ParamX, ResSqi in {
|
||||||
|
|
||||||
|
oper
|
||||||
|
mkClause : Str -> Agr -> VP -> ParamX.Tense -> Anteriority -> Polarity -> Str =
|
||||||
|
\subj,a,vp,t,ant,pol -> case <ant,t> of {
|
||||||
|
<Simul,ParamX.Past> => subj ++ negation pol ++
|
||||||
|
haveAux ! ParamX.Pres ! agrNumber a ! a.p ++ vp.participle ! a ! Nom ;
|
||||||
|
<Simul,_> => subj ++ negation pol ++ futureParticle t ++
|
||||||
|
vp.indicative ! sqiTense t ! agrNumber a ! a.p ! agrGender a ! Nom ;
|
||||||
|
<Anter,_> => subj ++ negation pol ++ haveAux ! t ! agrNumber a ! a.p ++
|
||||||
|
vp.participle ! a ! Nom
|
||||||
|
} ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
PredVP np vp = {s = \\t,a,p => mkClause (np.s ! Nom) np.a vp t a p} ;
|
||||||
|
PredSCVP sc vp = {s = \\t,a,p => mkClause sc.s {gn=GSg Masc; p=P3} vp t a p} ;
|
||||||
|
|
||||||
|
SlashVP np sl = {
|
||||||
|
s = \\t,a,p => np.s ! Nom ++ negation p ++ futureParticle t ++
|
||||||
|
sl.indicative ! sqiTense t ! agrNumber np.a ! np.a.p ;
|
||||||
|
c2 = sl.c2
|
||||||
|
} ;
|
||||||
|
AdvSlash cl adv = cl ** {s = \\t,a,p => cl.s ! t ! a ! p ++ adv.s} ;
|
||||||
|
SlashPrep cl prep = {s = cl.s; c2 = prep} ;
|
||||||
|
SlashVS np vs ss = {
|
||||||
|
s = \\t,a,p => np.s ! Nom ++ negation p ++ vs.indicative ! sqiTense t ! agrNumber np.a ! np.a.p ++ "që" ++ ss.s ;
|
||||||
|
c2 = {s=[]; c=Acc}
|
||||||
|
} ;
|
||||||
|
|
||||||
|
ImpVP vp = {s = \\pol,n => case pol of {Pos => []; Neg => "mos"} ++ vp.imperative ! n ! Nom} ;
|
||||||
|
AdvImp adv imp = {s = \\p,n => adv.s ++ imp.s ! p ! n} ;
|
||||||
|
|
||||||
|
EmbedS s = {s = "që" ++ s.s} ;
|
||||||
|
EmbedQS q = {s = q.s} ;
|
||||||
|
EmbedVP vp = {s = "të" ++ vp.subjunctive ! Sg ! P3 ! Masc ! Nom} ;
|
||||||
|
|
||||||
|
UseCl t p cl = {s = cl.s ! t.t ! t.a ! p.p} ;
|
||||||
|
UseQCl t p cl = {s = cl.s ! t.t ! t.a ! p.p} ;
|
||||||
|
UseRCl t p cl = {s = \\a => cl.s ! a ! t.t ! t.a ! p.p} ;
|
||||||
|
UseSlash t p cl = {s = cl.s ! t.t ! t.a ! p.p; c2=cl.c2} ;
|
||||||
|
|
||||||
|
AdvS adv s = {s = adv.s ++ s.s} ;
|
||||||
|
ExtAdvS adv s = {s = adv.s ++ SOFT_BIND ++ "," ++ s.s} ;
|
||||||
|
SSubjS s1 subj s2 = {s = s1.s ++ subj.s ++ s2.s} ;
|
||||||
|
RelS s rs = {s = s.s ++ SOFT_BIND ++ "," ++ rs.s ! {gn=GSg Masc;p=P3}} ;
|
||||||
|
}
|
||||||
@@ -16,4 +16,107 @@ lin that_Quant = mkQuant "ai" "ata" "ajo" "ato"
|
|||||||
"atë" "ata" "atë" "ato"
|
"atë" "ata" "atë" "ato"
|
||||||
"atij" "atyre" "asaj" "atyre"
|
"atij" "atyre" "asaj" "atyre"
|
||||||
"atij" "atyre" "asaj" "atyre" ;
|
"atij" "atyre" "asaj" "atyre" ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
youPol_Pron = youPl_Pron ;
|
||||||
|
|
||||||
|
and_Conj = mkConj "dhe" ;
|
||||||
|
or_Conj = mkConj "ose" ;
|
||||||
|
if_then_Conj = mkConj "nëse" ;
|
||||||
|
|
||||||
|
above_Prep = mkPrep "mbi" ;
|
||||||
|
after_Prep = mkPrep "pas" ;
|
||||||
|
before_Prep = mkPrep "para" ;
|
||||||
|
behind_Prep = mkPrep "prapa" ;
|
||||||
|
between_Prep = mkPrep "midis" ;
|
||||||
|
by8agent_Prep = mkPrep "nga" ;
|
||||||
|
by8means_Prep = mkPrep "me" ;
|
||||||
|
during_Prep = mkPrep "gjatë" ;
|
||||||
|
except_Prep = mkPrep "përveç" ;
|
||||||
|
for_Prep = mkPrep "për" ;
|
||||||
|
from_Prep = mkPrep "nga" ;
|
||||||
|
in8front_Prep = mkPrep "përpara" ;
|
||||||
|
in_Prep = mkPrep "në" ;
|
||||||
|
on_Prep = mkPrep "mbi" ;
|
||||||
|
part_Prep = mkPrep "nga" ;
|
||||||
|
possess_Prep = mkPrep "i" ;
|
||||||
|
through_Prep = mkPrep "përmes" ;
|
||||||
|
to_Prep = mkPrep "te" ;
|
||||||
|
under_Prep = mkPrep "nën" ;
|
||||||
|
with_Prep = mkPrep "me" ;
|
||||||
|
without_Prep = mkPrep "pa" ;
|
||||||
|
|
||||||
|
although_Subj = mkSubj "megjithëse" ;
|
||||||
|
because_Subj = mkSubj "sepse" ;
|
||||||
|
if_Subj = mkSubj "nëse" ;
|
||||||
|
that_Subj = mkSubj "që" ;
|
||||||
|
when_Subj = mkSubj "kur" ;
|
||||||
|
|
||||||
|
always_AdV = mkAdV "gjithmonë" ;
|
||||||
|
almost_AdA = mkAdA "pothuajse" ;
|
||||||
|
so_AdA = mkAdA "kaq" ;
|
||||||
|
too_AdA = mkAdA "tepër" ;
|
||||||
|
very_AdA = mkAdA "shumë" ;
|
||||||
|
almost_AdN = mkAdN "pothuajse" ;
|
||||||
|
at_least_AdN = mkAdN "të paktën" ;
|
||||||
|
at_most_AdN = mkAdN "më së shumti" ;
|
||||||
|
more_CAdv = {s="më";p="se"} ;
|
||||||
|
less_CAdv = {s="më pak";p="se"} ;
|
||||||
|
as_CAdv = {s="po aq";p="sa"} ;
|
||||||
|
|
||||||
|
here_Adv = mkAdv "këtu" ;
|
||||||
|
there_Adv = mkAdv "atje" ;
|
||||||
|
everywhere_Adv = mkAdv "kudo" ;
|
||||||
|
somewhere_Adv = mkAdv "diku" ;
|
||||||
|
here7from_Adv = mkAdv "nga këtu" ;
|
||||||
|
here7to_Adv = mkAdv "deri këtu" ;
|
||||||
|
there7from_Adv = mkAdv "nga atje" ;
|
||||||
|
there7to_Adv = mkAdv "deri atje" ;
|
||||||
|
quite_Adv = mkAdv "mjaft" ;
|
||||||
|
|
||||||
|
how_IAdv = mkIAdv "si" ;
|
||||||
|
how8much_IAdv = mkIAdv "sa" ;
|
||||||
|
when_IAdv = mkIAdv "kur" ;
|
||||||
|
where_IAdv = mkIAdv "ku" ;
|
||||||
|
why_IAdv = mkIAdv "pse" ;
|
||||||
|
which_IQuant = {s=table {Masc=>"cili";Fem=>"cila"}} ;
|
||||||
|
how8many_IDet = {s=\\_=>"sa";n=Pl} ;
|
||||||
|
whatSg_IP = {s="çfarë";a={gn=GSg Masc;p=P3}} ;
|
||||||
|
whatPl_IP = {s="çfarë";a={gn=GPl;p=P3}} ;
|
||||||
|
whoSg_IP = {s="kush";a={gn=GSg Masc;p=P3}} ;
|
||||||
|
whoPl_IP = {s="cilët";a={gn=GPl;p=P3}} ;
|
||||||
|
|
||||||
|
all_Predet = {s="të gjithë"} ;
|
||||||
|
most_Predet = {s="shumica e"} ;
|
||||||
|
not_Predet = {s="jo"} ;
|
||||||
|
only_Predet = {s="vetëm"} ;
|
||||||
|
|
||||||
|
every_Det = {s=\\_,_=>"çdo";post=\\_,_,_=>[];sp=Indef;n=Sg} ;
|
||||||
|
few_Det = {s=\\_,_=>"pak";post=\\_,_,_=>[];sp=Indef;n=Pl} ;
|
||||||
|
many_Det = {s=\\_,_=>"shumë";post=\\_,_,_=>[];sp=Indef;n=Pl} ;
|
||||||
|
much_Det = {s=\\_,_=>"shumë";post=\\_,_,_=>[];sp=Indef;n=Sg} ;
|
||||||
|
someSg_Det = {s=\\_,_=>"një";post=\\_,_,_=>[];sp=Indef;n=Sg} ;
|
||||||
|
somePl_Det = {s=\\_,_=>"disa";post=\\_,_,_=>[];sp=Indef;n=Pl} ;
|
||||||
|
no_Quant = mkQuant "asnjë" ;
|
||||||
|
|
||||||
|
everybody_NP = {s=\\_=>"të gjithë";a={gn=GPl;p=P3}} ;
|
||||||
|
everything_NP = {s=\\_=>"gjithçka";a={gn=GSg Masc;p=P3}} ;
|
||||||
|
nobody_NP = {s=\\_=>"askush";a={gn=GSg Masc;p=P3}} ;
|
||||||
|
nothing_NP = {s=\\_=>"asgjë";a={gn=GSg Masc;p=P3}} ;
|
||||||
|
somebody_NP = {s=\\_=>"dikush";a={gn=GSg Masc;p=P3}} ;
|
||||||
|
something_NP = {s=\\_=>"diçka";a={gn=GSg Masc;p=P3}} ;
|
||||||
|
|
||||||
|
can_VV = mkVV (mkV "mund") ;
|
||||||
|
can8know_VV = mkVV (irregV "di" "di" "di" "dimë" "dini" "dinë" "di" "dini" "ditur") ;
|
||||||
|
must_VV = mkVV (mkV "duhet") ;
|
||||||
|
want_VV = mkVV (irregV "dua" "do" "do" "duam" "doni" "duan" "duaj" "doni" "dashur") ;
|
||||||
|
have_V2 = mkV2 (irregV "kam" "ke" "ka" "kemi" "keni" "kanë" "ki" "kini" "pasur") ;
|
||||||
|
|
||||||
|
but_PConj = {s="por"} ;
|
||||||
|
otherwise_PConj = {s="përndryshe"} ;
|
||||||
|
therefore_PConj = {s="prandaj"} ;
|
||||||
|
please_Voc = {s="ju lutem"} ;
|
||||||
|
yes_Utt = {s="po"} ;
|
||||||
|
no_Utt = {s="jo"} ;
|
||||||
|
language_title_Utt = {s="shqip"} ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,150 @@
|
|||||||
|
concrete VerbSqi of Verb = CatSqi ** open Prelude, ParamX, ResSqi, (I=IrregSqi) in {
|
||||||
|
|
||||||
|
oper
|
||||||
|
verbVP : Verb -> VP = \v -> lin VP {
|
||||||
|
indicative = \\t,n,p,_,_ => v.indicative ! t ! n ! p ;
|
||||||
|
subjunctive = \\n,p,_,_ => subjunctiveForm v.vtype
|
||||||
|
(v.indicative ! ResSqi.Pres ! Sg ! P1)
|
||||||
|
(v.indicative ! ResSqi.Pres ! n ! p) n p ;
|
||||||
|
imperative = \\n,_ => v.imperative ! n ;
|
||||||
|
participle = \\_,c => v.participle ;
|
||||||
|
pres_optative = \\n,p,c => v.pres_optative ! n ! p ;
|
||||||
|
perf_optative = \\n,p,c => v.perf_optative ! n ! p ;
|
||||||
|
pres_admirative = \\n,p,c => v.pres_admirative ! n ! p ;
|
||||||
|
imperf_admirative = \\n,p,c => v.imperf_admirative ! n ! p ;
|
||||||
|
vtype = v.vtype
|
||||||
|
} ;
|
||||||
|
|
||||||
|
addVP : VP -> (Agr => Case => Str) -> VP = \vp,x -> vp ** {
|
||||||
|
indicative = \\t,n,p,g,c => vp.indicative ! t ! n ! p ! g ! c ++
|
||||||
|
x ! {gn=genNum g n; p=p} ! c ;
|
||||||
|
subjunctive = \\n,p,g,c => vp.subjunctive ! n ! p ! g ! c ++
|
||||||
|
x ! {gn=genNum g n; p=p} ! c ;
|
||||||
|
imperative = \\n,c => vp.imperative ! n ! c ++
|
||||||
|
x ! {gn=genNum Masc n; p=P2} ! c ;
|
||||||
|
participle = \\a,c => vp.participle ! a ! c ++ x ! a ! c ;
|
||||||
|
pres_optative = \\n,p,c => vp.pres_optative ! n ! p ! c ++
|
||||||
|
x ! {gn=genNum Masc n; p=p} ! c ;
|
||||||
|
perf_optative = \\n,p,c => vp.perf_optative ! n ! p ! c ++
|
||||||
|
x ! {gn=genNum Masc n; p=p} ! c ;
|
||||||
|
pres_admirative = \\n,p,c => vp.pres_admirative ! n ! p ! c ++
|
||||||
|
x ! {gn=genNum Masc n; p=p} ! c ;
|
||||||
|
imperf_admirative = \\n,p,c => vp.imperf_admirative ! n ! p ! c ++
|
||||||
|
x ! {gn=genNum Masc n; p=p} ! c
|
||||||
|
} ;
|
||||||
|
|
||||||
|
slashVP : Verb -> Compl -> VPSlash = \v,c -> lin VPSlash {
|
||||||
|
indicative=\\t,n,p=>v.indicative!t!n!p;
|
||||||
|
subjunctive=\\n,p=>subjunctiveForm v.vtype
|
||||||
|
(v.indicative!ResSqi.Pres!Sg!P1)
|
||||||
|
(v.indicative!ResSqi.Pres!n!p) n p;
|
||||||
|
imperative=\\n=>v.imperative!n;
|
||||||
|
participle=v.participle;
|
||||||
|
pres_optative=v.pres_optative;
|
||||||
|
perf_optative=v.perf_optative;
|
||||||
|
pres_admirative=v.pres_admirative;
|
||||||
|
imperf_admirative=v.imperf_admirative;
|
||||||
|
c2=c;
|
||||||
|
vtype=v.vtype
|
||||||
|
} ;
|
||||||
|
|
||||||
|
addSlash : VPSlash -> Str -> VPSlash = \sl,x -> sl ** {
|
||||||
|
indicative = \\t,n,p => sl.indicative ! t ! n ! p ++ x ;
|
||||||
|
subjunctive = \\n,p => sl.subjunctive ! n ! p ++ x ;
|
||||||
|
imperative = \\n => sl.imperative ! n ++ x ;
|
||||||
|
participle = sl.participle ++ x ;
|
||||||
|
pres_optative = \\n,p => sl.pres_optative ! n ! p ++ x ;
|
||||||
|
perf_optative = \\n,p => sl.perf_optative ! n ! p ++ x ;
|
||||||
|
pres_admirative = \\n,p => sl.pres_admirative ! n ! p ++ x ;
|
||||||
|
imperf_admirative = \\n,p => sl.imperf_admirative ! n ! p ++ x
|
||||||
|
} ;
|
||||||
|
|
||||||
|
slashToVP : VPSlash -> VP = \v -> lin VP {
|
||||||
|
indicative = \\t,n,p,g,c => v.indicative ! t ! n ! p ;
|
||||||
|
subjunctive = \\n,p,_,_ => v.subjunctive ! n ! p ;
|
||||||
|
imperative = \\n,c => v.imperative ! n ;
|
||||||
|
participle = \\_,c => v.participle ;
|
||||||
|
pres_optative = \\n,p,c => v.pres_optative ! n ! p ;
|
||||||
|
perf_optative = \\n,p,c => v.perf_optative ! n ! p ;
|
||||||
|
pres_admirative = \\n,p,c => v.pres_admirative ! n ! p ;
|
||||||
|
imperf_admirative = \\n,p,c => v.imperf_admirative ! n ! p ;
|
||||||
|
vtype = v.vtype
|
||||||
|
} ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
UseV v = verbVP v ;
|
||||||
|
SlashV2a v = slashVP v v.c2 ;
|
||||||
|
|
||||||
|
ComplSlash v np = addVP (slashToVP v) (\\_,_ => v.c2.s ++ np.s ! v.c2.c) ;
|
||||||
|
|
||||||
|
ComplVS v s = addVP (verbVP v) (\\_,_ => "që" ++ s.s) ;
|
||||||
|
ComplVQ v q = addVP (verbVP v) (\\_,_ => q.s) ;
|
||||||
|
ComplVA v ap = addVP (verbVP v) (\\a,c =>
|
||||||
|
ap.s ! Indef ! c ! agrGender a ! agrNumber a) ;
|
||||||
|
ComplVV v vp = addVP (verbVP v) (\\a,_ =>
|
||||||
|
"të" ++ vp.subjunctive ! agrNumber a ! a.p ! agrGender a ! Nom) ;
|
||||||
|
|
||||||
|
Slash2V3 v np = addSlash (slashVP (lin Verb v) v.c3)
|
||||||
|
(v.c2.s ++ np.s ! v.c2.c) ;
|
||||||
|
Slash3V3 v np = addSlash (slashVP (lin Verb v) v.c2)
|
||||||
|
(v.c3.s ++ np.s ! v.c3.c) ;
|
||||||
|
SlashV2S v s = addSlash (slashVP (lin Verb v) v.c2) ("që" ++ s.s) ;
|
||||||
|
SlashV2Q v q = addSlash (slashVP (lin Verb v) v.c2) q.s ;
|
||||||
|
SlashV2A v ap = addSlash (slashVP (lin Verb v) v.c2)
|
||||||
|
(ap.s ! Indef ! Nom ! Masc ! Sg) ;
|
||||||
|
SlashV2V v vp = addSlash (slashVP (lin Verb v) v.c2)
|
||||||
|
("të" ++ vp.subjunctive ! Sg ! P3 ! Masc ! Nom) ;
|
||||||
|
SlashVV v sl = sl ** {
|
||||||
|
indicative = \\t,n,p => v.indicative ! t ! n ! p ++ "të" ++ sl.subjunctive ! Sg ! P3 ;
|
||||||
|
subjunctive = \\n,p => subjunctiveForm v.vtype
|
||||||
|
(v.indicative!ResSqi.Pres!Sg!P1)
|
||||||
|
(v.indicative!ResSqi.Pres!n!p) n p ++ "të" ++ sl.subjunctive ! Sg ! P3
|
||||||
|
} ;
|
||||||
|
SlashV2VNP v np sl = sl ** {
|
||||||
|
indicative = \\t,n,p => v.indicative ! t ! n ! p ++ v.c2.s ++ np.s ! v.c2.c ++ "të" ++ sl.subjunctive ! Sg ! P3 ;
|
||||||
|
subjunctive = \\n,p => subjunctiveForm v.vtype
|
||||||
|
(v.indicative!ResSqi.Pres!Sg!P1)
|
||||||
|
(v.indicative!ResSqi.Pres!n!p) n p ++ v.c2.s ++ np.s ! v.c2.c ++ "të" ++ sl.subjunctive ! Sg ! P3
|
||||||
|
} ;
|
||||||
|
|
||||||
|
ReflVP sl = addVP (slashToVP sl) (\\_,_ => "veten") ;
|
||||||
|
UseComp comp = addVP (verbVP (lin Verb I.jam_V)) (\\a,_ => comp.s ! a) ;
|
||||||
|
UseCopula = verbVP (lin Verb I.jam_V) ;
|
||||||
|
PassV2 v = addVP (verbVP (lin Verb I.jam_V)) (\\_,_ => v.participle) ;
|
||||||
|
|
||||||
|
AdvVP vp adv = addVP vp (\\_,_ => adv.s) ;
|
||||||
|
ExtAdvVP vp adv = addVP vp (\\_,_ => SOFT_BIND ++ "," ++ adv.s) ;
|
||||||
|
AdVVP adv vp = vp ** {
|
||||||
|
indicative = \\t,n,p,g,c => adv.s ++ vp.indicative ! t ! n ! p ! g ! c ;
|
||||||
|
subjunctive = \\n,p,g,c => adv.s ++ vp.subjunctive ! n ! p ! g ! c ;
|
||||||
|
imperative = \\n,c => adv.s ++ vp.imperative ! n ! c
|
||||||
|
} ;
|
||||||
|
AdvVPSlash sl adv = sl ** {
|
||||||
|
indicative = \\t,n,p => sl.indicative ! t ! n ! p ++ adv.s ;
|
||||||
|
subjunctive = \\n,p => sl.subjunctive ! n ! p ++ adv.s ;
|
||||||
|
imperative = \\n => sl.imperative ! n ++ adv.s ;
|
||||||
|
participle = sl.participle ++ adv.s
|
||||||
|
} ;
|
||||||
|
AdVVPSlash adv sl = sl ** {
|
||||||
|
indicative = \\t,n,p => adv.s ++ sl.indicative ! t ! n ! p ;
|
||||||
|
subjunctive = \\n,p => adv.s ++ sl.subjunctive ! n ! p ;
|
||||||
|
imperative = \\n => adv.s ++ sl.imperative ! n
|
||||||
|
} ;
|
||||||
|
VPSlashPrep vp prep = lin VPSlash {
|
||||||
|
indicative = \\t,n,p => vp.indicative ! t ! n ! p ! Masc ! Nom ;
|
||||||
|
subjunctive = \\n,p => vp.subjunctive ! n ! p ! Masc ! Nom ;
|
||||||
|
imperative = \\n => vp.imperative ! n ! Nom ;
|
||||||
|
participle = vp.participle ! {gn=GSg Masc;p=P3} ! Nom ;
|
||||||
|
pres_optative = \\n,p => vp.pres_optative ! n ! p ! Nom ;
|
||||||
|
perf_optative = \\n,p => vp.perf_optative ! n ! p ! Nom ;
|
||||||
|
pres_admirative = \\n,p => vp.pres_admirative ! n ! p ! Nom ;
|
||||||
|
imperf_admirative = \\n,p => vp.imperf_admirative ! n ! p ! Nom ;
|
||||||
|
vtype = vp.vtype ;
|
||||||
|
c2 = prep
|
||||||
|
} ;
|
||||||
|
|
||||||
|
CompAP ap = {s = \\a => ap.s ! Indef ! Nom ! agrGender a ! agrNumber a} ;
|
||||||
|
CompNP np = {s = \\_ => np.s ! Nom} ;
|
||||||
|
CompAdv adv = {s = \\_ => adv.s} ;
|
||||||
|
CompCN cn = {s = \\_ => cn.s ! Indef ! Nom ! Sg} ;
|
||||||
|
}
|
||||||
@@ -128,10 +128,8 @@ C1eC2aC3 = {C1 ="" ; C1C2="'"; C2C3 ="!"; C3="#"};
|
|||||||
peC1aC2C3 = { C1 = "ä" ; C1C2="'"; C2C3 ="'"; C3=""};
|
peC1aC2C3 = { C1 = "ä" ; C1C2="'"; C2C3 ="'"; C3=""};
|
||||||
penC1aC2C3e = { C1 = "än" ; C1C2="'"; C2C3 ="'"; C3=""};
|
penC1aC2C3e = { C1 = "än" ; C1C2="'"; C2C3 ="'"; C3=""};
|
||||||
pteC1aC2C3 = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3=""};
|
pteC1aC2C3 = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3=""};
|
||||||
pteC1aC2C3 = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3=""};-- 3
|
|
||||||
pteC1aC2C3u = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3="&"};
|
pteC1aC2C3u = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3="&"};
|
||||||
pyeC1aC2C3 = { C1 = "y" ; C1C2="'"; C2C3 ="'"; C3=""};
|
pyeC1aC2C3 = { C1 = "y" ; C1C2="'"; C2C3 ="'"; C3=""};
|
||||||
pteC1aC2C3 = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3=""};
|
|
||||||
pyeC1aC2C3u = { C1 = "y" ; C1C2="'"; C2C3 ="'"; C3="&"};
|
pyeC1aC2C3u = { C1 = "y" ; C1C2="'"; C2C3 ="'"; C3="&"};
|
||||||
|
|
||||||
--Passive Jus_Imperat mkV3gdl
|
--Passive Jus_Imperat mkV3gdl
|
||||||
@@ -343,7 +341,6 @@ leC1AC2aC3 = {C1 ="l" ; C1C2="!"; C2C3 ="'"; C3=""};
|
|||||||
enC1AC2aC3 = { C1 = "(n" ; C1C2="!"; C2C3 ="'"; C3=""};
|
enC1AC2aC3 = { C1 = "(n" ; C1C2="!"; C2C3 ="'"; C3=""};
|
||||||
C1AC2aC3 = { C1 = "" ; C1C2="!"; C2C3 ="'"; C3=""};
|
C1AC2aC3 = { C1 = "" ; C1C2="!"; C2C3 ="'"; C3=""};
|
||||||
C1AC2aC3i = { C1 = "" ; C1C2="!"; C2C3 ="'"; C3="#"};
|
C1AC2aC3i = { C1 = "" ; C1C2="!"; C2C3 ="'"; C3="#"};
|
||||||
C1AC2aC3u = { C1 = "" ; C1C2="!"; C2C3 ="'"; C3="&"};
|
|
||||||
yC1AC2aC3 = { C1 = "y" ; C1C2="!"; C2C3 ="'"; C3=""};
|
yC1AC2aC3 = { C1 = "y" ; C1C2="!"; C2C3 ="'"; C3=""};
|
||||||
tC1AC2aC3 = { C1 = "t" ; C1C2="!"; C2C3 ="'"; C3=""};
|
tC1AC2aC3 = { C1 = "t" ; C1C2="!"; C2C3 ="'"; C3=""};
|
||||||
yC1AC2aC3u = { C1 = "y" ; C1C2="!"; C2C3 ="'"; C3="&"};
|
yC1AC2aC3u = { C1 = "y" ; C1C2="!"; C2C3 ="'"; C3="&"};
|
||||||
@@ -701,7 +698,6 @@ C1C2ek = { C1 = "" ; C1C2=""; C2 ="'k"};
|
|||||||
C1C2esh = { C1 = "" ; C1C2=""; C2 ="'x"};
|
C1C2esh = { C1 = "" ; C1C2=""; C2 ="'x"};
|
||||||
C1C2achehu = { C1 = "" ; C1C2=""; C2 ="!ch&"};
|
C1C2achehu = { C1 = "" ; C1C2=""; C2 ="!ch&"};
|
||||||
C1C2o = { C1 = "" ; C1C2=""; C2 ="/"};
|
C1C2o = { C1 = "" ; C1C2=""; C2 ="/"};
|
||||||
C1C2a = { C1 = "" ; C1C2=""; C2="!"};
|
|
||||||
C1C2ew = { C1 = "" ; C1C2=""; C2="'w"};
|
C1C2ew = { C1 = "" ; C1C2=""; C2="'w"};
|
||||||
|
|
||||||
--CompPer mkV2yz y!l'h& !l !l !l cX7l 7l l'c !l
|
--CompPer mkV2yz y!l'h& !l !l !l cX7l 7l l'c !l
|
||||||
@@ -721,81 +717,12 @@ meC1aC2= {C1 ="m'" ; C1C2="!"; C2 =""};
|
|||||||
--Infinitve mkV2yz
|
--Infinitve mkV2yz
|
||||||
C1aC2ii= {C1 ="" ; C1C2="!"; C2 ="#"};
|
C1aC2ii= {C1 ="" ; C1C2="!"; C2 ="#"};
|
||||||
|
|
||||||
|
|
||||||
--mkV2yz -- yz -- catch
|
|
||||||
--Perf --
|
|
||||||
C1AC2hu = {C1 ="" ; C1C2="!"; C2 ="h&"};
|
|
||||||
C1AC2n = { C1 = "" ; C1C2="!"; C2 ="n"};
|
|
||||||
C1AC2k = { C1 = "" ; C1C2="!"; C2 ="k"};
|
|
||||||
C1AC2sh = { C1 = "" ; C1C2="!"; C2 ="x"};
|
|
||||||
C1AC2achehu = { C1 = "" ; C1C2 ="!"; C2 ="!ch&"};
|
|
||||||
C1AC2a = { C1 = "" ; C1C2="!"; C2 ="'"};
|
|
||||||
C1AC2ach = { C1 = "" ; C1C2="!"; C2 ="'c"};
|
|
||||||
C1AC2u = { C1 = "" ; C1C2="!"; C2 ="&"};
|
|
||||||
-- Imper -- mkV2yz
|
|
||||||
eC1C2alehu = { C1 = "ä" ; C1C2=""; C2 ="!l'h&"};
|
|
||||||
enC1C2alen = { C1 = "än" ; C1C2=""; C2 ="!l'n"};
|
|
||||||
teC1C2yaleh = { C1 = "t" ; C1C2=""; C2 ="!l'h"};
|
|
||||||
teC1C2aleh = { C1 = "t" ; C1C2=""; C2 ="y!l'x"};
|
|
||||||
teC1C2alachehu = { C1 = "t" ; C1C2=""; C2 ="!l!ch&"};
|
|
||||||
yeC1C2al = { C1 = "y" ; C1C2=""; C2 ="!l"};
|
|
||||||
teC1C2alech = { C1 = "t" ; C1C2=""; C2 ="!l'c"};
|
|
||||||
yeC1C2alu = { C1 = "y" ; C1C2=""; C2 ="!l&"};
|
|
||||||
|
|
||||||
-- Cont -- mkV2yz
|
|
||||||
eC1C2 = { C1 = "ä" ; C1C2=""; C2 =""};
|
|
||||||
enC1C2 = { C1 = "än" ; C1C2=""; C2 =""};
|
|
||||||
teC1C2 = { C1 = "t" ; C1C2=""; C2 =""};
|
|
||||||
--teC1C2 = { C1 = "t" ; C1C2=""; C2 =""};3
|
|
||||||
teC1C2u = { C1 = "t" ; C1C2=""; C2 ="&"};
|
|
||||||
yeC1C2 = { C1 = "y" ; C1C2=""; C2 =""};
|
|
||||||
--teC1C2 = { C1 = "t" ; C1C2=""; C2 =""};
|
|
||||||
yeC1C2u = { C1 = "y" ; C1C2=""; C2 ="&"};
|
|
||||||
|
|
||||||
|
|
||||||
--Jus_Imperat mkV2yz
|
|
||||||
leC1aC2a = {C1 ="l" ; C1C2="!"; C2 =""};
|
|
||||||
enC1aC2a = { C1 = "än" ; C1C2="!"; C2 =""};
|
|
||||||
C1aC2 = { C1 = "" ; C1C2="!"; C2 =""};
|
|
||||||
C1aC2i = { C1 = "" ; C1C2="!"; C2 ="#"};
|
|
||||||
C1eC2u = { C1 = "" ; C1C2="!"; C2 ="&"};
|
|
||||||
yC1aC2a = { C1 = "y" ; C1C2="!"; C2 =""};
|
|
||||||
tC1aC2a = { C1 = "t" ; C1C2="!"; C2 =""};
|
|
||||||
yC1aC2u = { C1 = "y" ; C1C2="!"; C2 ="&"};
|
|
||||||
--Gerund mkV2yz
|
|
||||||
C1C2ie = {C1 ="" ; C1C2=""; C2 ="%"};
|
|
||||||
C1C2en = { C1 = "" ; C1C2=""; C2 ="'n"};
|
|
||||||
C1C2ek = { C1 = "" ; C1C2=""; C2 ="'k"};
|
|
||||||
C1C2esh = { C1 = "" ; C1C2=""; C2 ="'x"};
|
|
||||||
C1C2achehu = { C1 = "" ; C1C2=""; C2 ="!ch&"};
|
|
||||||
C1C2o = { C1 = "" ; C1C2=""; C2 ="/"};
|
|
||||||
C1C2a = { C1 = "" ; C1C2=""; C2="!"};
|
|
||||||
C1C2ew = { C1 = "" ; C1C2=""; C2="'w"};
|
|
||||||
|
|
||||||
--CompPer mkV2yz y!l'h& !l !l !l cX7l 7l l'c !l
|
|
||||||
C1C2iealehu = {C1 ="" ; C1C2=""; C2 ="%y!l'h&"};
|
|
||||||
C1C2enal = { C1 = "" ; C1C2=""; C2 ="'n!l"};
|
|
||||||
C1C2ekal = { C1 = "" ; C1C2=""; C2 ="'k!l"};
|
|
||||||
C1C2eshal = { C1 = "" ; C1C2=""; C2 ="'x!l"};
|
|
||||||
C1C2achehual = { C1 = "" ; C1C2=""; C2 ="!cX7l"};
|
|
||||||
C1C2oal = { C1 = "" ; C1C2=""; C2 ="7l"};
|
|
||||||
C1C2alech = { C1 = "" ; C1C2=""; C2="!l'c"};
|
|
||||||
C1C2ewal = { C1 = "" ; C1C2=""; C2="'w!l"};
|
|
||||||
|
|
||||||
|
|
||||||
--Infinitve mkV2yz
|
|
||||||
meC1aC2= {C1 ="m'" ; C1C2="!"; C2 =""};
|
|
||||||
|
|
||||||
--Infinitve mkV2yz
|
|
||||||
C1aC2ii= {C1 ="" ; C1C2="!"; C2 ="#"};
|
|
||||||
|
|
||||||
--nore -- nr -- live
|
--nore -- nr -- live
|
||||||
--Perf --
|
--Perf --
|
||||||
C1oC2hu = {C1 ="" ; C1C2="/"; C2 ="h&"};
|
C1oC2hu = {C1 ="" ; C1C2="/"; C2 ="h&"};
|
||||||
C1oC2n = { C1 = "" ; C1C2="/"; C2 ="n"};
|
C1oC2n = { C1 = "" ; C1C2="/"; C2 ="n"};
|
||||||
C1oC2k = { C1 = "" ; C1C2="/"; C2 ="k"};
|
C1oC2k = { C1 = "" ; C1C2="/"; C2 ="k"};
|
||||||
C1oC2sh = { C1 = "" ; C1C2="/"; C2 ="x"};
|
C1oC2sh = { C1 = "" ; C1C2="/"; C2 ="x"};
|
||||||
C1oC2achehu = { C1 = "" ; C1C2 ="/"; C2 ="!ch&"};
|
|
||||||
C1oC2a = { C1 = "" ; C1C2="/"; C2 ="'"};
|
C1oC2a = { C1 = "" ; C1C2="/"; C2 ="'"};
|
||||||
C1oC2ach = { C1 = "" ; C1C2="/"; C2 ="'c"};
|
C1oC2ach = { C1 = "" ; C1C2="/"; C2 ="'c"};
|
||||||
C1oC2u = { C1 = "" ; C1C2="/"; C2 ="&"};
|
C1oC2u = { C1 = "" ; C1C2="/"; C2 ="&"};
|
||||||
@@ -858,87 +785,12 @@ meC1oC2= {C1 ="m'" ; C1C2="/"; C2 =""};
|
|||||||
C1uaC2i= {C1 ="" ; C1C2="7"; C2 ="#"};
|
C1uaC2i= {C1 ="" ; C1C2="7"; C2 ="#"};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--nore -- nr -- live
|
|
||||||
--Perf --
|
|
||||||
C1oC2hu = {C1 ="" ; C1C2="/"; C2 ="h&"};
|
|
||||||
C1oC2n = { C1 = "" ; C1C2="/"; C2 ="n"};
|
|
||||||
C1oC2k = { C1 = "" ; C1C2="/"; C2 ="k"};
|
|
||||||
C1oC2sh = { C1 = "" ; C1C2="/"; C2 ="x"};
|
|
||||||
C1oC2achehu = { C1 = "" ; C1C2 ="/"; C2 ="!ch&"};
|
|
||||||
C1oC2a = { C1 = "" ; C1C2="/"; C2 ="'"};
|
|
||||||
C1oC2ach = { C1 = "" ; C1C2="/"; C2 ="'c"};
|
|
||||||
C1oC2u = { C1 = "" ; C1C2="/"; C2 ="&"};
|
|
||||||
-- Imper -- mkV2nr
|
|
||||||
eC1oC2alehu = { C1 = "ä" ; C1C2="/"; C2 ="!l'h&"};
|
|
||||||
enC1oC2alen = { C1 = "än" ; C1C2="/"; C2 ="!l'n"};
|
|
||||||
teC1oC2yaleh = { C1 = "t" ; C1C2="/"; C2 ="!l'h"};
|
|
||||||
teC1oC2alesh = { C1 = "t" ; C1C2="/"; C2 ="y!l'x"};
|
|
||||||
teC1oC2alachehu = { C1 = "t" ; C1C2="/"; C2 ="!l!ch&"};
|
|
||||||
yeC1oC2al = { C1 = "y" ; C1C2="/"; C2 ="!l"};
|
|
||||||
teC1oC2alech = { C1 = "t" ; C1C2="/"; C2 ="!l'c"};
|
|
||||||
yeC1oC2alu = { C1 = "y" ; C1C2="/"; C2 ="!l&"};
|
|
||||||
|
|
||||||
-- Imper -- mkV2nr
|
|
||||||
eC1oC2 = { C1 = "ä" ; C1C2="/"; C2 =""};
|
|
||||||
enC1oC2 = { C1 = "än" ; C1C2="/"; C2 =""};
|
|
||||||
teC1oC2 = { C1 = "t" ; C1C2="/"; C2 =""};
|
|
||||||
teC1oC2i = { C1 = "t" ; C1C2="/"; C2 ="#"};
|
|
||||||
teC1oC2u = { C1 = "t" ; C1C2="/"; C2 ="&"};
|
|
||||||
yeC1oC2 = { C1 = "y" ; C1C2="/"; C2 =""};
|
|
||||||
--teC1oC2 = { C1 = "t" ; C1C2="/"; C2 ="!l'c"};
|
|
||||||
yeC1oC2u = { C1 = "y" ; C1C2="/"; C2 ="&"};
|
|
||||||
|
|
||||||
--Jus_Imperat mkV2nr
|
|
||||||
leC1uC2 = {C1 ="l" ; C1C2="&"; C2 =""};
|
|
||||||
enC1uC2 = { C1 = "än" ; C1C2="&"; C2 =""};
|
|
||||||
C1uC2 = { C1 = "" ; C1C2="&"; C2 =""};
|
|
||||||
C1uC2i = { C1 = "" ; C1C2="&"; C2 ="#"};
|
|
||||||
C1uC2u = { C1 = "" ; C1C2="&"; C2 ="&"};
|
|
||||||
yC1uC2 = { C1 = "y" ; C1C2="&"; C2 =""};
|
|
||||||
tC1uC2 = { C1 = "t" ; C1C2="&"; C2 =""};
|
|
||||||
yC1uC2u = { C1 = "y" ; C1C2="&"; C2 ="&"};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--Gerund mkV2nr
|
|
||||||
C1oC2ie = {C1 ="" ; C1C2="/"; C2 ="%"};
|
|
||||||
C1oC2en = { C1 = "" ; C1C2="/"; C2 ="'n"};
|
|
||||||
C1oC2ek = { C1 = "" ; C1C2="/"; C2 ="'k"};
|
|
||||||
C1oC2esh = { C1 = "" ; C1C2="/"; C2 ="'x"};
|
|
||||||
C1oC2achehu = { C1 = "" ; C1C2="/"; C2 ="!ch&"};
|
|
||||||
C1oC2o = { C1 = "" ; C1C2="/"; C2 ="/"};
|
|
||||||
C1oC2A = { C1 = "" ; C1C2="/"; C2="!"};
|
|
||||||
C1oC2ew = { C1 = "" ; C1C2="/"; C2="'w"};
|
|
||||||
|
|
||||||
--CompPer mkV2nr y!l'h& !l !l !l cX7l 7l l'c !l
|
|
||||||
C1oC2iealehu = {C1 ="" ; C1C2="/"; C2 ="%y!l'h& "};
|
|
||||||
C1oC2enal = { C1 = "" ; C1C2="/"; C2 ="'n!l"};
|
|
||||||
C1oC2ekal = { C1 = "" ; C1C2="/"; C2 ="'k!l"};
|
|
||||||
C1oC2eshal = { C1 = "" ; C1C2="/"; C2 ="'x!l"};
|
|
||||||
C1oC2achehual = { C1 = "" ; C1C2="/"; C2 ="!cX7l"};
|
|
||||||
C1oC2oal = { C1 = "" ; C1C2="/"; C2 ="7l"};
|
|
||||||
C1oC2Alech = { C1 = "" ; C1C2="/"; C2="!l'c"};
|
|
||||||
C1oC2ewal = { C1 = "" ; C1C2="/"; C2="'w!l"};
|
|
||||||
|
|
||||||
--Infinitve mkV2nr
|
|
||||||
meC1oC2= {C1 ="m'" ; C1C2="/"; C2 =""};
|
|
||||||
|
|
||||||
--Participle mkV2nr
|
|
||||||
C1uaC2i= {C1 ="" ; C1C2="7"; C2 ="#"};
|
|
||||||
|
|
||||||
|
|
||||||
--mkV2wN -- wN -- swim --- Eg lie, see, say
|
--mkV2wN -- wN -- swim --- Eg lie, see, say
|
||||||
--Perf --
|
--Perf --
|
||||||
C1AC2ehu = {C1 ="" ; C1C2="!"; C2 ="'h&"};
|
C1AC2ehu = {C1 ="" ; C1C2="!"; C2 ="'h&"};
|
||||||
C1AC2en = { C1 = "" ; C1C2="!"; C2 ="'n"};
|
C1AC2en = { C1 = "" ; C1C2="!"; C2 ="'n"};
|
||||||
C1AC2ek = { C1 = "" ; C1C2="!"; C2 ="'k"};
|
C1AC2ek = { C1 = "" ; C1C2="!"; C2 ="'k"};
|
||||||
C1AC2esh = { C1 = "" ; C1C2="!"; C2 ="'x"};
|
C1AC2esh = { C1 = "" ; C1C2="!"; C2 ="'x"};
|
||||||
--C1AC2achehu = { C1 = "" ; C1C2 ="!"; C2 ="!ch&"};
|
|
||||||
--C1AC2a = { C1 = "" ; C1C2="!"; C2 ="'"};
|
|
||||||
--C1AC2ach = { C1 = "" ; C1C2="!"; C2 ="'c"};
|
|
||||||
--C1AC2u = { C1 = "" ; C1C2="!"; C2 ="&"};
|
|
||||||
-- Imper -- mkV2wN
|
-- Imper -- mkV2wN
|
||||||
eC1aC2alehu = { C1 = "ä" ; C1C2="!"; C2 ="!l'h&"};
|
eC1aC2alehu = { C1 = "ä" ; C1C2="!"; C2 ="!l'h&"};
|
||||||
enC1aC2alen = { C1 = "än" ; C1C2="!"; C2 ="!l'n"};
|
enC1aC2alen = { C1 = "än" ; C1C2="!"; C2 ="!l'n"};
|
||||||
@@ -992,74 +844,6 @@ C1aC2tewal = { C1 = "" ; C1C2="!"; C2="t'w!l"};
|
|||||||
meC1aC2et= {C1 ="m'" ; C1C2="!"; C2 ="'t"};
|
meC1aC2et= {C1 ="m'" ; C1C2="!"; C2 ="'t"};
|
||||||
--nore -- nr -- live
|
--nore -- nr -- live
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--mkV2wN -- wN -- swim --- Eg lie, see, say
|
|
||||||
--Perf --
|
|
||||||
C1AC2ehu = {C1 ="" ; C1C2="!"; C2 ="'h&"};
|
|
||||||
C1AC2en = { C1 = "" ; C1C2="!"; C2 ="'n"};
|
|
||||||
C1AC2ek = { C1 = "" ; C1C2="!"; C2 ="'k"};
|
|
||||||
C1AC2esh = { C1 = "" ; C1C2="!"; C2 ="'x"};
|
|
||||||
--C1AC2achehu = { C1 = "" ; C1C2 ="!"; C2 ="!ch&"};
|
|
||||||
--C1AC2a = { C1 = "" ; C1C2="!"; C2 ="'"};
|
|
||||||
--C1AC2ach = { C1 = "" ; C1C2="!"; C2 ="'c"};
|
|
||||||
--C1AC2u = { C1 = "" ; C1C2="!"; C2 ="&"};
|
|
||||||
-- Imper -- mkV2wN
|
|
||||||
eC1aC2alehu = { C1 = "ä" ; C1C2="!"; C2 ="!l'h&"};
|
|
||||||
enC1aC2alen = { C1 = "än" ; C1C2="!"; C2 ="!l'n"};
|
|
||||||
teC1aC2yaleh = { C1 = "t" ; C1C2="!"; C2 ="!l'h"};
|
|
||||||
teC1aC2alesh = { C1 = "t" ; C1C2="!"; C2 ="y!l'x"};
|
|
||||||
teC1aC2alachehu = { C1 = "t" ; C1C2="!"; C2 ="!l!ch&"};
|
|
||||||
yeC1aC2al = { C1 = "y" ; C1C2="!"; C2 ="!l"};
|
|
||||||
teC1aC2alech = { C1 = "t" ; C1C2="!"; C2 ="!l'c"};
|
|
||||||
yeC1aC2alu = { C1 = "y" ; C1C2="!"; C2 ="!l&"};
|
|
||||||
|
|
||||||
-- Cont -- mkV2wN
|
|
||||||
eC1aC2 = { C1 = "ä" ; C1C2="!"; C2 =""};
|
|
||||||
enC1aC2 = { C1 = "än" ; C1C2="!"; C2 =""};
|
|
||||||
teC1aC2 = { C1 = "t" ; C1C2="!"; C2 =""};
|
|
||||||
--teC1aC2 = { C1 = "t" ; C1C2="!"; C2 =""};
|
|
||||||
teC1aC2u = { C1 = "t" ; C1C2="!"; C2 ="&"};
|
|
||||||
yeC1aC2 = { C1 = "y" ; C1C2="!"; C2 =""};
|
|
||||||
--teC1aC2 = { C1 = "t" ; C1C2="!"; C2 =""};
|
|
||||||
yeC1aC2u = { C1 = "y" ; C1C2="!"; C2 ="&"};
|
|
||||||
|
|
||||||
--Jus_Imperat mkV2wN
|
|
||||||
--leC1aC2a = {C1 ="l" ; C1C2="!"; C2 =""};
|
|
||||||
--enC1aC2a = { C1 = "än" ; C1C2="!"; C2 =""};
|
|
||||||
--C1aC2 = { C1 = "" ; C1C2="!"; C2 =""};
|
|
||||||
--C1aC2i = { C1 = "" ; C1C2="!"; C2 ="#"};
|
|
||||||
--C1eC2u = { C1 = "" ; C1C2="!"; C2 ="&"};
|
|
||||||
--yC1aC2a = { C1 = "y" ; C1C2="!"; C2 =""};
|
|
||||||
--tC1aC2a = { C1 = "t" ; C1C2="!"; C2 =""};
|
|
||||||
--yC1aC2u = { C1 = "y" ; C1C2="!"; C2 ="&"};
|
|
||||||
--Gerund mkV2wN
|
|
||||||
C1aC2cie = {C1 ="" ; C1C2="!"; C2 ="c%"};
|
|
||||||
C1aC2ten = { C1 = "" ; C1C2="!"; C2 ="t'n"};
|
|
||||||
C1aC2tek = { C1 = "" ; C1C2="!"; C2 ="t'k"};
|
|
||||||
C1aC2tesh = { C1 = "" ; C1C2="!"; C2 ="t'x"};
|
|
||||||
C1aC2tachehu = { C1 = "" ; C1C2="!"; C2 ="t!ch&"};
|
|
||||||
C1aC2to = { C1 = "" ; C1C2="!"; C2 ="t/"};
|
|
||||||
C1aC2ta = { C1 = "" ; C1C2="!"; C2="t!"};
|
|
||||||
C1aC2tew = { C1 = "" ; C1C2="!"; C2="t'w"};
|
|
||||||
|
|
||||||
--ComPer mkV2wN y!l'h& !l !l !l cX7l 7l l'c !l
|
|
||||||
C1aC2ciealehu = {C1 ="" ; C1C2="!"; C2 ="c%y!l'h&"};
|
|
||||||
C1aC2tenal = { C1 = "" ; C1C2="!"; C2 ="t'n!l"};
|
|
||||||
C1aC2tekal = { C1 = "" ; C1C2="!"; C2 ="t'k!l"};
|
|
||||||
C1aC2teshal = { C1 = "" ; C1C2="!"; C2 ="t'x!l"};
|
|
||||||
C1aC2tachehual = { C1 = "" ; C1C2="!"; C2 ="t!cX7l"};
|
|
||||||
C1aC2toal = { C1 = "" ; C1C2="!"; C2 ="t7l"};
|
|
||||||
C1aC2talech = { C1 = "" ; C1C2="!"; C2="t!l'c"};
|
|
||||||
C1aC2tewal = { C1 = "" ; C1C2="!"; C2="t'w!l"};
|
|
||||||
|
|
||||||
--Infinitve mkV2wN
|
|
||||||
meC1aC2et= {C1 ="m'" ; C1C2="!"; C2 ="'t"};
|
|
||||||
--nore -- nr -- live
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
----------- This much is enough for the duo-radicals---
|
----------- This much is enough for the duo-radicals---
|
||||||
--There are few verbs still remaining like the case of shete, hede , --washe, aye, ale , all need unique froms for them selves. I will get --back here later!!
|
--There are few verbs still remaining like the case of shete, hede , --washe, aye, ale , all need unique froms for them selves. I will get --back here later!!
|
||||||
|
|
||||||
@@ -1109,63 +893,8 @@ tC1eC2 = { C1 = "t" ; C1C2=""; C2 =""};
|
|||||||
meC1C2et= {C1 ="m'" ; C1C2=""; C2 ="'t"};
|
meC1C2et= {C1 ="m'" ; C1C2=""; C2 ="'t"};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
----------- This much is enough for the duo-radicals---
|
|
||||||
--There are few verbs still remaining like the case of shete, hede , --washe, aye, ale , all need unique froms for them selves. I will get --back here later!!
|
|
||||||
|
|
||||||
--seTe -- st -- give
|
|
||||||
--Perf --
|
|
||||||
C1eC2hu = {C1 ="" ; C1C2="'"; C2 ="'h&"};
|
|
||||||
C1eC2n = { C1 = "" ; C1C2="'"; C2 ="'n"};
|
|
||||||
C1eC2k = { C1 = "" ; C1C2="'"; C2 ="'k"};
|
|
||||||
C1eC2sh = { C1 = "" ; C1C2="'"; C2 ="'x"};
|
|
||||||
C1eC2achehu = { C1 = "" ; C1C2 ="'"; C2 ="'ch&"};
|
|
||||||
C1eC2a = { C1 = "" ; C1C2="'"; C2 ="'"};
|
|
||||||
C1eC2ach = { C1 = "" ; C1C2="'"; C2 ="'c"};
|
|
||||||
--C1eC2u = { C1 = "" ; C1C2="'"; C2 ="&"}; same as C1aC2u (bela)
|
|
||||||
-- Imper -- mkV2sT
|
|
||||||
--eC1eC2alehu = { C1 = "ä" ; C1C2="'"; C2 ="!l'h&"}; eC1aC2alehu
|
|
||||||
--enC1eC2alen = { C1 = "än" ; C1C2="'"; C2 ="!l'n"};enC1aC2alen
|
|
||||||
--teC1eC2yaleh = { C1 = "t" ; C1C2="'"; C2 ="!l'h"};teC1aC2yaleh
|
|
||||||
--teC1eC2aleh = { C1 = "t" ; C1C2="'"; C2 ="y!l'x"};teC1aC2aleh
|
|
||||||
--teC1eC2alachehu = { C1 = "t" ; C1C2="'"; C2 ="!l!ch&"};teC1aC2alachehu
|
|
||||||
--yeC1eC2al = { C1 = "y" ; C1C2="'"; C2 ="!l"};yeC1aC2al
|
|
||||||
--teC1eC2alech = { C1 = "t" ; C1C2="'"; C2 ="!l'c"};teC1aC2alech
|
|
||||||
--yeC1eC2alu = { C1 = "y" ; C1C2="'"; C2 ="!l&"};yeC1aC2alu
|
|
||||||
|
|
||||||
--Jus_Imperat mkV2sT
|
|
||||||
|
|
||||||
leC1eC2 = {C1 ="l" ; C1C2=""; C2 =""};
|
|
||||||
enC1eC2 = { C1 = "än" ; C1C2=""; C2 =""};
|
|
||||||
C1C2 = { C1 = "" ; C1C2=""; C2 =""};
|
|
||||||
C1eC2i = { C1 = "" ; C1C2=""; C2 ="#"};
|
|
||||||
--C1eC2u = { C1 = "" ; C1C2=""; C2 ="&"}; C1C2u
|
|
||||||
yC1eC2 = { C1 = "y" ; C1C2=""; C2 =""};
|
|
||||||
tC1eC2 = { C1 = "t" ; C1C2=""; C2 =""};
|
|
||||||
--yC1eC2u = { C1 = "y" ; C1C2=""; C2 ="&"};yC1C2u
|
|
||||||
|
|
||||||
|
|
||||||
--Gerund mkV2sT
|
|
||||||
|
|
||||||
--C1eC2ie = {C1 ="" ; C1C2="'"; C2 ="c%"}; C1aC2cie
|
|
||||||
--C1eC2en = { C1 = "" ; C1C2="'"; C2 ="'n"};C1aC2ten
|
|
||||||
--C1eC2ek = { C1 = "" ; C1C2="'"; C2 ="'k"}; C1aC2tek
|
|
||||||
--C1eC2esh = { C1 = "" ; C1C2="'"; C2 ="'x"}; C1aC2tesh
|
|
||||||
--C1eC2achehu = { C1 = "" ; C1C2="'"; C2 ="!ch&"};C1aC2tachehu
|
|
||||||
--C1eC2o = { C1 = "" ; C1C2="'"; C2 ="/"};C1aC2to
|
|
||||||
--C1eC2A = { C1 = "" ; C1C2="'"; C2="!"};C1aC2ta
|
|
||||||
--C1eC2ew = { C1 = "" ; C1C2="'"; C2="'w"}; C1aC2tew
|
|
||||||
--Infinitve mkV2sT
|
|
||||||
meC1C2et= {C1 ="m'" ; C1C2=""; C2 ="'t"};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
---- Quadro_Radical
|
---- Quadro_Radical
|
||||||
|
|
||||||
|
|
||||||
--Starting with type Tri-Radical Roots
|
--Starting with type Tri-Radical Roots
|
||||||
-- Eg. dbdb - fight
|
-- Eg. dbdb - fight
|
||||||
-- qzqz - freeze
|
-- qzqz - freeze
|
||||||
@@ -1238,152 +967,4 @@ meC1aC2C3aC4 = {C1 ="m'" ; C1C2="'"; C2C3 =""; C3C4="'"; C4= "" };
|
|||||||
--Participle mkV4dbdb
|
--Participle mkV4dbdb
|
||||||
C1eC2C3aC4i = {C1 ="" ; C1C2="'"; C2C3 =""; C3C4="!"; C4= "#" };
|
C1eC2C3aC4i = {C1 ="" ; C1C2="'"; C2C3 =""; C3C4="!"; C4= "#" };
|
||||||
|
|
||||||
|
|
||||||
---- Quadro_Radical
|
|
||||||
|
|
||||||
|
|
||||||
--Starting with type Tri-Radical Roots
|
|
||||||
-- Eg. dbdb - fight
|
|
||||||
-- qzqz - freeze
|
|
||||||
-- wrwr - throw
|
|
||||||
-- tnfs - breath
|
|
||||||
|
|
||||||
--Perf --
|
|
||||||
C1aC2aC3aC4hu = {C1 ="" ; C1C2="'"; C2C3 ="'"; C3C4="'"; C4= "h&" };
|
|
||||||
C1aC2aC3aC4n = { C1 = "" ; C1C2="'"; C2C3 ="'"; C3C4="'"; C4= "n" };
|
|
||||||
C1aC2aC3aC4k = { C1 = "" ; C1C2="'"; C2C3 ="'"; C3C4="'"; C4= "k" };
|
|
||||||
C1aC2aC3aC4sh = { C1 = "" ; C1C2="'"; C2C3 ="'"; C3C4="'"; C4= "x" };
|
|
||||||
C1aC2aC3aC4achehu = { C1 = "" ; C1C2="'"; C2C3 ="'"; C3C4="'"; C4= "!ch&" };
|
|
||||||
C1aC2aC3aC4a = { C1 = "" ; C1C2="'"; C2C3 ="'"; C3C4="'"; C4= "'" };
|
|
||||||
C1aC2aC3aC4ech = { C1 = "" ; C1C2="'"; C2C3 ="'"; C3C4="'"; C4= "'c" };
|
|
||||||
C1aC2aC3aC4u = { C1 = "" ; C1C2="'"; C2C3 ="'"; C3C4="'"; C4= "&" };
|
|
||||||
--Imper --mkV4dbdb
|
|
||||||
eC1aC2aC3C4alehu = { C1 = "ä" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "!l'h&" };
|
|
||||||
enC1aC2aC3C4alen = { C1 = "än" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "!l'n" };
|
|
||||||
teC1aC2aC3C4yaleh = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "!l'h" };
|
|
||||||
teC1aC2aC3C4aleh = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "y!l'x" };
|
|
||||||
teC1aC2aC3C4alachehu = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "!l!ch&" };
|
|
||||||
yeC1aC2aC3C4al = { C1 = "y" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "!l" };
|
|
||||||
teC1aC2aC3C4alech = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "!l'c" };
|
|
||||||
yeC1aC2aC3C4alu = { C1 = "y" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "!l&" };
|
|
||||||
|
|
||||||
--Cont --mkV4dbdb
|
|
||||||
eC1aC2aC3C4 = { C1 = "ä" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "" };
|
|
||||||
enC1aC2aC3C4 = { C1 = "än" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "" };
|
|
||||||
teC1aC2aC3C4 = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "" };
|
|
||||||
teC1aC2aC3C4i = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "#" };
|
|
||||||
teC1aC2aC3C4u = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "&" };
|
|
||||||
yeC1aC2aC3C4 = { C1 = "y" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "" };
|
|
||||||
--teC1aC2aC3C4 = { C1 = "t" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "" };
|
|
||||||
yeC1aC2aC3C4u = { C1 = "y" ; C1C2="'"; C2C3 ="'"; C3C4=""; C4= "&" };
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--Jus_Imperat mkV4dbdb
|
|
||||||
leC1aC2C3C4 = {C1 ="l" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "" };
|
|
||||||
enC1aC2C3C4 = { C1 = "än" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "" };
|
|
||||||
C1aC2C3C4 = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "" };
|
|
||||||
C1aC2C3C4i = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "#" };
|
|
||||||
C1aC2C3C4u = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "&" };
|
|
||||||
yC1aC2C3C4 = { C1 = "y" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "" };
|
|
||||||
tC1aC2C3C4 = { C1 = "t" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "" };
|
|
||||||
yC1aC2C3C4u = { C1 = "y" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "&" };
|
|
||||||
--Gerund mkV4dbdb
|
|
||||||
C1aC2C3C4ie = {C1 ="" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "%" };
|
|
||||||
C1aC2C3C4en = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "'n" };
|
|
||||||
C1aC2C3C4ek = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "'k" };
|
|
||||||
C1aC2C3C4esh = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "'x" };
|
|
||||||
C1aC2C3C4achehu = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "!ch&" };
|
|
||||||
C1aC2C3C4o = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "/" };
|
|
||||||
C1aC2C3C4a = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "!" };
|
|
||||||
C1aC2C3C4ew = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "'w" };
|
|
||||||
|
|
||||||
--CompPerf mkV4dbdb y!l'h& !l !l !l cX7l 7l l'c !l
|
|
||||||
C1aC2C3C4iealehu = {C1 ="" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "%y!l'h&" };
|
|
||||||
C1aC2C3C4enal = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "'n!l" };
|
|
||||||
C1aC2C3C4ekal = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "'k!l" };
|
|
||||||
C1aC2C3C4eshal = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "'x!l" };
|
|
||||||
C1aC2C3C4achehual = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "!cX7l" };
|
|
||||||
C1aC2C3C4oal = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "7l" };
|
|
||||||
C1aC2C3C4alech = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "!l'c" };
|
|
||||||
C1aC2C3C4ewal = { C1 = "" ; C1C2="'"; C2C3 =""; C3C4=""; C4= "'w!l" };
|
|
||||||
|
|
||||||
--Infinitve mkV4dbdb
|
|
||||||
meC1aC2C3aC4 = {C1 ="m'" ; C1C2="'"; C2C3 =""; C3C4="'"; C4= "" };
|
|
||||||
|
|
||||||
--Participle mkV4dbdb
|
|
||||||
C1eC2C3aC4i = {C1 ="" ; C1C2="'"; C2C3 =""; C3C4="!"; C4= "#" };
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{-
|
|
||||||
resource PatternsAmh = {
|
|
||||||
|
|
||||||
flags coding=utf8 ;
|
|
||||||
|
|
||||||
oper
|
|
||||||
--perf
|
|
||||||
C1aC2aC3ku = {C1 ="" ; C1C2="ኧ"; C2C3 ="ኧ"; C3="ኩ"};
|
|
||||||
C1aC2aC3n = { C1 = "" ; C1C2="ኧ"; C2C3 ="ኧ"; C3="ን"};
|
|
||||||
C1aC2aC3k = { C1 = "" ; C1C2="ኧ"; C2C3 ="ኧ"; C3="ክ"};
|
|
||||||
C1aC2aC3sh = { C1 = "" ; C1C2="ኧ"; C2C3 ="ኧ"; C3="ሽ"};
|
|
||||||
C1aC2aC3achehu = { C1 = "" ; C1C2="ኧ"; C2C3 ="ኧ"; C3="አችሁ"};
|
|
||||||
C1aC2aC3e = { C1 = "" ; C1C2="ኧ"; C2C3 ="ኧ"; C3="ኧ"};
|
|
||||||
C1aC2aC3ech = { C1 = "" ; C1C2="ኧ"; C2C3 ="ኧ"; C3="ኧች"};
|
|
||||||
C1aC2aC3u = { C1 = "" ; C1C2="ኧ"; C2C3 ="ኧ"; C3="ኡ"};
|
|
||||||
|
|
||||||
--imper
|
|
||||||
eC1aC2C3alehu = { C1 = "እ" ; C1C2="ኧ"; C2C3 =""; C3="አለሁ"};
|
|
||||||
enC1aC2C3alen = { C1 = "እን" ; C1C2="ኧ"; C2C3 =""; C3="አለን"};
|
|
||||||
teC1aC2C3yaleh = { C1 = "ት" ; C1C2="ኧ"; C2C3 =""; C3="አለህ"};
|
|
||||||
teC1aC2C3aleh = { C1 = "ት" ; C1C2="ኧ"; C2C3 =""; C3="ያለሽ"};
|
|
||||||
teC1aC2C3alachehu = { C1 = "ት" ; C1C2="ኧ"; C2C3 =""; C3="አላችሁ"};
|
|
||||||
yeC1aC2C3al = { C1 = "ይ" ; C1C2="ኧ"; C2C3 =""; C3="አል"};
|
|
||||||
teC1aC2C3alech = { C1 = "ት" ; C1C2="ኧ"; C2C3 =""; C3="አለች"};
|
|
||||||
yeC1aC2C3alu = { C1 = "ይ" ; C1C2="ኧ"; C2C3 =""; C3="አሉ"};
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
-}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -22,12 +22,9 @@ concrete PhraseAmh of Phrase = CatAmh ** open
|
|||||||
UttIP ip = ip ; --- Acc also
|
UttIP ip = ip ; --- Acc also
|
||||||
UttVP vp = {s = vp.obj.s ++ vp.inf} ;
|
UttVP vp = {s = vp.obj.s ++ vp.inf} ;
|
||||||
UttIAdv iadv = iadv ;
|
UttIAdv iadv = iadv ;
|
||||||
UttCN n = {s = n.s ! Sg ! Indef!Nom} ;
|
|
||||||
UttCard n = {s = n.s ! Masc!Sg!Indef!Nom} ;
|
|
||||||
UttImpSg pol imp = {s = pol.s ++ imp.s!pol.p!Masc!Sg};
|
UttImpSg pol imp = {s = pol.s ++ imp.s!pol.p!Masc!Sg};
|
||||||
UttImpPl pol imp = {s = pol.s ++ imp.s ! pol.p! Masc! Pl} ; --- TO DO
|
UttImpPl pol imp = {s = pol.s ++ imp.s ! pol.p! Masc! Pl} ; --- TO DO
|
||||||
UttImpPol pol imp = {s = pol.s ++ imp.s ! pol.p ! Masc!Pl} ; -- TO DO ---
|
UttImpPol pol imp = {s = pol.s ++ imp.s ! pol.p ! Masc!Pl} ; -- TO DO ---
|
||||||
UttQS qs = {s = qs.s } ; -- TO DO
|
|
||||||
{-
|
{-
|
||||||
|
|
||||||
PConjConj conj = {s = conj.s2} ; ---
|
PConjConj conj = {s = conj.s2} ; ---
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
--# -path=.:../maltese:../common:../abstract:../prelude
|
--# -path=.:../maltese:../common:../abstract:../prelude
|
||||||
|
|
||||||
resource TryMlt = SyntaxMlt, LexiconMlt, ParadigmsMlt - [mkAdN, mkAdv,mkOrd,mkQuant] **
|
resource TryMlt = SyntaxMlt, LexiconMlt, ParadigmsMlt - [mkAdN, mkAdv,mkCard,mkDet,mkIAdv,mkIDet,mkOrd,mkPConj,mkQuant,mkVoc] **
|
||||||
open (P = ParadigmsMlt) in {
|
open (P = ParadigmsMlt) in {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ concrete ExtendAra of Extend =
|
|||||||
CatAra ** ExtendFunctor - [
|
CatAra ** ExtendFunctor - [
|
||||||
GenNP, ApposNP, ICompAP, DetNPMasc, DetNPFem,
|
GenNP, ApposNP, ICompAP, DetNPMasc, DetNPFem,
|
||||||
EmptyRelSlash, PredAPVP,
|
EmptyRelSlash, PredAPVP,
|
||||||
ComplDirectVS, ComplDirectVQ, -- because of Utt
|
ComplDirectVS, ComplDirectVQ, UttAdV, -- because of Utt
|
||||||
VPS, MkVPS, PredVPS, BaseVPS, ConsVPS, ConjVPS,
|
VPS, MkVPS, PredVPS, BaseVPS, ConsVPS, ConjVPS,
|
||||||
EmbedSSlash, AdjAsNP, GerundNP,
|
EmbedSSlash, AdjAsNP, GerundNP,
|
||||||
PassVPSlash, ---- bogus implementation, see below
|
PassVPSlash, ---- bogus implementation, see below
|
||||||
@@ -31,6 +31,8 @@ lin
|
|||||||
-- : NP -> NP -> NP
|
-- : NP -> NP -> NP
|
||||||
ApposNP np1 np2 = np2 ** {s = \\c => np1.s ! c ++ np2.s ! c} ;
|
ApposNP np1 np2 = np2 ** {s = \\c => np1.s ! c ++ np2.s ! c} ;
|
||||||
|
|
||||||
|
UttAdV adv = {s = \\_ => adv.s} ;
|
||||||
|
|
||||||
-- : AP -> IComp ; -- "how old"
|
-- : AP -> IComp ; -- "how old"
|
||||||
ICompAP ap = {s = \\gn => "كَمْ" ++ ap.s ! NoHum ! gn.g ! gn.n ! Indef ! Acc} ;
|
ICompAP ap = {s = \\gn => "كَمْ" ++ ap.s ! NoHum ! gn.g ! gn.n ! Indef ! Acc} ;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,19 @@
|
|||||||
concrete AdjectiveHye of Adjective = CatHye ** {
|
concrete AdjectiveHye of Adjective = CatHye ** open ResHye, Prelude in {
|
||||||
lin
|
lin
|
||||||
PositA a = a ;
|
AdAP ada ap = {
|
||||||
|
s = \\sp,c,num => ada.s ++ ap.s ! sp ! c ! num;
|
||||||
|
isPre = ap.isPre
|
||||||
|
} ;
|
||||||
|
PositA a = {
|
||||||
|
s = \\sp,c,num =>
|
||||||
|
case <sp,c> of {
|
||||||
|
<Def,Nom> => a.def_nom ! num ;
|
||||||
|
<Def,Dat> => a.def_dat ! num ;
|
||||||
|
<Poss P1,_> => a.poss1 ! c ! num ;
|
||||||
|
<Poss P2,_> => a.poss2 ! c ! num ;
|
||||||
|
_ => a.s ! c ! num
|
||||||
|
} ;
|
||||||
|
isPre = True
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
concrete AdverbHye of Adverb = CatHye ** open Prelude,ResHye in {
|
||||||
|
lin PrepNP p np = {s = case p.isPre of {
|
||||||
|
False => np.s ! p.c ++ p.s;
|
||||||
|
True => p.s ++ np.s ! p.c
|
||||||
|
}} ;
|
||||||
|
}
|
||||||
+62
-15
@@ -1,16 +1,63 @@
|
|||||||
concrete CatHye of Cat = CommonX ** open ResHye in {
|
concrete CatHye of Cat = CommonX ** open Prelude,ResHye in {
|
||||||
|
lincat A = Adj ;
|
||||||
lincat V = Verb ;
|
lincat A2 = Adj ** {c2 : Compl} ;
|
||||||
lincat VV,VS,VQ,VA = Verb ;
|
lincat ACard = {s : Str} ;
|
||||||
lincat V2 = Verb ** {c2 : Compl} ;
|
lincat AP = {s : Species => Case => Number => Str; isPre : Bool} ;
|
||||||
lincat V3,V2A,V2S,V2Q,V2V = Verb ** {c2,c3 : Compl} ;
|
lincat CN = {s : Species => Case => Number => Str} ;
|
||||||
lincat N = Noun ;
|
lincat Card = {s : Str} ;
|
||||||
lincat N2 = Noun ** {c2 : Compl} ;
|
lincat Cl = {s : Str;
|
||||||
lincat N3 = Noun ** {c2,c3 : Compl} ;
|
conditional : Aspect => Number => Str;
|
||||||
lincat CN = Noun ;
|
converb : {imperfective : Str; futCon1 : Str;
|
||||||
lincat A = Adj ;
|
futCon2 : Str; negative : Str;
|
||||||
lincat A2 = Adj ** {c2 : Compl} ;
|
perfective : Str; simultaneous : Str};
|
||||||
lincat AP = Adj ;
|
passive : Str; past : Person => Number => Str;
|
||||||
lincat Prep = Compl ;
|
participle : PartType => Str;
|
||||||
|
subjunctive : Aspect => Number => Str} ;
|
||||||
|
lincat ClSlash = {s : Str} ;
|
||||||
|
lincat Comp = {s : Str} ;
|
||||||
|
lincat Conj = {s : Str} ;
|
||||||
|
lincat DAP = {s : Str} ;
|
||||||
|
lincat Decimal = {s : Str} ;
|
||||||
|
lincat Det = {s : Str; n : Number; sp : Species} ;
|
||||||
|
lincat Digits = {s : Str} ;
|
||||||
|
lincat GN = {s : Str} ;
|
||||||
|
lincat IComp = {s : Str} ;
|
||||||
|
lincat IDet = {s : Str} ;
|
||||||
|
lincat IP = {s : Str} ;
|
||||||
|
lincat IQuant = {s : Str} ;
|
||||||
|
lincat Imp = {s : Str} ;
|
||||||
|
lincat LN = {s : Str} ;
|
||||||
|
lincat N = Noun ;
|
||||||
|
lincat N2 = Noun ** {c2 : Compl} ;
|
||||||
|
lincat N3 = Noun ** {c2,c3 : Compl} ;
|
||||||
|
lincat NP = {s : Case => Str; a : Agr} ;
|
||||||
|
lincat Num = {s : Str; n : Number} ;
|
||||||
|
lincat Numeral = {s : Str} ;
|
||||||
|
lincat Ord = {s : Str} ;
|
||||||
|
lincat PN = {s : Str} ;
|
||||||
|
lincat Predet = {s : Str} ;
|
||||||
|
lincat Prep = Compl ** {isPre : Bool} ;
|
||||||
|
lincat Pron = {s : Str; empty : Str; a : Agr} ;
|
||||||
|
lincat QCl = {s : Str} ;
|
||||||
|
lincat QS = {s : Str} ;
|
||||||
|
lincat Quant = {s : Str; sp : Species} ;
|
||||||
|
lincat RCl = {s : Str} ;
|
||||||
|
lincat RP = {s : Str} ;
|
||||||
|
lincat RS = {s : Str} ;
|
||||||
|
lincat S = {s : Str} ;
|
||||||
|
lincat SN = {s : Str} ;
|
||||||
|
lincat SSlash = {s : Str} ;
|
||||||
|
lincat Subj = {s : Str} ;
|
||||||
|
lincat V = Verb ;
|
||||||
|
lincat VV,VS,VQ,VA = Verb ;
|
||||||
|
lincat V2 = Verb ** {c2 : Compl} ;
|
||||||
|
lincat V3,V2A,V2S,V2Q,V2V = Verb ** {c2,c3 : Compl} ;
|
||||||
|
lincat VP = {s : Str;
|
||||||
|
conditional : Aspect => Person => Number => Str;
|
||||||
|
converb : {imperfective : Str; futCon1 : Str; futCon2 : Str;
|
||||||
|
negative : Str; perfective : Str; simultaneous : Str};
|
||||||
|
imperative : Number => Str; passive : Str;
|
||||||
|
past : Person => Number => Str; participle : PartType => Str;
|
||||||
|
subjunctive : Aspect => Person => Number => Str} ;
|
||||||
|
lincat VPSlash = Verb ** {c2 : Compl} ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,50 +15,50 @@ lin
|
|||||||
paragraph (x.s) ++
|
paragraph (x.s) ++
|
||||||
heading1 "Converb" ++
|
heading1 "Converb" ++
|
||||||
frameTable (
|
frameTable (
|
||||||
tr (th "Imperfective" ++ td (x.Converb.Imperfective)) ++
|
tr (th "Imperfective" ++ td (x.converb.imperfective)) ++
|
||||||
tr (th "Simultaneous" ++ td (x.Converb.Simultaneous)) ++
|
tr (th "Simultaneous" ++ td (x.converb.simultaneous)) ++
|
||||||
tr (th "Perfective" ++ td (x.Converb.Perfective)) ++
|
tr (th "Perfective" ++ td (x.converb.perfective)) ++
|
||||||
tr (th "Futute I" ++ td (x.Converb.FutCon1)) ++
|
tr (th "Futute I" ++ td (x.converb.futCon1)) ++
|
||||||
tr (th "Futute II" ++ td (x.Converb.FutCon2)) ++
|
tr (th "Futute II" ++ td (x.converb.futCon2)) ++
|
||||||
tr (th "Connegative" ++ td (x.Converb.Negative))) ++
|
tr (th "Connegative" ++ td (x.converb.negative))) ++
|
||||||
heading1 "Passive" ++
|
heading1 "Passive" ++
|
||||||
paragraph x.Passive ++
|
paragraph x.passive ++
|
||||||
heading1 "Participle" ++
|
heading1 "Participle" ++
|
||||||
frameTable (
|
frameTable (
|
||||||
tr (th "Resultative" ++ td (x.Participle ! Resultative)) ++
|
tr (th "Resultative" ++ td (x.participle ! Resultative)) ++
|
||||||
tr (th "Subject" ++ td (x.Participle ! Subject))) ++
|
tr (th "Subject" ++ td (x.participle ! Subject))) ++
|
||||||
heading1 "Past" ++
|
heading1 "Past" ++
|
||||||
frameTable (
|
frameTable (
|
||||||
tr (th "" ++ th "Sg" ++ th "Pl") ++
|
tr (th "" ++ th "Sg" ++ th "Pl") ++
|
||||||
tr (th "P1" ++ td (x.Past ! P1 ! Sg) ++ td (x.Past ! P1 ! Pl)) ++
|
tr (th "P1" ++ td (x.past ! P1 ! Sg) ++ td (x.past ! P1 ! Pl)) ++
|
||||||
tr (th "P2" ++ td (x.Past ! P2 ! Sg) ++ td (x.Past ! P2 ! Pl)) ++
|
tr (th "P2" ++ td (x.past ! P2 ! Sg) ++ td (x.past ! P2 ! Pl)) ++
|
||||||
tr (th "P3" ++ td (x.Past ! P3 ! Sg) ++ td (x.Past ! P3 ! Pl))) ++
|
tr (th "P3" ++ td (x.past ! P3 ! Sg) ++ td (x.past ! P3 ! Pl))) ++
|
||||||
heading1 "Subjunctive" ++
|
heading1 "Subjunctive" ++
|
||||||
frameTable (
|
frameTable (
|
||||||
tr (intagAttr "th" "colspan=\"2\"" "" ++ th "Sg" ++ th "Pl") ++
|
tr (intagAttr "th" "colspan=\"2\"" "" ++ th "Sg" ++ th "Pl") ++
|
||||||
tr (intagAttr "th" "rowspan=\"3\"" "Perfect" ++
|
tr (intagAttr "th" "rowspan=\"3\"" "Perfect" ++
|
||||||
th "P1" ++ td (x.Subjunctive ! Perfect ! P1 ! Sg) ++ td (x.Subjunctive ! Perfect ! P1 ! Pl)) ++
|
th "P1" ++ td (x.subjunctive ! Perfect ! P1 ! Sg) ++ td (x.subjunctive ! Perfect ! P1 ! Pl)) ++
|
||||||
tr (th "P2" ++ td (x.Subjunctive ! Perfect ! P2 ! Sg) ++ td (x.Subjunctive ! Perfect ! P2 ! Pl)) ++
|
tr (th "P2" ++ td (x.subjunctive ! Perfect ! P2 ! Sg) ++ td (x.subjunctive ! Perfect ! P2 ! Pl)) ++
|
||||||
tr (th "P3" ++ td (x.Subjunctive ! Perfect ! P3 ! Sg) ++ td (x.Subjunctive ! Perfect ! P3 ! Pl)) ++
|
tr (th "P3" ++ td (x.subjunctive ! Perfect ! P3 ! Sg) ++ td (x.subjunctive ! Perfect ! P3 ! Pl)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"3\"" "Non_Past" ++
|
tr (intagAttr "th" "rowspan=\"3\"" "Non_Past" ++
|
||||||
th "P1" ++ td (x.Subjunctive ! Non_Past ! P1 ! Sg) ++ td (x.Subjunctive ! Non_Past ! P1 ! Pl)) ++
|
th "P1" ++ td (x.subjunctive ! Non_Past ! P1 ! Sg) ++ td (x.subjunctive ! Non_Past ! P1 ! Pl)) ++
|
||||||
tr (th "P2" ++ td (x.Subjunctive ! Non_Past ! P2 ! Sg) ++ td (x.Subjunctive ! Non_Past ! P2 ! Pl)) ++
|
tr (th "P2" ++ td (x.subjunctive ! Non_Past ! P2 ! Sg) ++ td (x.subjunctive ! Non_Past ! P2 ! Pl)) ++
|
||||||
tr (th "P3" ++ td (x.Subjunctive ! Non_Past ! P3 ! Sg) ++ td (x.Subjunctive ! Non_Past ! P3 ! Pl))) ++
|
tr (th "P3" ++ td (x.subjunctive ! Non_Past ! P3 ! Sg) ++ td (x.subjunctive ! Non_Past ! P3 ! Pl))) ++
|
||||||
heading1 "Conditional" ++
|
heading1 "Conditional" ++
|
||||||
frameTable (
|
frameTable (
|
||||||
tr (intagAttr "th" "colspan=\"2\"" "" ++ th "Sg" ++ th "Pl") ++
|
tr (intagAttr "th" "colspan=\"2\"" "" ++ th "Sg" ++ th "Pl") ++
|
||||||
tr (intagAttr "th" "rowspan=\"3\"" "Perfect" ++
|
tr (intagAttr "th" "rowspan=\"3\"" "Perfect" ++
|
||||||
th "P1" ++ td (x.Conditional ! Perfect ! P1 ! Sg) ++ td (x.Conditional ! Perfect ! P1 ! Pl)) ++
|
th "P1" ++ td (x.conditional ! Perfect ! P1 ! Sg) ++ td (x.conditional ! Perfect ! P1 ! Pl)) ++
|
||||||
tr (th "P2" ++ td (x.Conditional ! Perfect ! P2 ! Sg) ++ td (x.Conditional ! Perfect ! P2 ! Pl)) ++
|
tr (th "P2" ++ td (x.conditional ! Perfect ! P2 ! Sg) ++ td (x.conditional ! Perfect ! P2 ! Pl)) ++
|
||||||
tr (th "P3" ++ td (x.Conditional ! Perfect ! P3 ! Sg) ++ td (x.Conditional ! Perfect ! P3 ! Pl)) ++
|
tr (th "P3" ++ td (x.conditional ! Perfect ! P3 ! Sg) ++ td (x.conditional ! Perfect ! P3 ! Pl)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"4\"" "Non_Past" ++
|
tr (intagAttr "th" "rowspan=\"4\"" "Non_Past" ++
|
||||||
th "P1" ++ td (x.Conditional ! Non_Past ! P1 ! Sg) ++ td (x.Conditional ! Non_Past ! P1 ! Pl)) ++
|
th "P1" ++ td (x.conditional ! Non_Past ! P1 ! Sg) ++ td (x.conditional ! Non_Past ! P1 ! Pl)) ++
|
||||||
tr (th "P2" ++ td (x.Conditional ! Non_Past ! P2 ! Sg) ++ td (x.Conditional ! Non_Past ! P2 ! Pl)) ++
|
tr (th "P2" ++ td (x.conditional ! Non_Past ! P2 ! Sg) ++ td (x.conditional ! Non_Past ! P2 ! Pl)) ++
|
||||||
tr (th "P3" ++ td (x.Conditional ! Non_Past ! P3 ! Sg) ++ td (x.Conditional ! Non_Past ! P3 ! Pl))) ++
|
tr (th "P3" ++ td (x.conditional ! Non_Past ! P3 ! Sg) ++ td (x.conditional ! Non_Past ! P3 ! Pl))) ++
|
||||||
heading1 "Imperative" ++
|
heading1 "Imperative" ++
|
||||||
frameTable (
|
frameTable (
|
||||||
tr (th "Sg" ++ th "Pl") ++
|
tr (th "Sg" ++ th "Pl") ++
|
||||||
tr (td (x.Imperative_Jussive ! Sg) ++ td (x.Imperative_Jussive ! Pl))) ;
|
tr (td (x.imperative ! Sg) ++ td (x.imperative ! Pl))) ;
|
||||||
s3=[]
|
s3=[]
|
||||||
} ;
|
} ;
|
||||||
lin
|
lin
|
||||||
|
|||||||
@@ -2,5 +2,9 @@ concrete GrammarHye of Grammar =
|
|||||||
TenseX,
|
TenseX,
|
||||||
PhraseHye,
|
PhraseHye,
|
||||||
NounHye,
|
NounHye,
|
||||||
AdjectiveHye ** {
|
VerbHye,
|
||||||
|
AdjectiveHye,
|
||||||
|
AdverbHye,
|
||||||
|
SentenceHye,
|
||||||
|
StructuralHye ** {
|
||||||
}
|
}
|
||||||
@@ -1,2 +1,5 @@
|
|||||||
concrete LexiconHye of Lexicon = CatHye ** open ParadigmsHye in {
|
concrete LexiconHye of Lexicon = CatHye ** open ParadigmsHye in {
|
||||||
|
lin apple_N = mkN001 "խնձոր" ;
|
||||||
|
lin man_N = mkN047 "տղամարդ" ;
|
||||||
|
lin woman_N = mkN034 "կին" ;
|
||||||
}
|
}
|
||||||
+375
-375
File diff suppressed because it is too large
Load Diff
+34
-3
@@ -1,4 +1,35 @@
|
|||||||
concrete NounHye of Noun = CatHye ** {
|
concrete NounHye of Noun = CatHye ** open ResHye in {
|
||||||
lin
|
lin AdjCN ap cn = {
|
||||||
UseN n = n ;
|
s = \\sp,c,n =>
|
||||||
|
case ap.isPre of {
|
||||||
|
True => ap.s ! Indef ! Nom ! Sg ++ cn.s ! sp ! c ! n;
|
||||||
|
False => cn.s ! sp ! c ! n ++ ap.s ! Indef ! Nom ! Sg
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
lin AdvCN cn adv = {
|
||||||
|
s = \\sp,c,num => adv.s ++ cn.s ! sp ! c ! num
|
||||||
|
} ;
|
||||||
|
lin DefArt = {s = []; sp = Def} ;
|
||||||
|
lin DetCN det cn = {s = \\c => det.s ++ cn.s ! det.sp ! c ! det.n;
|
||||||
|
a = {n=det.n; p=P3}} ;
|
||||||
|
lin DetQuant quant num = {s = quant.s ++ num.s; n = num.n; sp=quant.sp} ;
|
||||||
|
lin IndefArt = {s = "մի"; sp = Indef} ;
|
||||||
|
lin NumPl = {s = []; n = Pl} ;
|
||||||
|
lin NumSg = {s = []; n = Sg} ;
|
||||||
|
lin MassNP cn = {
|
||||||
|
s = \\c => cn.s ! Indef ! c ! Sg;
|
||||||
|
a = {n=Sg; p=P3}
|
||||||
|
} ;
|
||||||
|
lin PossPron pron = {s = pron.empty; sp = Poss pron.a.p} ;
|
||||||
|
lin UseN n = {
|
||||||
|
s = \\sp,c,num =>
|
||||||
|
case <sp,c> of {
|
||||||
|
<Def,Nom> => n.def_nom ! num ;
|
||||||
|
<Def,Dat> => n.def_dat ! num ;
|
||||||
|
<Poss P1,_> => n.poss1 ! c ! num ;
|
||||||
|
<Poss P2,_> => n.poss2 ! c ! num ;
|
||||||
|
_ => n.s ! c ! num
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
lin UsePron pron = {s = \\c => pron.s; a=pron.a} ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -468,16 +468,19 @@ oper
|
|||||||
mkInterj : Str -> Interj = \s -> lin Interj {s=s} ;
|
mkInterj : Str -> Interj = \s -> lin Interj {s=s} ;
|
||||||
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False} ;
|
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False} ;
|
||||||
|
|
||||||
mkPrep : Str -> Prep = \s -> lin Prep {s=s; c=Dat} ;
|
mkPrep : Str -> Prep = \s -> lin Prep {s=s; c=Dat; isPre=False} ;
|
||||||
|
|
||||||
|
singular : Number = Sg ;
|
||||||
|
plural : Number = Pl ;
|
||||||
|
|
||||||
mkIAdv : Str -> IAdv = \s -> lin IAdv {s=s} ;
|
mkIAdv : Str -> IAdv = \s -> lin IAdv {s=s} ;
|
||||||
mkIP : Str -> IP = \s -> lin IP {s=s} ;
|
mkIP : Str -> IP = \s -> lin IP {s=s} ;
|
||||||
mkIQuant : Str -> IQuant = \s -> lin IQuant {s=s} ;
|
mkIQuant : Str -> IQuant = \s -> lin IQuant {s=s} ;
|
||||||
mkIDet : Str -> IDet = \s -> lin IDet {s=s} ;
|
mkIDet : Str -> IDet = \s -> lin IDet {s=s} ;
|
||||||
mkSubj : Str -> Subj = \s -> lin Subj {s=s} ;
|
mkSubj : Str -> Subj = \s -> lin Subj {s=s} ;
|
||||||
mkQuant : Str -> Quant = \s -> lin Quant {s=s} ;
|
mkQuant : Str -> Quant = \s -> lin Quant {s=s; sp=Indef} ;
|
||||||
|
mkDet : Str -> Number -> Det = \s,n -> lin Det {s=s; n=n; sp=Indef} ;
|
||||||
mkPredet : Str -> Predet = \s -> lin Predet {s=s} ;
|
mkPredet : Str -> Predet = \s -> lin Predet {s=s} ;
|
||||||
mkDet : Str -> Det = \s -> lin Det {s=s} ;
|
|
||||||
mkCard : Str -> Card = \s -> lin Card {s=s} ;
|
mkCard : Str -> Card = \s -> lin Card {s=s} ;
|
||||||
mkConj : Str -> Conj = \s -> lin Conj {s=s} ;
|
mkConj : Str -> Conj = \s -> lin Conj {s=s} ;
|
||||||
mkPConj : Str -> PConj = \s -> lin PConj {s=s} ;
|
mkPConj : Str -> PConj = \s -> lin PConj {s=s} ;
|
||||||
@@ -488,4 +491,10 @@ oper
|
|||||||
mkSN : Str -> SN = \s -> lin SN {s=s} ;
|
mkSN : Str -> SN = \s -> lin SN {s=s} ;
|
||||||
mkPN : Str -> PN = \s -> lin PN {s=s} ;
|
mkPN : Str -> PN = \s -> lin PN {s=s} ;
|
||||||
|
|
||||||
|
mkPron : Str -> Number -> Person -> Pron = \s,n,p ->
|
||||||
|
lin Pron {
|
||||||
|
s = s ;
|
||||||
|
empty = [] ;
|
||||||
|
a = {n = n; p = p}
|
||||||
|
} ;
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-18
@@ -1,16 +1,14 @@
|
|||||||
resource ResHye = {
|
resource ResHye = ParamX ** {
|
||||||
|
|
||||||
param Aspect = Non_Past | Perfect ;
|
param Aspect = Non_Past | Perfect ;
|
||||||
param Person = P1 | P3 | P2 ;
|
|
||||||
param Number = Sg | Pl ;
|
|
||||||
param Case = Nom | Dat | Ablat | Instr | Loc ;
|
param Case = Nom | Dat | Ablat | Instr | Loc ;
|
||||||
param PartType = Resultative | Subject ;
|
param PartType = Resultative | Subject ;
|
||||||
oper Verb = {s: Str; Causative: Str; Conditional: Aspect => Person => Number => Str; Converb: {Imperfective: Str; FutCon1: Str; FutCon2: Str; Negative: Str; Perfective: Str; Simultaneous: Str}; Imperative_Jussive: Number => Str; Passive: Str; Past: Person => Number => Str; Participle: PartType => Str; Subjunctive: Aspect => Person => Number => Str} ; -- 898
|
oper Verb = {s: Str; causative: Str; conditional: Aspect => Person => Number => Str; converb: {imperfective: Str; futCon1: Str; futCon2: Str; negative: Str; perfective: Str; simultaneous: Str}; imperative: Number => Str; passive: Str; past: Person => Number => Str; participle: PartType => Str; subjunctive: Aspect => Person => Number => Str} ; -- 898
|
||||||
oper mkVerb : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Verb =
|
oper mkVerb : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Verb =
|
||||||
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18,f19,f20,f21,f22,f23,f24,f25,f26,f27,f28,f29,f30,f31,f32,f33,f34,f35,f36,f37,f38,f39,f40,f41,f42,f43 ->
|
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18,f19,f20,f21,f22,f23,f24,f25,f26,f27,f28,f29,f30,f31,f32,f33,f34,f35,f36,f37,f38,f39,f40,f41,f42,f43 ->
|
||||||
{ s = f1 ;
|
{ s = f1 ;
|
||||||
Causative = f2 ;
|
causative = f2 ;
|
||||||
Conditional = table {
|
conditional = table {
|
||||||
Perfect => table {
|
Perfect => table {
|
||||||
P1 => table {
|
P1 => table {
|
||||||
Sg => f3 ;
|
Sg => f3 ;
|
||||||
@@ -40,19 +38,19 @@ oper mkVerb : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
Converb = { Imperfective = f15 ;
|
converb = { imperfective = f15 ;
|
||||||
FutCon1 = f16 ;
|
futCon1 = f16 ;
|
||||||
FutCon2 = f17 ;
|
futCon2 = f17 ;
|
||||||
Negative = f18 ;
|
negative = f18 ;
|
||||||
Perfective = f19 ;
|
perfective = f19 ;
|
||||||
Simultaneous = f20
|
simultaneous = f20
|
||||||
} ;
|
} ;
|
||||||
Imperative_Jussive = table {
|
imperative = table {
|
||||||
Sg => f21 ;
|
Sg => f21 ;
|
||||||
Pl => f22
|
Pl => f22
|
||||||
} ;
|
} ;
|
||||||
Passive = f23 ;
|
passive = f23 ;
|
||||||
Past = table {
|
past = table {
|
||||||
P1 => table {
|
P1 => table {
|
||||||
Sg => f24 ;
|
Sg => f24 ;
|
||||||
Pl => f25
|
Pl => f25
|
||||||
@@ -66,11 +64,11 @@ oper mkVerb : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_
|
|||||||
Pl => f29
|
Pl => f29
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
Participle = table {
|
participle = table {
|
||||||
Resultative => f30 ;
|
Resultative => f30 ;
|
||||||
Subject => f31
|
Subject => f31
|
||||||
} ;
|
} ;
|
||||||
Subjunctive = table {
|
subjunctive = table {
|
||||||
Perfect => table {
|
Perfect => table {
|
||||||
P1 => table {
|
P1 => table {
|
||||||
Sg => f32 ;
|
Sg => f32 ;
|
||||||
@@ -102,7 +100,8 @@ oper mkVerb : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_
|
|||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
param Species = Indef | Def | Poss Person ;
|
||||||
|
oper Agr = {n : Number; p : Person} ;
|
||||||
oper Noun = {s: Case => Number => Str; def_dat: Number => Str; def_nom: Number => Str; poss1: Case => Number => Str; poss2: Case => Number => Str} ; -- 4880
|
oper Noun = {s: Case => Number => Str; def_dat: Number => Str; def_nom: Number => Str; poss1: Case => Number => Str; poss2: Case => Number => Str} ; -- 4880
|
||||||
oper mkNoun : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Noun =
|
oper mkNoun : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Noun =
|
||||||
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18,f19,f20,f21,f22,f23,f24,f25,f26,f27,f28,f29,f30,f31,f32,f33,f34 ->
|
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18,f19,f20,f21,f22,f23,f24,f25,f26,f27,f28,f29,f30,f31,f32,f33,f34 ->
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
concrete SentenceHye of Sentence = CatHye ** open Prelude,ResHye in {
|
||||||
|
lin PredVP np vp = {s = np.s ! Nom ++ vp.s;
|
||||||
|
conditional = \\a,n => np.s ! Nom ++ vp.conditional ! a ! P3 ! n;
|
||||||
|
converb = {imperfective = np.s ! Nom ++ vp.converb.imperfective;
|
||||||
|
futCon1 = np.s ! Nom ++ vp.converb.futCon1;
|
||||||
|
futCon2 = np.s ! Nom ++ vp.converb.futCon2;
|
||||||
|
negative = np.s ! Nom ++ vp.converb.negative;
|
||||||
|
perfective = np.s ! Nom ++ vp.converb.perfective;
|
||||||
|
simultaneous = np.s ! Nom ++ vp.converb.simultaneous};
|
||||||
|
passive = np.s ! Nom ++ vp.passive;
|
||||||
|
past = \\_,n => np.s ! Nom ++ vp.past ! P3 ! n;
|
||||||
|
participle = \\p => np.s ! Nom ++ vp.participle ! p;
|
||||||
|
subjunctive = \\a,n => np.s ! Nom ++ vp.subjunctive ! a ! P3 ! n} ;
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
concrete StructuralHye of Structural = CatHye ** open ResHye, ParadigmsHye in {
|
||||||
|
lin i_Pron = mkPron "ես" Sg P1 ;
|
||||||
|
lin youSg_Pron = mkPron "դու" Sg P2 ;
|
||||||
|
lin he_Pron, she_Pron, it_Pron = mkPron "նա" Sg P3 ;
|
||||||
|
lin we_Pron = mkPron "մեք" Pl P1 ;
|
||||||
|
lin youPl_Pron = mkPron "դուք" Pl P2 ;
|
||||||
|
lin they_Pron = mkPron "նոքա" Pl P3 ;
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
concrete VerbHye of Verb = CatHye ** open Prelude,ResHye in {
|
||||||
|
lin AdvVP vp adv = {s = adv.s ++ vp.s;
|
||||||
|
conditional = \\a,p,n => adv.s ++ vp.conditional ! a ! p ! n;
|
||||||
|
converb = {imperfective = adv.s ++ vp.converb.imperfective;
|
||||||
|
futCon1 = adv.s ++ vp.converb.futCon1;
|
||||||
|
futCon2 = adv.s ++ vp.converb.futCon2;
|
||||||
|
negative = adv.s ++ vp.converb.negative;
|
||||||
|
perfective = adv.s ++ vp.converb.perfective;
|
||||||
|
simultaneous = adv.s ++ vp.converb.simultaneous};
|
||||||
|
imperative = \\n => vp.imperative ! n ++ adv.s;
|
||||||
|
passive = adv.s ++ vp.passive;
|
||||||
|
past = \\p,n => adv.s ++ vp.past ! p ! n;
|
||||||
|
participle = \\p => adv.s ++ vp.participle ! p;
|
||||||
|
subjunctive = \\a,p,n => adv.s ++ vp.subjunctive ! a ! p ! n} ;
|
||||||
|
lin ComplSlash vp np = {s = vp.s ++ vp.c2.s ++ np.s ! vp.c2.c;
|
||||||
|
conditional = \\a,p,n => vp.conditional ! a ! p ! n
|
||||||
|
++ vp.c2.s ++ np.s ! vp.c2.c;
|
||||||
|
converb = {imperfective = vp.converb.imperfective
|
||||||
|
++ vp.c2.s ++ np.s ! vp.c2.c;
|
||||||
|
futCon1 = vp.converb.futCon1 ++ vp.c2.s ++ np.s ! vp.c2.c;
|
||||||
|
futCon2 = vp.converb.futCon2 ++ vp.c2.s ++ np.s ! vp.c2.c;
|
||||||
|
negative = vp.converb.negative ++ vp.c2.s ++ np.s ! vp.c2.c;
|
||||||
|
perfective = vp.converb.perfective
|
||||||
|
++ vp.c2.s ++ np.s ! vp.c2.c;
|
||||||
|
simultaneous = vp.converb.simultaneous
|
||||||
|
++ vp.c2.s ++ np.s ! vp.c2.c};
|
||||||
|
imperative = \\n => vp.imperative ! n ++ vp.c2.s ++ np.s ! Nom;
|
||||||
|
passive = vp.passive ++ vp.c2.s ++ np.s ! vp.c2.c;
|
||||||
|
past = \\p,n => vp.past ! p ! n ++ vp.c2.s ++ np.s ! vp.c2.c;
|
||||||
|
participle = \\p => vp.participle ! p ++ vp.c2.s ++ np.s ! vp.c2.c;
|
||||||
|
subjunctive = \\a,p,n => vp.subjunctive ! a ! p ! n
|
||||||
|
++ vp.c2.s ++ np.s ! vp.c2.c} ;
|
||||||
|
lin SlashV2a v = v ;
|
||||||
|
lin UseV v = v ;
|
||||||
|
}
|
||||||
@@ -1,4 +1,14 @@
|
|||||||
concrete AdjectiveBel of Adjective = CatBel ** {
|
concrete AdjectiveBel of Adjective = CatBel ** open ResBel in {
|
||||||
lin
|
lin
|
||||||
PositA a = a ;
|
PositA a = a ;
|
||||||
|
ComparA a np = {s = \\c,gn => "больш" ++ a.s ! c ! gn ++ "за" ++ np.s ! Acc} ;
|
||||||
|
ComplA2 a np = {s = \\c,gn => a.s ! c ! gn ++ prepNP a.c2 np} ;
|
||||||
|
ReflA2 a = {s = \\c,gn => a.s ! c ! gn ++ "да сябе"} ;
|
||||||
|
UseA2 a = a ;
|
||||||
|
UseComparA a = {s = \\c,gn => "больш" ++ a.s ! c ! gn} ;
|
||||||
|
CAdvAP cadv ap np = {s = \\c,gn => cadv.s ++ ap.s ! c ! gn ++ cadv.p ++ np.s ! Nom} ;
|
||||||
|
AdjOrd ord = ord ;
|
||||||
|
SentAP ap sc = {s = \\c,gn => ap.s ! c ! gn ++ sc.s} ;
|
||||||
|
AdAP ada ap = {s = \\c,gn => ada.s ++ ap.s ! c ! gn} ;
|
||||||
|
AdvAP ap adv = {s = \\c,gn => ap.s ! c ! gn ++ adv.s} ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
concrete AdverbBel of Adverb = CatBel ** open ResBel in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
PositAdvAdj a = {s = a.s ! Nom ! GSg Neuter} ;
|
||||||
|
PrepNP prep np = {s = prepNP prep np} ;
|
||||||
|
ComparAdvAdj cadv a np = {s = cadv.s ++ a.s ! Nom ! GSg Neuter ++ cadv.p ++ np.s ! Nom} ;
|
||||||
|
ComparAdvAdjS cadv a s = {s = cadv.s ++ a.s ! Nom ! GSg Neuter ++ cadv.p ++ s.s} ;
|
||||||
|
AdAdv ada adv = {s = ada.s ++ adv.s} ;
|
||||||
|
PositAdAAdj a = {s = a.s ! Nom ! GSg Neuter} ;
|
||||||
|
SubjS subj s = {s = subj.s ++ s.s} ;
|
||||||
|
AdnCAdv cadv = {s = cadv.s} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
concrete AllBel of AllBelAbs =
|
concrete AllBel of AllBelAbs =
|
||||||
LangBel
|
LangBel,
|
||||||
|
ExtendBel
|
||||||
**
|
**
|
||||||
{} ;
|
{} ;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
abstract AllBelAbs =
|
abstract AllBelAbs =
|
||||||
Lang
|
Lang,
|
||||||
|
Extend
|
||||||
** {}
|
** {}
|
||||||
+63
-16
@@ -1,21 +1,68 @@
|
|||||||
concrete CatBel of Cat = CommonX ** open ResBel in {
|
concrete CatBel of Cat = CommonX ** open ResBel, (R = ParamX) in {
|
||||||
|
|
||||||
lincat N = Noun ;
|
lincat
|
||||||
lincat N2 = Noun ** {c2 : Compl} ;
|
S = {s : Str} ;
|
||||||
lincat N3 = Noun ** {c2,c3 : Compl} ;
|
QS = {s : Str} ;
|
||||||
lincat V = V ;
|
RS = {s : Str} ;
|
||||||
lincat VV,VS,VQ,VA = V ;
|
Cl = {s : R.Tense => R.Polarity => Str} ;
|
||||||
lincat V2 = V ** {c2 : Compl} ;
|
ClSlash = {s : R.Tense => R.Polarity => Str; c : Compl} ;
|
||||||
lincat V3,V2A,V2S,V2Q,V2V = V ** {c2,c3 : Compl} ;
|
SSlash = {s : Str; c : Compl} ;
|
||||||
lincat A = A ;
|
Imp = {s : R.Polarity => Number => Str} ;
|
||||||
lincat A2 = A ** {c2 : Compl} ;
|
|
||||||
lincat Prep = Compl ;
|
|
||||||
lincat CN = CommonNoun ;
|
|
||||||
lincat AP = AdjPhrase ;
|
|
||||||
lincat S = {s : Str} ;
|
|
||||||
|
|
||||||
lincat LN,SN,GN,PN = {s : Str} ;
|
QCl = {s : R.Tense => R.Polarity => Str} ;
|
||||||
|
IP = NPhrase ;
|
||||||
|
IComp = {s : Str} ;
|
||||||
|
IDet = {s : Case => Gender => Str; n : Number} ;
|
||||||
|
IQuant = {s : Case => Gender => Number => Str} ;
|
||||||
|
|
||||||
linref V,VV,V2,V3,V2A,V2S,V2Q,V2V = \v -> v.infinitive ;
|
RCl = {s : R.Tense => R.Polarity => Str} ;
|
||||||
|
RP = {s : Str} ;
|
||||||
|
|
||||||
|
VP = VPhrase ;
|
||||||
|
Comp = {s : Agr => Str} ;
|
||||||
|
VPSlash = VSlash ;
|
||||||
|
|
||||||
|
N = Noun ;
|
||||||
|
N2 = Noun ** {c2 : Compl} ;
|
||||||
|
N3 = Noun ** {c2,c3 : Compl} ;
|
||||||
|
CN = CommonNoun ;
|
||||||
|
NP = NPhrase ;
|
||||||
|
Pron = {s: Case => Str; a: Agr} ;
|
||||||
|
Det = {s : Case => Gender => Str; n : Number} ;
|
||||||
|
Predet = {s : Case => Gender => Number => Str} ;
|
||||||
|
Quant = {s : Case => Gender => Number => Str} ;
|
||||||
|
Num = {s : Case => Gender => Str; n : Number} ;
|
||||||
|
Card = {s : Str; n : Number} ;
|
||||||
|
ACard = {s : Str; n : Number} ;
|
||||||
|
Ord = Adj ;
|
||||||
|
DAP = {s : Case => Gender => Str; n : Number} ;
|
||||||
|
|
||||||
|
Numeral = {s : Str} ;
|
||||||
|
Digits = {s : Str} ;
|
||||||
|
Decimal = {s : Str} ;
|
||||||
|
|
||||||
|
Conj = {s : Str; n : Number} ;
|
||||||
|
Subj = {s : Str} ;
|
||||||
|
Prep = Compl ;
|
||||||
|
|
||||||
|
V = Verb ;
|
||||||
|
VV,VS,VQ,VA = Verb ;
|
||||||
|
V2 = Verb ** {c2 : Compl} ;
|
||||||
|
V3,V2A,V2S,V2Q,V2V = Verb ** {c2,c3 : Compl} ;
|
||||||
|
A = Adj ;
|
||||||
|
A2 = Adj ** {c2 : Compl} ;
|
||||||
|
AP = AdjPhrase ;
|
||||||
|
|
||||||
|
LN = {s : Case => Str; g : Gender; n : Number} ;
|
||||||
|
PN = {s : Case => Str; g : Gender; n : Number} ;
|
||||||
|
GN = {s : Str; g : Gender} ;
|
||||||
|
SN = {s : Str} ;
|
||||||
|
|
||||||
|
linref
|
||||||
|
V,VV,V2,V3,V2A,V2S,V2Q,V2V = \v -> v.infinitive ;
|
||||||
|
N,N2,N3 = \n -> n.s ! Nom ! Sg ;
|
||||||
|
A,A2,AP,Ord = \a -> a.s ! Nom ! GSg Masc ;
|
||||||
|
NP,IP = \np -> np.s ! Nom ;
|
||||||
|
S,QS,RS = \s -> s.s ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
concrete ConjunctionBel of Conjunction = CatBel ** open ResBel in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
ConjS conj xs = {s = xs.s1 ++ conj.s ++ xs.s2} ;
|
||||||
|
ConjRS conj xs = {s = xs.s1 ++ conj.s ++ xs.s2} ;
|
||||||
|
ConjAP conj xs = {s = \\c,gn => xs.s1 ! c ! gn ++ conj.s ++ xs.s2 ! c ! gn} ;
|
||||||
|
ConjNP conj xs = {
|
||||||
|
s = \\c => xs.s1 ! c ++ conj.s ++ xs.s2 ! c ;
|
||||||
|
a = {g=Masc; n=conj.n; p=P3}
|
||||||
|
} ;
|
||||||
|
ConjAdv conj xs = {s = xs.s1 ++ conj.s ++ xs.s2} ;
|
||||||
|
ConjAdV conj xs = {s = xs.s1 ++ conj.s ++ xs.s2} ;
|
||||||
|
ConjIAdv conj xs = {s = xs.s1 ++ conj.s ++ xs.s2} ;
|
||||||
|
ConjCN conj xs = {
|
||||||
|
s = \\c,n => xs.s1 ! c ! n ++ conj.s ++ xs.s2 ! c ! n ;
|
||||||
|
voc = xs.voc ;
|
||||||
|
g = xs.g
|
||||||
|
} ;
|
||||||
|
ConjDet conj xs = {
|
||||||
|
s = \\c,g => xs.s1 ! c ! g ++ conj.s ++ xs.s2 ! c ! g ;
|
||||||
|
n = conj.n
|
||||||
|
} ;
|
||||||
|
|
||||||
|
BaseS x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
ConsS x xs = {s1 = x.s ++ "," ++ xs.s1; s2 = xs.s2} ;
|
||||||
|
BaseRS x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
ConsRS x xs = {s1 = x.s ++ "," ++ xs.s1; s2 = xs.s2} ;
|
||||||
|
BaseAdv x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
ConsAdv x xs = {s1 = x.s ++ "," ++ xs.s1; s2 = xs.s2} ;
|
||||||
|
BaseAdV x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
ConsAdV x xs = {s1 = x.s ++ "," ++ xs.s1; s2 = xs.s2} ;
|
||||||
|
BaseIAdv x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
ConsIAdv x xs = {s1 = x.s ++ "," ++ xs.s1; s2 = xs.s2} ;
|
||||||
|
BaseNP x y = {
|
||||||
|
s1 = x.s ;
|
||||||
|
s2 = y.s
|
||||||
|
} ;
|
||||||
|
ConsNP x xs = {
|
||||||
|
s1 = \\c => x.s ! c ++ "," ++ xs.s1 ! c ;
|
||||||
|
s2 = xs.s2
|
||||||
|
} ;
|
||||||
|
BaseAP x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
ConsAP x xs = {s1 = \\c,gn => x.s ! c ! gn ++ "," ++ xs.s1 ! c ! gn; s2 = xs.s2} ;
|
||||||
|
BaseCN x y = {s1 = x.s; s2 = y.s; voc = x.voc ++ "," ++ y.voc; g = x.g} ;
|
||||||
|
ConsCN x xs = {s1 = \\c,n => x.s ! c ! n ++ "," ++ xs.s1 ! c ! n; s2 = xs.s2; voc = x.voc ++ "," ++ xs.voc; g = xs.g} ;
|
||||||
|
BaseDAP x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
ConsDAP x xs = {s1 = \\c,g => x.s ! c ! g ++ "," ++ xs.s1 ! c ! g; s2 = xs.s2} ;
|
||||||
|
|
||||||
|
lincat
|
||||||
|
[S] = {s1,s2 : Str} ;
|
||||||
|
[RS] = {s1,s2 : Str} ;
|
||||||
|
[Adv] = {s1,s2 : Str} ;
|
||||||
|
[AdV] = {s1,s2 : Str} ;
|
||||||
|
[IAdv] = {s1,s2 : Str} ;
|
||||||
|
[NP] = {s1,s2 : Case => Str} ;
|
||||||
|
[AP] = {s1,s2 : Case => GenNum => Str} ;
|
||||||
|
[CN] = {s1,s2 : Case => Number => Str; voc : Str; g : Gender} ;
|
||||||
|
[DAP] = {s1,s2 : Case => Gender => Str} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,141 @@
|
|||||||
|
concrete ConstructionBel of Construction = CatBel ** open ResBel, ParadigmsBel, (R = ParamX) in {
|
||||||
|
|
||||||
|
lincat
|
||||||
|
Timeunit, Hour, Weekday, Month, Monthday, Year, Language = {s : Str} ;
|
||||||
|
|
||||||
|
oper
|
||||||
|
adjVP : Adj -> VPhrase = \a -> {
|
||||||
|
s = \\t,p,agr => copula t p agr ++ a.s ! Nom ! genNum agr.g agr.n ;
|
||||||
|
inf = "быць" ++ a.s ! Nom ! GSg Masc ;
|
||||||
|
imp = \\p,_ => neg p ++ "будзь" ++ a.s ! Nom ! GSg Masc
|
||||||
|
} ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
hungry_VP = adjVP (mkA "галодны") ;
|
||||||
|
thirsty_VP = adjVP (mkA "спрагнены") ;
|
||||||
|
tired_VP = adjVP (mkA "стомлены") ;
|
||||||
|
scared_VP = adjVP (mkA "спалоханы") ;
|
||||||
|
ill_VP = adjVP (mkA "хворы") ;
|
||||||
|
ready_VP = adjVP (mkA "гатовы") ;
|
||||||
|
has_age_VP card = {
|
||||||
|
s = \\t,p,a => copula t p a ++ card.s ++ "гадоў" ;
|
||||||
|
inf = card.s ++ "гадоў" ;
|
||||||
|
imp = \\p,_ => neg p ++ card.s ++ "гадоў"
|
||||||
|
} ;
|
||||||
|
|
||||||
|
have_name_Cl np name = {s = \\t,p => np.s ! Gen ++ "імя" ++ name.s ! Nom} ;
|
||||||
|
married_Cl np spouse = {s = \\t,p => np.s ! Nom ++ copula t p np.a ++ "жанаты" ++ "з" ++ spouse.s ! Instr} ;
|
||||||
|
what_name_QCl np = {s = \\t,p => "як" ++ "завуць" ++ np.s ! Acc} ;
|
||||||
|
how_old_QCl np = {s = \\t,p => "колькі гадоў" ++ np.s ! Dat} ;
|
||||||
|
how_far_QCl np = {s = \\t,p => "як далёка" ++ np.s ! Nom} ;
|
||||||
|
|
||||||
|
weather_adjCl ap = {s = \\t,p => copula t p defaultAgr ++ ap.s ! Nom ! GSg Neuter} ;
|
||||||
|
is_right_VP = adjVP (mkA "правы") ;
|
||||||
|
is_wrong_VP = adjVP (mkA "няправы") ;
|
||||||
|
|
||||||
|
n_units_AP card cn a = {s = \\c,gn => card.s ++ cn.s ! Gen ! Pl ++ a.s ! c ! gn} ;
|
||||||
|
n_units_of_NP card cn np = mkSimpleNP (card.s ++ cn.s ! Gen ! Pl ++ np.s ! Gen) Neuter Sg P3 ;
|
||||||
|
n_unit_CN card unit cn = nounFromStr (card.s ++ unit.s ! Nom ! Pl ++ cn.s ! Nom ! Sg) cn.g ;
|
||||||
|
|
||||||
|
bottle_of_CN np = nounFromStr ("бутэлька" ++ np.s ! Gen) Fem ;
|
||||||
|
cup_of_CN np = nounFromStr ("кубак" ++ np.s ! Gen) Masc ;
|
||||||
|
glass_of_CN np = nounFromStr ("шклянка" ++ np.s ! Gen) Fem ;
|
||||||
|
few_X_short_of_Y np x y = {s = np.s ! Nom ++ "бракуе" ++ x.s ! Gen ! Pl ++ "да" ++ y.s ! Gen ! Sg} ;
|
||||||
|
|
||||||
|
timeunitAdv card unit = {s = card.s ++ unit.s} ;
|
||||||
|
timeunitRange c1 c2 unit = {s = c1.s ++ "да" ++ c2.s ++ unit.s} ;
|
||||||
|
oneHour = {s = "1"} ; twoHour = {s = "2"} ; threeHour = {s = "3"} ; fourHour = {s = "4"} ;
|
||||||
|
fiveHour = {s = "5"} ; sixHour = {s = "6"} ; sevenHour = {s = "7"} ; eightHour = {s = "8"} ;
|
||||||
|
nineHour = {s = "9"} ; tenHour = {s = "10"} ; elevenHour = {s = "11"} ; twelveHour = {s = "12"} ;
|
||||||
|
thirteenHour = {s = "13"} ; fourteenHour = {s = "14"} ; fifteenHour = {s = "15"} ; sixteenHour = {s = "16"} ;
|
||||||
|
seventeenHour = {s = "17"} ; eighteenHour = {s = "18"} ; nineteenHour = {s = "19"} ; twentyHour = {s = "20"} ;
|
||||||
|
twentyOneHour = {s = "21"} ; twentyTwoHour = {s = "22"} ; twentyThreeHour = {s = "23"} ; twentyFourHour = {s = "24"} ;
|
||||||
|
timeHour h = {s = "а" ++ h.s} ;
|
||||||
|
timeHourMinute h m = {s = "а" ++ h.s ++ ":" ++ m.s} ;
|
||||||
|
|
||||||
|
weekdayPunctualAdv d = {s = "у" ++ d.s} ;
|
||||||
|
weekdayHabitualAdv d = {s = "па" ++ d.s} ;
|
||||||
|
weekdayLastAdv d = {s = "мінулай" ++ d.s} ;
|
||||||
|
weekdayNextAdv d = {s = "наступнай" ++ d.s} ;
|
||||||
|
monthAdv m = {s = "у" ++ m.s} ;
|
||||||
|
yearAdv y = {s = "у" ++ y.s} ;
|
||||||
|
dayMonthAdv d m = {s = d.s ++ m.s} ;
|
||||||
|
monthYearAdv m y = {s = m.s ++ y.s} ;
|
||||||
|
dayMonthYearAdv d m y = {s = d.s ++ m.s ++ y.s} ;
|
||||||
|
intYear i = {s = i.s} ;
|
||||||
|
intMonthday i = {s = i.s} ;
|
||||||
|
|
||||||
|
InLanguage l = {s = "па-" ++ l.s} ;
|
||||||
|
weekdayN d = nounFromStr d.s Masc ;
|
||||||
|
monthN m = nounFromStr m.s Masc ;
|
||||||
|
weekdayPN d = mkPN d.s ;
|
||||||
|
monthPN m = mkPN m.s ;
|
||||||
|
languageNP l = mkSimpleNP l.s Neuter Sg P3 ;
|
||||||
|
languageCN l = nounFromStr l.s Neuter ;
|
||||||
|
|
||||||
|
second_Timeunit = {s = "секунд"} ;
|
||||||
|
minute_Timeunit = {s = "хвілін"} ;
|
||||||
|
hour_Timeunit = {s = "гадзін"} ;
|
||||||
|
day_Timeunit = {s = "дзён"} ;
|
||||||
|
week_Timeunit = {s = "тыдняў"} ;
|
||||||
|
month_Timeunit = {s = "месяцаў"} ;
|
||||||
|
year_Timeunit = {s = "гадоў"} ;
|
||||||
|
|
||||||
|
monday_Weekday = {s = "панядзелак"} ;
|
||||||
|
tuesday_Weekday = {s = "аўторак"} ;
|
||||||
|
wednesday_Weekday = {s = "серада"} ;
|
||||||
|
thursday_Weekday = {s = "чацвер"} ;
|
||||||
|
friday_Weekday = {s = "пятніца"} ;
|
||||||
|
saturday_Weekday = {s = "субота"} ;
|
||||||
|
sunday_Weekday = {s = "нядзеля"} ;
|
||||||
|
|
||||||
|
january_Month = {s = "студзень"} ;
|
||||||
|
february_Month = {s = "люты"} ;
|
||||||
|
march_Month = {s = "сакавік"} ;
|
||||||
|
april_Month = {s = "красавік"} ;
|
||||||
|
may_Month = {s = "май"} ;
|
||||||
|
june_Month = {s = "чэрвень"} ;
|
||||||
|
july_Month = {s = "ліпень"} ;
|
||||||
|
august_Month = {s = "жнівень"} ;
|
||||||
|
september_Month = {s = "верасень"} ;
|
||||||
|
october_Month = {s = "кастрычнік"} ;
|
||||||
|
november_Month = {s = "лістапад"} ;
|
||||||
|
december_Month = {s = "снежань"} ;
|
||||||
|
|
||||||
|
afrikaans_Language = {s = "афрыкаанс"} ;
|
||||||
|
amharic_Language = {s = "амхарску"} ;
|
||||||
|
arabic_Language = {s = "арабску"} ;
|
||||||
|
bulgarian_Language = {s = "балгарску"} ;
|
||||||
|
catalan_Language = {s = "каталанску"} ;
|
||||||
|
chinese_Language = {s = "кітайску"} ;
|
||||||
|
danish_Language = {s = "дацку"} ;
|
||||||
|
dutch_Language = {s = "нідэрландску"} ;
|
||||||
|
english_Language = {s = "англійску"} ;
|
||||||
|
estonian_Language = {s = "эстонску"} ;
|
||||||
|
finnish_Language = {s = "фінску"} ;
|
||||||
|
french_Language = {s = "французску"} ;
|
||||||
|
german_Language = {s = "нямецку"} ;
|
||||||
|
greek_Language = {s = "грэцку"} ;
|
||||||
|
hebrew_Language = {s = "іўрыце"} ;
|
||||||
|
hindi_Language = {s = "хіндзі"} ;
|
||||||
|
japanese_Language = {s = "японску"} ;
|
||||||
|
italian_Language = {s = "італьянску"} ;
|
||||||
|
latin_Language = {s = "лацінску"} ;
|
||||||
|
latvian_Language = {s = "латышску"} ;
|
||||||
|
maltese_Language = {s = "мальтыйску"} ;
|
||||||
|
nepali_Language = {s = "непальску"} ;
|
||||||
|
norwegian_Language = {s = "нарвежску"} ;
|
||||||
|
persian_Language = {s = "персідску"} ;
|
||||||
|
polish_Language = {s = "польску"} ;
|
||||||
|
punjabi_Language = {s = "панджабі"} ;
|
||||||
|
romanian_Language = {s = "румынску"} ;
|
||||||
|
russian_Language = {s = "руску"} ;
|
||||||
|
sindhi_Language = {s = "сіндхі"} ;
|
||||||
|
spanish_Language = {s = "іспанску"} ;
|
||||||
|
swahili_Language = {s = "суахілі"} ;
|
||||||
|
swedish_Language = {s = "шведску"} ;
|
||||||
|
thai_Language = {s = "тайску"} ;
|
||||||
|
turkish_Language = {s = "турэцку"} ;
|
||||||
|
urdu_Language = {s = "урду"} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -29,12 +29,12 @@ lin
|
|||||||
paragraph (x.infinitive) ++
|
paragraph (x.infinitive) ++
|
||||||
heading1 "Present" ++
|
heading1 "Present" ++
|
||||||
frameTable (
|
frameTable (
|
||||||
tr (intagAttr "th" "rowspan=\"6\"" "Pres" ++ intagAttr "th" "rowspan=\"2\"" "P1" ++ th "Sg" ++ td ((x.active ! Imperf).Pres ! P1 ! Sg)) ++
|
tr (intagAttr "th" "rowspan=\"6\"" "Pres" ++ intagAttr "th" "rowspan=\"2\"" "P1" ++ th "Sg" ++ td ((x.active ! Imperf).pres ! P1 ! Sg)) ++
|
||||||
tr (th "Pl" ++ td ((x.active ! Imperf).Pres ! P1 ! Pl)) ++
|
tr (th "Pl" ++ td ((x.active ! Imperf).pres ! P1 ! Pl)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"2\"" "P2" ++ th "Sg" ++ td ((x.active ! Imperf).Pres ! P2 ! Sg)) ++
|
tr (intagAttr "th" "rowspan=\"2\"" "P2" ++ th "Sg" ++ td ((x.active ! Imperf).pres ! P2 ! Sg)) ++
|
||||||
tr (th "Pl" ++ td ((x.active ! Imperf).Pres ! P2 ! Pl)) ++
|
tr (th "Pl" ++ td ((x.active ! Imperf).pres ! P2 ! Pl)) ++
|
||||||
tr (intagAttr "th" "rowspan=\"2\"" "P3" ++ th "Sg" ++ td ((x.active ! Imperf).Pres ! P3 ! Sg)) ++
|
tr (intagAttr "th" "rowspan=\"2\"" "P3" ++ th "Sg" ++ td ((x.active ! Imperf).pres ! P3 ! Sg)) ++
|
||||||
tr (th "Pl" ++ td ((x.active ! Imperf).Pres ! P3 ! Pl))) ++
|
tr (th "Pl" ++ td ((x.active ! Imperf).pres ! P3 ! Pl))) ++
|
||||||
heading1 "Imperative" ++
|
heading1 "Imperative" ++
|
||||||
frameTable (
|
frameTable (
|
||||||
tr (th "Sg" ++ td (x.imperative ! Sg)) ++
|
tr (th "Sg" ++ td (x.imperative ! Sg)) ++
|
||||||
|
|||||||
@@ -0,0 +1,244 @@
|
|||||||
|
--# -path=.:../abstract:../common:prelude
|
||||||
|
concrete ExtendBel of Extend = CatBel ** open ResBel, (R = ParamX), ParadigmsBel in {
|
||||||
|
|
||||||
|
lincat
|
||||||
|
VPS = {s : Agr => Str} ;
|
||||||
|
[VPS] = {s1,s2 : Agr => Str} ;
|
||||||
|
VPI = {s : Str} ;
|
||||||
|
[VPI] = {s1,s2 : Str} ;
|
||||||
|
VPS2 = {s : Agr => Str; c : Compl; post : Str} ;
|
||||||
|
[VPS2] = {s1,s2 : Agr => Str; c : Compl; post : Str} ;
|
||||||
|
VPI2 = {s : Str; c : Compl; post : Str} ;
|
||||||
|
[VPI2] = {s1,s2 : Str; c : Compl; post : Str} ;
|
||||||
|
[Comp] = {s1,s2 : Agr => Str} ;
|
||||||
|
[Imp] = {s1,s2 : R.Polarity => Number => Str} ;
|
||||||
|
RNP = {s : Case => Str} ;
|
||||||
|
RNPList = {s1,s2 : Case => Str} ;
|
||||||
|
X = {s : Str} ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
iFem_Pron = mkPron "я" "мяне" "мне" "мяне" "мне" "мной" Fem Sg P1 ;
|
||||||
|
youFem_Pron = mkPron "ты" "цябе" "табе" "цябе" "табе" "табой" Fem Sg P2 ;
|
||||||
|
weFem_Pron = mkPron "мы" "нас" "нам" "нас" "нас" "намі" Fem Pl P1 ;
|
||||||
|
youPlFem_Pron = mkPron "вы" "вас" "вам" "вас" "вас" "вамі" Fem Pl P2 ;
|
||||||
|
theyFem_Pron = mkPron "яны" "іх" "ім" "іх" "іх" "імі" Fem Pl P3 ;
|
||||||
|
theyNeutr_Pron = mkPron "яны" "іх" "ім" "іх" "іх" "імі" Neuter Pl P3 ;
|
||||||
|
youPolFem_Pron = mkPron "вы" "вас" "вам" "вас" "вас" "вамі" Fem Pl P2 ;
|
||||||
|
youPolPl_Pron = mkPron "вы" "вас" "вам" "вас" "вас" "вамі" Fem Pl P2 ;
|
||||||
|
youPolPlFem_Pron = mkPron "вы" "вас" "вам" "вас" "вас" "вамі" Fem Pl P2 ;
|
||||||
|
|
||||||
|
GenNP np = {s = \\_,_,_ => np.s ! Gen} ;
|
||||||
|
GenIP ip = {s = \\_,_,_ => ip.s ! Gen} ;
|
||||||
|
GenRP num cn = {s = cn.s ! Gen ! num.n ++ "якога"} ;
|
||||||
|
GenModNP num np cn = {
|
||||||
|
s = \\c => np.s ! Gen ++ cn.s ! c ! num.n ;
|
||||||
|
a = {g=cn.g; n=num.n; p=P3}
|
||||||
|
} ;
|
||||||
|
GenModIP num ip cn = {
|
||||||
|
s = \\c => ip.s ! Gen ++ cn.s ! c ! num.n ;
|
||||||
|
a = {g=cn.g; n=num.n; p=P3}
|
||||||
|
} ;
|
||||||
|
|
||||||
|
CompBareCN cn = {s = \\a => cn.s ! Nom ! a.n} ;
|
||||||
|
PiedPipingQuestSlash ip cl = {s = \\t,p => cl.c.s ++ ip.s ! cl.c.c ++ cl.s ! t ! p} ;
|
||||||
|
PiedPipingRelSlash rp cl = {s = \\t,p => rp.s ++ cl.s ! t ! p} ;
|
||||||
|
StrandQuestSlash ip cl = {s = \\t,p => cl.c.s ++ ip.s ! cl.c.c ++ cl.s ! t ! p} ;
|
||||||
|
StrandRelSlash rp cl = {s = \\t,p => rp.s ++ cl.s ! t ! p} ;
|
||||||
|
EmptyRelSlash cl = {s = \\t,p => "што" ++ cl.s ! t ! p} ;
|
||||||
|
|
||||||
|
MkVPS temp pol vp = {s = \\a => vp.s ! temp.t ! pol.p ! a} ;
|
||||||
|
ConjVPS conj xs = {s = \\a => xs.s1 ! a ++ conj.s ++ xs.s2 ! a} ;
|
||||||
|
PredVPS np vps = {s = np.s ! Nom ++ vps.s ! np.a} ;
|
||||||
|
SQuestVPS np vps = {s = np.s ! Nom ++ vps.s ! np.a} ;
|
||||||
|
QuestVPS ip vps = {s = ip.s ! Nom ++ vps.s ! ip.a} ;
|
||||||
|
RelVPS rp vps = {s = rp.s ++ vps.s ! defaultAgr} ;
|
||||||
|
BaseVPS x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
ConsVPS x xs = {s1 = \\a => x.s ! a ++ "," ++ xs.s1 ! a; s2 = xs.s2} ;
|
||||||
|
|
||||||
|
ExistS temp pol np = {s = copula temp.t pol.p np.a ++ np.s ! Nom} ;
|
||||||
|
ExistNPQS temp pol np = {s = copula temp.t pol.p np.a ++ np.s ! Nom} ;
|
||||||
|
ExistIPQS temp pol ip = {s = copula temp.t pol.p ip.a ++ ip.s ! Nom} ;
|
||||||
|
|
||||||
|
MkVPI vp = {s = vp.inf} ;
|
||||||
|
ConjVPI conj xs = {s = xs.s1 ++ conj.s ++ xs.s2} ;
|
||||||
|
ComplVPIVV vv vpi = {
|
||||||
|
s = \\t,p,a => finiteVerb vv t p a ++ vpi.s ;
|
||||||
|
inf = vv.infinitive ++ vpi.s ;
|
||||||
|
imp = \\p,n => neg p ++ vv.imperative ! n ++ vpi.s
|
||||||
|
} ;
|
||||||
|
BaseVPI x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
ConsVPI x xs = {s1 = x.s ++ "," ++ xs.s1; s2 = xs.s2} ;
|
||||||
|
|
||||||
|
MkVPS2 temp pol vp = {s = \\a => vp.s ! temp.t ! pol.p ! a; c = vp.c; post = vp.post} ;
|
||||||
|
ConjVPS2 conj xs = {s = \\a => xs.s1 ! a ++ conj.s ++ xs.s2 ! a; c = xs.c; post = xs.post} ;
|
||||||
|
ComplVPS2 vps np = {s = \\a => vps.s ! a ++ prepNP vps.c np ++ vps.post} ;
|
||||||
|
ReflVPS2 vps rnp = {s = \\a => vps.s ! a ++ rnp.s ! vps.c.c ++ vps.post} ;
|
||||||
|
BaseVPS2 x y = {s1 = x.s; s2 = y.s; c = x.c; post = x.post ++ y.post} ;
|
||||||
|
ConsVPS2 x xs = {s1 = \\a => x.s ! a ++ "," ++ xs.s1 ! a; s2 = xs.s2; c = xs.c; post = x.post ++ xs.post} ;
|
||||||
|
|
||||||
|
MkVPI2 vp = {s = vp.inf; c = vp.c; post = vp.post} ;
|
||||||
|
ConjVPI2 conj xs = {s = xs.s1 ++ conj.s ++ xs.s2; c = xs.c; post = xs.post} ;
|
||||||
|
ComplVPI2 vpi np = {s = vpi.s ++ prepNP vpi.c np ++ vpi.post} ;
|
||||||
|
BaseVPI2 x y = {s1 = x.s; s2 = y.s; c = x.c; post = x.post ++ y.post} ;
|
||||||
|
ConsVPI2 x xs = {s1 = x.s ++ "," ++ xs.s1; s2 = xs.s2; c = xs.c; post = x.post ++ xs.post} ;
|
||||||
|
|
||||||
|
ConjComp conj xs = {s = \\a => xs.s1 ! a ++ conj.s ++ xs.s2 ! a} ;
|
||||||
|
BaseComp x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
ConsComp x xs = {s1 = \\a => x.s ! a ++ "," ++ xs.s1 ! a; s2 = xs.s2} ;
|
||||||
|
ConjImp conj xs = {s = \\p,n => xs.s1 ! p ! n ++ conj.s ++ xs.s2 ! p ! n} ;
|
||||||
|
BaseImp x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
ConsImp x xs = {s1 = \\p,n => x.s ! p ! n ++ "," ++ xs.s1 ! p ! n; s2 = xs.s2} ;
|
||||||
|
|
||||||
|
ProDrop pron = pron ;
|
||||||
|
ICompAP ap = {s = ap.s ! Nom ! GSg Masc} ;
|
||||||
|
IAdvAdv adv = {s = adv.s} ;
|
||||||
|
CompIQuant iq = {s = iq.s ! Nom ! Masc ! Sg} ;
|
||||||
|
PrepCN prep cn = {s = prep.s ++ cn.s ! prep.c ! Sg} ;
|
||||||
|
|
||||||
|
FocusObj np ss = {s = np.s ! Acc ++ ss.s} ;
|
||||||
|
FocusAdv adv s = {s = adv.s ++ s.s} ;
|
||||||
|
FocusAdV adv s = {s = adv.s ++ s.s} ;
|
||||||
|
FocusAP ap np = {s = ap.s ! Nom ! genNum np.a.g np.a.n ++ np.s ! Nom} ;
|
||||||
|
|
||||||
|
PresPartAP vp = adjFromStr vp.inf ;
|
||||||
|
EmbedPresPart vp = {s = vp.inf} ;
|
||||||
|
PastPartAP vp = adjFromStr vp.inf ;
|
||||||
|
PastPartAgentAP vp np = adjFromStr (vp.inf ++ prepNP (mkPrep "кім" instrumental) np) ;
|
||||||
|
PassVPSlash vp = {
|
||||||
|
s = \\t,p,a => copula t p a ++ vp.inf ;
|
||||||
|
inf = "быць" ++ vp.inf ;
|
||||||
|
imp = \\p,_ => neg p ++ "будзь" ++ vp.inf
|
||||||
|
} ;
|
||||||
|
PassAgentVPSlash vp np = addAdvVP (PassVPSlash vp) (prepNP (mkPrep "кім" instrumental) np) ;
|
||||||
|
NominalizeVPSlashNP vp np = mkSimpleNP (vp.inf ++ prepNP vp.c np) Neuter Sg P3 ;
|
||||||
|
ProgrVPSlash vp = vp ;
|
||||||
|
A2VPSlash a = {
|
||||||
|
s = \\t,p,agr => copula t p agr ++ a.s ! Nom ! genNum agr.g agr.n ;
|
||||||
|
inf = a.s ! Nom ! GSg Masc ;
|
||||||
|
c = a.c2 ;
|
||||||
|
imp = \\p,_ => neg p ++ a.s ! Nom ! GSg Masc ;
|
||||||
|
post = []
|
||||||
|
} ;
|
||||||
|
N2VPSlash n = {
|
||||||
|
s = \\t,p,agr => copula t p agr ++ n.s ! Nom ! agr.n ;
|
||||||
|
inf = n.s ! Nom ! Sg ;
|
||||||
|
c = n.c2 ;
|
||||||
|
imp = \\p,_ => neg p ++ n.s ! Nom ! Sg ;
|
||||||
|
post = []
|
||||||
|
} ;
|
||||||
|
ExistsNP np = {s = \\t,p => copula t p np.a ++ np.s ! Nom} ;
|
||||||
|
ExistCN cn = {s = \\t,p => copula t p {g=cn.g; n=Sg; p=P3} ++ cn.s ! Nom ! Sg} ;
|
||||||
|
ExistMassCN cn = ExistCN cn ;
|
||||||
|
ExistPluralCN cn = {s = \\t,p => copula t p {g=cn.g; n=Pl; p=P3} ++ cn.s ! Nom ! Pl} ;
|
||||||
|
AdvIsNP adv np = {s = \\t,p => adv.s ++ copula t p np.a ++ np.s ! Nom} ;
|
||||||
|
AdvIsNPAP adv np ap = {s = \\t,p => adv.s ++ copula t p np.a ++ np.s ! Nom ++ ap.s ! Nom ! genNum np.a.g np.a.n} ;
|
||||||
|
PurposeVP vp = {s = "каб" ++ vp.inf} ;
|
||||||
|
ComplBareVS vs s = {
|
||||||
|
s = \\t,p,a => finiteVerb vs t p a ++ s.s ;
|
||||||
|
inf = vs.infinitive ++ s.s ;
|
||||||
|
imp = \\p,n => neg p ++ vs.imperative ! n ++ s.s
|
||||||
|
} ;
|
||||||
|
SlashBareV2S v s = {
|
||||||
|
s = \\t,p,a => finiteVerb v t p a ;
|
||||||
|
inf = v.infinitive ++ s.s ;
|
||||||
|
c = v.c2 ;
|
||||||
|
imp = \\p,n => neg p ++ v.imperative ! n ;
|
||||||
|
post = s.s
|
||||||
|
} ;
|
||||||
|
ComplDirectVS vs utt = {
|
||||||
|
s = \\t,p,a => finiteVerb vs t p a ++ utt.s ;
|
||||||
|
inf = vs.infinitive ++ utt.s ;
|
||||||
|
imp = \\p,n => neg p ++ vs.imperative ! n ++ utt.s
|
||||||
|
} ;
|
||||||
|
ComplDirectVQ vq utt = {
|
||||||
|
s = \\t,p,a => finiteVerb vq t p a ++ utt.s ;
|
||||||
|
inf = vq.infinitive ++ utt.s ;
|
||||||
|
imp = \\p,n => neg p ++ vq.imperative ! n ++ utt.s
|
||||||
|
} ;
|
||||||
|
FrontComplDirectVS np vs utt = {s = \\t,p => utt.s ++ np.s ! Nom ++ finiteVerb vs t p np.a} ;
|
||||||
|
FrontComplDirectVQ np vq utt = {s = \\t,p => utt.s ++ np.s ! Nom ++ finiteVerb vq t p np.a} ;
|
||||||
|
PredAPVP ap vp = {s = \\t,p => copula t p defaultAgr ++ ap.s ! Nom ! GSg Neuter ++ vp.inf} ;
|
||||||
|
AdjAsCN ap = nounFromStr (ap.s ! Nom ! GSg Masc) Masc ;
|
||||||
|
AdjAsNP ap = mkSimpleNP (ap.s ! Nom ! GSg Masc) Masc Sg P3 ;
|
||||||
|
PredIAdvVP iadv vp = {s = \\t,p => iadv.s ++ vp.inf} ;
|
||||||
|
EmbedSSlash ss = {s = ss.s} ;
|
||||||
|
|
||||||
|
ReflRNP vp rnp = {
|
||||||
|
s = \\t,p,a => vp.s ! t ! p ! a ++ rnp.s ! vp.c.c ++ vp.post ;
|
||||||
|
inf = vp.inf ++ rnp.s ! vp.c.c ;
|
||||||
|
imp = \\p,n => vp.imp ! p ! n ++ rnp.s ! vp.c.c ++ vp.post
|
||||||
|
} ;
|
||||||
|
ReflPron = {s = caseTable "сябе"} ;
|
||||||
|
ReflPoss num cn = {s = \\c => "свой" ++ cn.s ! c ! num.n} ;
|
||||||
|
PredetRNP pred rnp = {s = \\c => pred.s ! c ! Masc ! Sg ++ rnp.s ! c} ;
|
||||||
|
AdvRNP np prep rnp = {s = \\c => np.s ! c ++ prep.s ++ rnp.s ! prep.c} ;
|
||||||
|
AdvRVP vp prep rnp = addAdvVP vp (prep.s ++ rnp.s ! prep.c) ;
|
||||||
|
AdvRAP ap prep rnp = {s = \\c,gn => ap.s ! c ! gn ++ prep.s ++ rnp.s ! prep.c} ;
|
||||||
|
ReflA2RNP a rnp = {s = \\c,gn => a.s ! c ! gn ++ a.c2.s ++ rnp.s ! a.c2.c} ;
|
||||||
|
PossPronRNP pron num cn rnp = {
|
||||||
|
s = \\c => pron.s ! Gen ++ cn.s ! c ! num.n ++ rnp.s ! Gen ;
|
||||||
|
a = {g=cn.g; n=num.n; p=P3}
|
||||||
|
} ;
|
||||||
|
ConjRNP conj xs = {s = \\c => xs.s1 ! c ++ conj.s ++ xs.s2 ! c} ;
|
||||||
|
Base_rr_RNP x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
Base_nr_RNP x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
Base_rn_RNP x y = {s1 = x.s; s2 = y.s} ;
|
||||||
|
Cons_rr_RNP x xs = {s1 = \\c => x.s ! c ++ "," ++ xs.s1 ! c; s2 = xs.s2} ;
|
||||||
|
Cons_nr_RNP x xs = {s1 = \\c => x.s ! c ++ "," ++ xs.s1 ! c; s2 = xs.s2} ;
|
||||||
|
ReflPossPron = mkQuant "свой" ;
|
||||||
|
ComplGenVV vv ant pol vp = {
|
||||||
|
s = \\t,p,a => finiteVerb vv t p a ++ neg pol.p ++ vp.inf ;
|
||||||
|
inf = vv.infinitive ++ neg pol.p ++ vp.inf ;
|
||||||
|
imp = \\p,n => neg p ++ vv.imperative ! n ++ neg pol.p ++ vp.inf
|
||||||
|
} ;
|
||||||
|
CompoundN n1 n2 = {
|
||||||
|
s = \\c,n => n1.s ! Nom ! Sg ++ n2.s ! c ! n ;
|
||||||
|
voc = n1.voc ++ n2.voc ;
|
||||||
|
g = n2.g
|
||||||
|
} ;
|
||||||
|
CompoundAP n a = {s = \\c,gn => n.s ! Nom ! Sg ++ a.s ! c ! gn} ;
|
||||||
|
GerundCN vp = nounFromStr vp.inf Neuter ;
|
||||||
|
GerundNP vp = mkSimpleNP vp.inf Neuter Sg P3 ;
|
||||||
|
GerundAdv vp = {s = vp.inf} ;
|
||||||
|
WithoutVP vp = {s = "без" ++ vp.inf} ;
|
||||||
|
ByVP vp = {s = "праз" ++ vp.inf} ;
|
||||||
|
InOrderToVP vp = {s = "каб" ++ vp.inf} ;
|
||||||
|
ApposNP np app = {s = \\c => np.s ! c ++ app.s ! Nom; a = np.a} ;
|
||||||
|
AdAdV ada adv = {s = ada.s ++ adv.s} ;
|
||||||
|
UttAdV adv = {s = adv.s} ;
|
||||||
|
PositAdVAdj a = {s = a.s ! Nom ! GSg Neuter} ;
|
||||||
|
CompS s = {s = \\_ => s.s} ;
|
||||||
|
CompQS qs = {s = \\_ => qs.s} ;
|
||||||
|
CompVP ant pol vp = {s = \\_ => neg pol.p ++ vp.inf} ;
|
||||||
|
UncontractedNeg = {s = []; p = R.Neg} ;
|
||||||
|
UttVPShort vp = {s = vp.inf} ;
|
||||||
|
ComplSlashPartLast vp np = {
|
||||||
|
s = \\t,p,a => vp.s ! t ! p ! a ++ prepNP vp.c np ++ vp.post ;
|
||||||
|
inf = vp.inf ++ prepNP vp.c np ;
|
||||||
|
imp = \\p,n => vp.imp ! p ! n ++ prepNP vp.c np ++ vp.post
|
||||||
|
} ;
|
||||||
|
DetNPMasc det = {s = \\c => det.s ! c ! Masc; a = {g=Masc; n=det.n; p=P3}} ;
|
||||||
|
DetNPFem det = {s = \\c => det.s ! c ! Fem; a = {g=Fem; n=det.n; p=P3}} ;
|
||||||
|
UseComp_estar comp = UseComp_ser comp ;
|
||||||
|
UseComp_ser comp = {
|
||||||
|
s = \\t,p,a => copula t p a ++ comp.s ! a ;
|
||||||
|
inf = "быць" ++ comp.s ! defaultAgr ;
|
||||||
|
imp = \\p,_ => neg p ++ "будзь" ++ comp.s ! defaultAgr
|
||||||
|
} ;
|
||||||
|
SubjRelNP np rs = {s = \\c => np.s ! c ++ rs.s; a = np.a} ;
|
||||||
|
UttAccNP np = {s = np.s ! Acc} ;
|
||||||
|
UttDatNP np = {s = np.s ! Dat} ;
|
||||||
|
UttAccIP ip = {s = ip.s ! Acc} ;
|
||||||
|
UttDatIP ip = {s = ip.s ! Dat} ;
|
||||||
|
UseDAP dap = {s = \\c => dap.s ! c ! Masc; a = {g=Neuter; n=dap.n; p=P3}} ;
|
||||||
|
UseDAPMasc dap = {s = \\c => dap.s ! c ! Masc; a = {g=Masc; n=dap.n; p=P3}} ;
|
||||||
|
UseDAPFem dap = {s = \\c => dap.s ! c ! Fem; a = {g=Fem; n=dap.n; p=P3}} ;
|
||||||
|
CardCNCard card cn = {s = card.s ++ cn.s ! Gen ! Pl; n = Pl} ;
|
||||||
|
TPastSimple = {s = []; t = R.Past} ;
|
||||||
|
SubjunctRelCN cn rs = {
|
||||||
|
s = \\c,n => cn.s ! c ! n ++ rs.s ;
|
||||||
|
voc = cn.voc ;
|
||||||
|
g = cn.g
|
||||||
|
} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -2,5 +2,15 @@ concrete GrammarBel of Grammar =
|
|||||||
TenseX,
|
TenseX,
|
||||||
PhraseBel,
|
PhraseBel,
|
||||||
NounBel,
|
NounBel,
|
||||||
AdjectiveBel ** {
|
AdjectiveBel,
|
||||||
|
AdverbBel,
|
||||||
|
VerbBel,
|
||||||
|
SentenceBel,
|
||||||
|
QuestionBel,
|
||||||
|
RelativeBel,
|
||||||
|
ConjunctionBel,
|
||||||
|
NumeralBel,
|
||||||
|
NamesBel,
|
||||||
|
StructuralBel,
|
||||||
|
IdiomBel ** {
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
concrete IdiomBel of Idiom = CatBel ** open ResBel, (R = ParamX), ParadigmsBel in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
ImpersCl vp = {s = \\t,p => vp.s ! t ! p ! defaultAgr} ;
|
||||||
|
GenericCl vp = {s = \\t,p => "нехта" ++ vp.s ! t ! p ! defaultAgr} ;
|
||||||
|
CleftNP np rs = {s = \\_,_ => "гэта" ++ np.s ! Nom ++ rs.s} ;
|
||||||
|
CleftAdv adv s = {s = \\_,_ => "гэта" ++ adv.s ++ s.s} ;
|
||||||
|
|
||||||
|
ExistNP np = {s = \\t,p => copula t p np.a ++ np.s ! Nom} ;
|
||||||
|
ExistIP ip = {s = \\t,p => copula t p ip.a ++ ip.s ! Nom} ;
|
||||||
|
ExistNPAdv np adv = {s = \\t,p => copula t p np.a ++ np.s ! Nom ++ adv.s} ;
|
||||||
|
ExistIPAdv ip adv = {s = \\t,p => copula t p ip.a ++ ip.s ! Nom ++ adv.s} ;
|
||||||
|
|
||||||
|
ProgrVP vp = vp ;
|
||||||
|
ImpPl1 vp = {s = "давайце" ++ vp.inf} ;
|
||||||
|
ImpP3 np vp = {s = "няхай" ++ np.s ! Nom ++ vp.s ! R.Pres ! R.Pos ! np.a} ;
|
||||||
|
|
||||||
|
SelfAdvVP vp = addAdvVP vp "сам" ;
|
||||||
|
SelfAdVVP vp = addAdVVP "сам" vp ;
|
||||||
|
SelfNP np = {s = \\c => np.s ! c ++ "сам"; a = np.a} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
--# -path=.:../abstract
|
--# -path=.:../abstract
|
||||||
concrete LangBel of Lang =
|
concrete LangBel of Lang =
|
||||||
GrammarBel,
|
GrammarBel,
|
||||||
LexiconBel
|
LexiconBel,
|
||||||
|
ConstructionBel
|
||||||
,DocumentationBel --# notpresent
|
,DocumentationBel --# notpresent
|
||||||
** {
|
** {
|
||||||
|
|
||||||
|
|
||||||
flags startcat = Phr ;
|
flags startcat = Phr ;
|
||||||
|
|
||||||
}
|
}
|
||||||
+744
-744
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,19 @@
|
|||||||
|
concrete NamesBel of Names = CatBel ** open ResBel, ParadigmsBel in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
GivenName gn = mkSimpleNP gn.s gn.g Sg P3 ;
|
||||||
|
MaleSurname sn = mkSimpleNP sn.s Masc Sg P3 ;
|
||||||
|
FemaleSurname sn = mkSimpleNP sn.s Fem Sg P3 ;
|
||||||
|
PlSurname sn = mkSimpleNP sn.s Masc Pl P3 ;
|
||||||
|
FullName gn sn = mkSimpleNP (gn.s ++ sn.s) gn.g Sg P3 ;
|
||||||
|
|
||||||
|
UseLN ln = {s = ln.s; a = {g=ln.g; n=ln.n; p=P3}} ;
|
||||||
|
PlainLN ln = {s = ln.s; a = {g=ln.g; n=ln.n; p=P3}} ;
|
||||||
|
InLN ln = {s = "у" ++ ln.s ! Loc} ;
|
||||||
|
AdjLN ap ln = {
|
||||||
|
s = \\c => ap.s ! c ! genNum ln.g ln.n ++ ln.s ! c ;
|
||||||
|
g = ln.g ;
|
||||||
|
n = ln.n
|
||||||
|
} ;
|
||||||
|
|
||||||
|
}
|
||||||
+123
-1
@@ -1,4 +1,126 @@
|
|||||||
concrete NounBel of Noun = CatBel ** {
|
concrete NounBel of Noun = CatBel ** open ResBel, Prelude in {
|
||||||
lin
|
lin
|
||||||
UseN n = n ;
|
UseN n = n ;
|
||||||
|
|
||||||
|
DetCN det cn = {
|
||||||
|
s = \\c => det.s ! c ! cn.g ++ cn.s ! c ! det.n ;
|
||||||
|
a = {g=cn.g; n=det.n; p=P3}
|
||||||
|
} ;
|
||||||
|
UsePN pn = {
|
||||||
|
s = pn.s ;
|
||||||
|
a = {g=pn.g; n=pn.n; p=P3}
|
||||||
|
} ;
|
||||||
|
UsePron p = p ;
|
||||||
|
|
||||||
|
PredetNP pred np = {
|
||||||
|
s = \\c => pred.s ! c ! np.a.g ! np.a.n ++ np.s ! c ;
|
||||||
|
a = np.a
|
||||||
|
} ;
|
||||||
|
PPartNP np v = {
|
||||||
|
s = \\c => np.s ! c ++ v.participle ! np.a.g ! np.a.n ;
|
||||||
|
a = np.a
|
||||||
|
} ;
|
||||||
|
AdvNP np adv = {
|
||||||
|
s = \\c => np.s ! c ++ adv.s ;
|
||||||
|
a = np.a
|
||||||
|
} ;
|
||||||
|
ExtAdvNP np adv = {
|
||||||
|
s = \\c => np.s ! c ++ adv.s ;
|
||||||
|
a = np.a
|
||||||
|
} ;
|
||||||
|
RelNP np rs = {
|
||||||
|
s = \\c => np.s ! c ++ rs.s ;
|
||||||
|
a = np.a
|
||||||
|
} ;
|
||||||
|
DetNP det = {
|
||||||
|
s = \\c => det.s ! c ! Masc ;
|
||||||
|
a = {g=Masc; n=det.n; p=P3}
|
||||||
|
} ;
|
||||||
|
|
||||||
|
DetQuant q n = {
|
||||||
|
s = \\c,g => q.s ! c ! g ! n.n ++ n.s ! c ! g ;
|
||||||
|
n = n.n
|
||||||
|
} ;
|
||||||
|
DetQuantOrd q n o = {
|
||||||
|
s = \\c,g => q.s ! c ! g ! n.n ++ n.s ! c ! g ++ o.s ! c ! genNum g n.n ;
|
||||||
|
n = n.n
|
||||||
|
} ;
|
||||||
|
NumSg = {s = \\_,_ => []; n = Sg} ;
|
||||||
|
NumPl = {s = \\_,_ => []; n = Pl} ;
|
||||||
|
NumCard card = {s = \\_,_ => card.s; n = card.n} ;
|
||||||
|
NumDigits digits = {s = digits.s; n = Pl} ;
|
||||||
|
NumDecimal dec = {s = dec.s; n = Pl} ;
|
||||||
|
NumNumeral numeral = {s = numeral.s; n = Pl} ;
|
||||||
|
AdNum adn card = {s = adn.s ++ card.s; n = card.n} ;
|
||||||
|
|
||||||
|
OrdDigits d = adjFromStr d.s ;
|
||||||
|
OrdNumeral n = adjFromStr n.s ;
|
||||||
|
OrdSuperl a = {s = \\c,gn => "най" ++ a.s ! c ! gn} ;
|
||||||
|
OrdNumeralSuperl n a = {s = \\c,gn => n.s ++ a.s ! c ! gn} ;
|
||||||
|
|
||||||
|
IndefArt = {s = \\_,_,_ => []} ;
|
||||||
|
DefArt = {s = \\_,_,_ => []} ;
|
||||||
|
MassNP cn = {
|
||||||
|
s = \\c => cn.s ! c ! Sg ;
|
||||||
|
a = {g=cn.g; n=Sg; p=P3}
|
||||||
|
} ;
|
||||||
|
PossPron p = {s = \\_,_,_ => p.s ! Gen} ;
|
||||||
|
|
||||||
|
ComplN2 n np = {
|
||||||
|
s = \\c,num => n.s ! c ! num ++ prepNP n.c2 np ;
|
||||||
|
voc = n.voc ;
|
||||||
|
g = n.g
|
||||||
|
} ;
|
||||||
|
ComplN3 n np = n ** {c2 = n.c3} ;
|
||||||
|
UseN2 n = n ;
|
||||||
|
Use2N3 n = n ** {c2 = n.c2} ;
|
||||||
|
Use3N3 n = n ** {c2 = n.c3} ;
|
||||||
|
|
||||||
|
AdjCN ap cn = {
|
||||||
|
s = \\c,num => ap.s ! c ! genNum cn.g num ++ cn.s ! c ! num ;
|
||||||
|
voc = cn.voc ;
|
||||||
|
g = cn.g
|
||||||
|
} ;
|
||||||
|
RelCN cn rs = {
|
||||||
|
s = \\c,num => cn.s ! c ! num ++ rs.s ;
|
||||||
|
voc = cn.voc ;
|
||||||
|
g = cn.g
|
||||||
|
} ;
|
||||||
|
AdvCN cn adv = {
|
||||||
|
s = \\c,num => cn.s ! c ! num ++ adv.s ;
|
||||||
|
voc = cn.voc ;
|
||||||
|
g = cn.g
|
||||||
|
} ;
|
||||||
|
SentCN cn sc = {
|
||||||
|
s = \\c,num => cn.s ! c ! num ++ sc.s ;
|
||||||
|
voc = cn.voc ;
|
||||||
|
g = cn.g
|
||||||
|
} ;
|
||||||
|
ApposCN cn np = {
|
||||||
|
s = \\c,num => cn.s ! c ! num ++ np.s ! Nom ;
|
||||||
|
voc = cn.voc ;
|
||||||
|
g = cn.g
|
||||||
|
} ;
|
||||||
|
PossNP cn np = {
|
||||||
|
s = \\c,num => cn.s ! c ! num ++ np.s ! Gen ;
|
||||||
|
voc = cn.voc ;
|
||||||
|
g = cn.g
|
||||||
|
} ;
|
||||||
|
PartNP cn np = {
|
||||||
|
s = \\c,num => cn.s ! c ! num ++ np.s ! Gen ;
|
||||||
|
voc = cn.voc ;
|
||||||
|
g = cn.g
|
||||||
|
} ;
|
||||||
|
CountNP det np = {
|
||||||
|
s = \\c => det.s ! c ! Masc ++ "з" ++ np.s ! Gen ;
|
||||||
|
a = {g=Masc; n=det.n; p=P3}
|
||||||
|
} ;
|
||||||
|
|
||||||
|
AdjDAP dap ap = {
|
||||||
|
s = \\c,g => dap.s ! c ! g ++ ap.s ! c ! genNum g dap.n ;
|
||||||
|
n = dap.n
|
||||||
|
} ;
|
||||||
|
DetDAP det = det ;
|
||||||
|
|
||||||
|
QuantityNP dec mu = mkSimpleNP (dec.s ++ mu.s) Neuter Sg P3 ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,65 @@
|
|||||||
|
concrete NumeralBel of Numeral = CatBel ** {
|
||||||
|
|
||||||
|
lincat
|
||||||
|
Digit, Sub10, Sub100, Sub1000, Sub1000000, Sub1000000000, Sub1000000000000 = {s : Str} ;
|
||||||
|
Dig = {s : Str} ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
num n = n ;
|
||||||
|
|
||||||
|
n2 = {s = "2"} ;
|
||||||
|
n3 = {s = "3"} ;
|
||||||
|
n4 = {s = "4"} ;
|
||||||
|
n5 = {s = "5"} ;
|
||||||
|
n6 = {s = "6"} ;
|
||||||
|
n7 = {s = "7"} ;
|
||||||
|
n8 = {s = "8"} ;
|
||||||
|
n9 = {s = "9"} ;
|
||||||
|
|
||||||
|
pot01 = {s = "1"} ;
|
||||||
|
pot0 d = d ;
|
||||||
|
pot0as1 n = n ;
|
||||||
|
pot110 = {s = "10"} ;
|
||||||
|
pot111 = {s = "11"} ;
|
||||||
|
pot1to19 d = {s = "1" ++ d.s} ;
|
||||||
|
pot1 d = {s = d.s ++ "0"} ;
|
||||||
|
pot1plus d n = {s = d.s ++ n.s} ;
|
||||||
|
pot1as2 n = n ;
|
||||||
|
pot21 = {s = "100"} ;
|
||||||
|
pot2 n = {s = n.s ++ "00"} ;
|
||||||
|
pot2plus n m = {s = n.s ++ "00" ++ m.s} ;
|
||||||
|
pot2as3 n = n ;
|
||||||
|
pot31 = {s = "1000"} ;
|
||||||
|
pot3 n = {s = n.s ++ "000"} ;
|
||||||
|
pot3plus n m = {s = n.s ++ "000" ++ m.s} ;
|
||||||
|
pot3as4 n = n ;
|
||||||
|
pot3decimal d = {s = d.s ++ "тысяч"} ;
|
||||||
|
pot41 = {s = "1000000"} ;
|
||||||
|
pot4 n = {s = n.s ++ "000000"} ;
|
||||||
|
pot4plus n m = {s = n.s ++ "000000" ++ m.s} ;
|
||||||
|
pot4as5 n = n ;
|
||||||
|
pot4decimal d = {s = d.s ++ "мільёна"} ;
|
||||||
|
pot51 = {s = "1000000000"} ;
|
||||||
|
pot5 n = {s = n.s ++ "000000000"} ;
|
||||||
|
pot5plus n m = {s = n.s ++ "000000000" ++ m.s} ;
|
||||||
|
pot5decimal d = {s = d.s ++ "мільярда"} ;
|
||||||
|
|
||||||
|
IDig d = d ;
|
||||||
|
IIDig d ds = {s = d.s ++ ds.s} ;
|
||||||
|
|
||||||
|
D_0 = {s = "0"} ;
|
||||||
|
D_1 = {s = "1"} ;
|
||||||
|
D_2 = {s = "2"} ;
|
||||||
|
D_3 = {s = "3"} ;
|
||||||
|
D_4 = {s = "4"} ;
|
||||||
|
D_5 = {s = "5"} ;
|
||||||
|
D_6 = {s = "6"} ;
|
||||||
|
D_7 = {s = "7"} ;
|
||||||
|
D_8 = {s = "8"} ;
|
||||||
|
D_9 = {s = "9"} ;
|
||||||
|
|
||||||
|
PosDecimal d = d ;
|
||||||
|
NegDecimal d = {s = "-" ++ d.s} ;
|
||||||
|
IFrac d dig = {s = d.s ++ "." ++ dig.s} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -636,6 +636,42 @@ oper
|
|||||||
_ => regN form1
|
_ => regN form1
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
compoundN = overload {
|
||||||
|
compoundN : A -> N -> N = \a,n -> lin N {
|
||||||
|
s = \\c,num => a.s ! c ! genNum n.g num ++ n.s ! c ! num ;
|
||||||
|
voc = a.s ! Nom ! genNum n.g Sg ++ n.voc ;
|
||||||
|
g = n.g
|
||||||
|
} ;
|
||||||
|
compoundN : N -> A -> N = \n,a -> lin N {
|
||||||
|
s = \\c,num => n.s ! c ! num ++ a.s ! c ! genNum n.g num ;
|
||||||
|
voc = n.voc ++ a.s ! Nom ! genNum n.g Sg ;
|
||||||
|
g = n.g
|
||||||
|
} ;
|
||||||
|
compoundN : N -> Str -> N = \n,adv -> lin N {
|
||||||
|
s = \\c,num => n.s ! c ! num ++ adv ;
|
||||||
|
voc = n.voc ++ adv ;
|
||||||
|
g = n.g
|
||||||
|
} ;
|
||||||
|
compoundN : Str -> N -> N = \adv,n -> lin N {
|
||||||
|
s = \\c,num => adv ++ n.s ! c ! num ;
|
||||||
|
voc = adv ++ n.voc ;
|
||||||
|
g = n.g
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
|
||||||
|
mkPron : (_,_,_,_,_,_ : Str) -> Gender -> Number -> Person -> Pron =
|
||||||
|
\nom,acc,dat,gen,loc,instr,g,n,p -> lin Pron {
|
||||||
|
s = table {
|
||||||
|
Nom => nom ;
|
||||||
|
Acc => acc ;
|
||||||
|
Dat => dat ;
|
||||||
|
Gen => gen ;
|
||||||
|
Loc => loc ;
|
||||||
|
Instr => instr
|
||||||
|
} ;
|
||||||
|
a = {g=g; n = n; p = p}
|
||||||
|
} ;
|
||||||
|
|
||||||
regV : Str -> V -- infinitive
|
regV : Str -> V -- infinitive
|
||||||
= \form -> case form of {
|
= \form -> case form of {
|
||||||
_ + "агчы" => mkV021 form;
|
_ + "агчы" => mkV021 form;
|
||||||
@@ -717,6 +753,16 @@ oper
|
|||||||
_ => regV form1
|
_ => regV form1
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
compoundV : V -> Str -> V = \v,adv -> lin V {
|
||||||
|
active = \\a => {past=(v.active ! a).past ++ adv ;
|
||||||
|
pres=\\p,num=>(v.active ! a).pres ! p ! num ++ adv
|
||||||
|
} ;
|
||||||
|
imperative = \\num => v.imperative ! num ++ adv ;
|
||||||
|
infinitive = v.infinitive ++ adv ;
|
||||||
|
participle = \\g,num => v.participle ! g ! num ++ adv ;
|
||||||
|
passive = \\a,t => v.passive ! a ! t ++ adv
|
||||||
|
} ;
|
||||||
|
|
||||||
regA : Str -> A -- s;Nom;('GSg', Masc)
|
regA : Str -> A -- s;Nom;('GSg', Masc)
|
||||||
= \form -> case form of {
|
= \form -> case form of {
|
||||||
_ + "які" => mkA006 form;
|
_ + "які" => mkA006 form;
|
||||||
@@ -819,24 +865,37 @@ oper
|
|||||||
mkInterj : Str -> Interj = \s -> lin Interj {s=s} ;
|
mkInterj : Str -> Interj = \s -> lin Interj {s=s} ;
|
||||||
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False} ;
|
mkMU : Str -> MU = \s -> lin MU {s=s; isPre=False} ;
|
||||||
|
|
||||||
mkPrep : Str -> Prep = \s -> lin Prep {s=s; c=Acc} ;
|
nominative : Case = Nom ;
|
||||||
|
accusative : Case = Acc ;
|
||||||
|
dative : Case = Dat ;
|
||||||
|
genitive : Case = Gen ;
|
||||||
|
locative : Case = Loc ;
|
||||||
|
instrumental : Case = Instr ;
|
||||||
|
|
||||||
|
mkPrep = overload {
|
||||||
|
mkPrep : Str -> Prep = \s -> lin Prep {s=s; c=Acc} ;
|
||||||
|
mkPrep : Case -> Prep = \c -> lin Prep {s=[]; c=c} ;
|
||||||
|
mkPrep : Str -> Case -> Prep = \s,c -> lin Prep {s=s; c=c}
|
||||||
|
} ;
|
||||||
|
|
||||||
mkIAdv : Str -> IAdv = \s -> lin IAdv {s=s} ;
|
mkIAdv : Str -> IAdv = \s -> lin IAdv {s=s} ;
|
||||||
mkIP : Str -> IP = \s -> lin IP {s=s} ;
|
mkIP : Str -> IP = \s -> lin IP (mkSimpleNP s Masc Sg P3) ;
|
||||||
mkIQuant : Str -> IQuant = \s -> lin IQuant {s=s} ;
|
mkIQuant : Str -> IQuant = \s -> lin IQuant {s=\\_,_,_ => s} ;
|
||||||
mkIDet : Str -> IDet = \s -> lin IDet {s=s} ;
|
mkIDet : Str -> IDet = \s -> lin IDet {s=\\_,_ => s; n=Sg} ;
|
||||||
mkSubj : Str -> Subj = \s -> lin Subj {s=s} ;
|
mkSubj : Str -> Subj = \s -> lin Subj {s=s} ;
|
||||||
mkQuant : Str -> Quant = \s -> lin Quant {s=s} ;
|
mkQuant : Str -> Quant = \s -> lin Quant {s=\\_,_,_ => s} ;
|
||||||
mkPredet : Str -> Predet = \s -> lin Predet {s=s} ;
|
adjQuant : A -> Quant = \a -> lin Quant {s=\\c,g,n => a.s ! c ! genNum g n} ;
|
||||||
mkDet : Str -> Det = \s -> lin Det {s=s} ;
|
mkPredet : Str -> Predet = \s -> lin Predet {s=\\_,_,_ => s} ;
|
||||||
mkCard : Str -> Card = \s -> lin Card {s=s} ;
|
mkDet : Str -> Det = \s -> lin Det {s=\\_,_ => s; n=Sg} ;
|
||||||
mkConj : Str -> Conj = \s -> lin Conj {s=s} ;
|
mkCard : Str -> Card = \s -> lin Card {s=s; n=Pl} ;
|
||||||
|
mkACard : Str -> ACard = \s -> lin ACard {s=s; n=Pl} ;
|
||||||
|
mkConj : Str -> Conj = \s -> lin Conj {s=s; n=Pl} ;
|
||||||
mkPConj : Str -> PConj = \s -> lin PConj {s=s} ;
|
mkPConj : Str -> PConj = \s -> lin PConj {s=s} ;
|
||||||
mkVoc : Str -> Voc = \s -> lin Voc {s=s} ;
|
mkVoc : Str -> Voc = \s -> lin Voc {s=s} ;
|
||||||
|
|
||||||
mkLN : Str -> LN = \s -> lin LN {s=s} ;
|
mkLN : Str -> LN = \s -> lin LN {s=caseTable s; g=Neuter; n=Sg} ;
|
||||||
mkGN : Str -> GN = \s -> lin GN {s=s} ;
|
mkGN : Str -> GN = \s -> lin GN {s=s; g=Masc} ;
|
||||||
mkSN : Str -> SN = \s -> lin SN {s=s} ;
|
mkSN : Str -> SN = \s -> lin SN {s=s} ;
|
||||||
mkPN : Str -> PN = \s -> lin PN {s=s} ;
|
mkPN : Str -> PN = \s -> lin PN {s=caseTable s; g=Masc; n=Sg} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,25 @@
|
|||||||
concrete PhraseBel of Phrase = CatBel ** {
|
concrete PhraseBel of Phrase = CatBel ** open ResBel in {
|
||||||
lin
|
lin
|
||||||
PhrUtt pconj utt voc = {s = pconj.s ++ utt.s ++ voc.s} ;
|
PhrUtt pconj utt voc = {s = pconj.s ++ utt.s ++ voc.s} ;
|
||||||
|
|
||||||
UttS s = s ;
|
UttS s = s ;
|
||||||
|
UttQS qs = qs ;
|
||||||
|
UttImpSg pol imp = {s = pol.s ++ imp.s ! pol.p ! Sg} ;
|
||||||
|
UttImpPl pol imp = {s = pol.s ++ imp.s ! pol.p ! Pl} ;
|
||||||
|
UttImpPol pol imp = {s = pol.s ++ imp.s ! pol.p ! Pl} ;
|
||||||
|
UttIP ip = {s = ip.s ! Nom} ;
|
||||||
|
UttIAdv iadv = iadv ;
|
||||||
|
UttNP np = {s = np.s ! Nom} ;
|
||||||
|
UttAdv adv = adv ;
|
||||||
|
UttVP vp = {s = vp.inf} ;
|
||||||
|
UttCN cn = {s = cn.s ! Nom ! Sg} ;
|
||||||
|
UttCard card = {s = card.s} ;
|
||||||
|
UttAP ap = {s = ap.s ! Nom ! GSg Masc} ;
|
||||||
UttInterj i = i ;
|
UttInterj i = i ;
|
||||||
|
|
||||||
NoPConj = {s = []} ;
|
NoPConj = {s = []} ;
|
||||||
|
PConjConj conj = {s = conj.s} ;
|
||||||
|
|
||||||
NoVoc = {s = []} ;
|
NoVoc = {s = []} ;
|
||||||
|
VocNP np = {s = np.s ! Nom} ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
concrete QuestionBel of Question = CatBel ** open ResBel, (R = ParamX) in {
|
||||||
|
|
||||||
|
lincat
|
||||||
|
QVP = {s : Str} ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
QuestCl cl = cl ;
|
||||||
|
QuestVP ip vp = {
|
||||||
|
s = \\t,p => ip.s ! Nom ++ vp.s ! t ! p ! ip.a
|
||||||
|
} ;
|
||||||
|
QuestSlash ip cl = {
|
||||||
|
s = \\t,p => cl.c.s ++ ip.s ! cl.c.c ++ cl.s ! t ! p
|
||||||
|
} ;
|
||||||
|
QuestIAdv iadv cl = {
|
||||||
|
s = \\t,p => iadv.s ++ cl.s ! t ! p
|
||||||
|
} ;
|
||||||
|
QuestIComp icomp np = {
|
||||||
|
s = \\t,p => icomp.s ++ np.s ! Nom
|
||||||
|
} ;
|
||||||
|
|
||||||
|
IdetCN idet cn = {
|
||||||
|
s = \\c => idet.s ! c ! cn.g ++ cn.s ! c ! idet.n ;
|
||||||
|
a = {g=cn.g; n=idet.n; p=P3}
|
||||||
|
} ;
|
||||||
|
IdetIP idet = {
|
||||||
|
s = \\c => idet.s ! c ! Masc ;
|
||||||
|
a = {g=Masc; n=idet.n; p=P3}
|
||||||
|
} ;
|
||||||
|
AdvIP ip adv = {
|
||||||
|
s = \\c => ip.s ! c ++ adv.s ;
|
||||||
|
a = ip.a
|
||||||
|
} ;
|
||||||
|
IdetQuant iquant num = {
|
||||||
|
s = \\c,g => iquant.s ! c ! g ! num.n ++ num.s ! c ! g ;
|
||||||
|
n = num.n
|
||||||
|
} ;
|
||||||
|
|
||||||
|
PrepIP prep ip = {s = prepNP prep ip} ;
|
||||||
|
AdvIAdv iadv adv = {s = iadv.s ++ adv.s} ;
|
||||||
|
CompIAdv iadv = iadv ;
|
||||||
|
CompIP ip = {s = ip.s ! Nom} ;
|
||||||
|
|
||||||
|
ComplSlashIP vp ip = {s = vp.s ! R.Pres ! R.Pos ! defaultAgr ++ vp.c.s ++ ip.s ! vp.c.c ++ vp.post} ;
|
||||||
|
AdvQVP vp iadv = {s = vp.s ! R.Pres ! R.Pos ! defaultAgr ++ iadv.s} ;
|
||||||
|
AddAdvQVP qvp iadv = {s = qvp.s ++ iadv.s} ;
|
||||||
|
QuestQVP ip qvp = {
|
||||||
|
s = \\_,_ => ip.s ! Nom ++ qvp.s
|
||||||
|
} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
concrete RelativeBel of Relative = CatBel ** open ResBel in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
RelCl cl = {s = \\t,p => "што" ++ cl.s ! t ! p} ;
|
||||||
|
RelVP rp vp = {s = \\t,p => rp.s ++ vp.s ! t ! p ! defaultAgr} ;
|
||||||
|
RelSlash rp cl = {s = \\t,p => rp.s ++ cl.s ! t ! p} ;
|
||||||
|
|
||||||
|
IdRP = {s = "які"} ;
|
||||||
|
FunRP prep np rp = {s = prepNP prep np ++ rp.s} ;
|
||||||
|
|
||||||
|
}
|
||||||
+133
-10
@@ -1,4 +1,4 @@
|
|||||||
resource ResBel = {
|
resource ResBel = open (R = ParamX), Prelude in {
|
||||||
|
|
||||||
param Case = Nom | Acc | Dat | Gen | Loc | Instr ;
|
param Case = Nom | Acc | Dat | Gen | Loc | Instr ;
|
||||||
param Number = Sg | Pl ;
|
param Number = Sg | Pl ;
|
||||||
@@ -40,12 +40,12 @@ oper mkNoun : (_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Gender -> Noun =
|
|||||||
param Aspect = Imperf | Perf ;
|
param Aspect = Imperf | Perf ;
|
||||||
param Person = P1 | P2 | P3 ;
|
param Person = P1 | P2 | P3 ;
|
||||||
param Tense = Pres | Past ;
|
param Tense = Pres | Past ;
|
||||||
oper V = {active: Aspect => {Past: Str; Pres: Person => Number => Str}; imperative: Number => Str; infinitive: Str; participle: Gender => Number => Str; passive: Aspect => Tense => Str} ; -- 703
|
oper Verb = {active: Aspect => {past: Str; pres: Person => Number => Str}; imperative: Number => Str; infinitive: Str; participle: Gender => Number => Str; passive: Aspect => Tense => Str} ; -- 703
|
||||||
oper mkV : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> V =
|
oper mkVerb : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Verb =
|
||||||
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18,f19,f20,f21,f22,f23,f24,f25,f26,f27 ->
|
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18,f19,f20,f21,f22,f23,f24,f25,f26,f27 ->
|
||||||
{ active = table {
|
{ active = table {
|
||||||
Imperf => { Past = f1 ;
|
Imperf => { past = f1 ;
|
||||||
Pres = table {
|
pres = table {
|
||||||
P1 => table {
|
P1 => table {
|
||||||
Sg => f2 ;
|
Sg => f2 ;
|
||||||
Pl => f3
|
Pl => f3
|
||||||
@@ -60,8 +60,8 @@ oper mkV : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> V =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
Perf => { Past = f8 ;
|
Perf => { past = f8 ;
|
||||||
Pres = table {
|
pres = table {
|
||||||
P1 => table {
|
P1 => table {
|
||||||
Sg => f9 ;
|
Sg => f9 ;
|
||||||
Pl => f10
|
Pl => f10
|
||||||
@@ -110,8 +110,14 @@ oper mkV : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> V =
|
|||||||
|
|
||||||
|
|
||||||
param GenNum = GSg Gender | GPl ;
|
param GenNum = GSg Gender | GPl ;
|
||||||
oper A = {s: Case => GenNum => Str} ; -- 704
|
oper genNum : Gender -> Number -> GenNum = \g,n ->
|
||||||
oper mkA : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> A =
|
case n of {
|
||||||
|
Sg => GSg g ;
|
||||||
|
Pl => GPl
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper Adj = {s: Case => GenNum => Str} ; -- 704
|
||||||
|
oper mkAdj : (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Adj =
|
||||||
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18,f19,f20,f21,f22,f23,f24 ->
|
\f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,f15,f16,f17,f18,f19,f20,f21,f22,f23,f24 ->
|
||||||
{ s = table {
|
{ s = table {
|
||||||
Nom => table {
|
Nom => table {
|
||||||
@@ -158,6 +164,123 @@ oper Compl = {s : Str; c : Case} ;
|
|||||||
oper noPrep : Compl = {s=""; c=Acc} ;
|
oper noPrep : Compl = {s=""; c=Acc} ;
|
||||||
|
|
||||||
oper CommonNoun = Noun ;
|
oper CommonNoun = Noun ;
|
||||||
oper AdjPhrase = A ;
|
oper AdjPhrase = Adj ;
|
||||||
|
|
||||||
|
oper Agr = {g : Gender ; n : Number ; p : Person} ;
|
||||||
|
oper defaultAgr : Agr = {g=Masc; n=Sg; p=P3} ;
|
||||||
|
|
||||||
|
oper NPhrase : Type = {s : Case => Str; a : Agr} ;
|
||||||
|
oper mkNPhrase : (Case => Str) -> Agr -> NPhrase =
|
||||||
|
\s,a -> {s = s; a = a} ;
|
||||||
|
oper caseTable : Str -> Case => Str =
|
||||||
|
\s -> table {Nom => s; Acc => s; Dat => s; Gen => s; Loc => s; Instr => s} ;
|
||||||
|
oper mkSimpleNP : Str -> Gender -> Number -> Person -> NPhrase =
|
||||||
|
\s,g,n,p -> mkNPhrase (caseTable s) {g=g; n=n; p=p} ;
|
||||||
|
|
||||||
|
oper nounFromStr : Str -> Gender -> Noun =
|
||||||
|
\s,g -> {
|
||||||
|
s = \\_,_ => s ;
|
||||||
|
voc = s ;
|
||||||
|
g = g
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper adjFromStr : Str -> Adj =
|
||||||
|
\s -> {s = \\_,_ => s} ;
|
||||||
|
|
||||||
|
oper prepNP : Compl -> NPhrase -> Str =
|
||||||
|
\prep,np -> prep.s ++ np.s ! prep.c ;
|
||||||
|
|
||||||
|
oper neg : R.Polarity -> Str =
|
||||||
|
\p -> case p of {
|
||||||
|
R.Pos => [] ;
|
||||||
|
R.Neg => "не"
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper futureBe : Agr -> Str =
|
||||||
|
\a -> case <a.p,a.n> of {
|
||||||
|
<P1,Sg> => "буду" ;
|
||||||
|
<P2,Sg> => "будзеш" ;
|
||||||
|
<P3,Sg> => "будзе" ;
|
||||||
|
<P1,Pl> => "будзем" ;
|
||||||
|
<P2,Pl> => "будзеце" ;
|
||||||
|
<P3,Pl> => "будуць"
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper pastBe : Agr -> Str =
|
||||||
|
\a -> case <a.g,a.n> of {
|
||||||
|
<Masc,Sg> => "быў" ;
|
||||||
|
<Fem,Sg> => "была" ;
|
||||||
|
<Neuter,Sg> => "было" ;
|
||||||
|
<_,Pl> => "былі"
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper copula : R.Tense -> R.Polarity -> Agr -> Str =
|
||||||
|
\t,p,a -> case t of {
|
||||||
|
R.Pres => neg p ;
|
||||||
|
R.Past => neg p ++ pastBe a ;
|
||||||
|
R.Fut => neg p ++ futureBe a ;
|
||||||
|
R.Cond => neg p ++ pastBe a ++ "бы"
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper finiteVerb : Verb -> R.Tense -> R.Polarity -> Agr -> Str =
|
||||||
|
\v,t,p,a -> case t of {
|
||||||
|
R.Pres => neg p ++ (v.active ! Imperf).pres ! a.p ! a.n ;
|
||||||
|
R.Past => neg p ++ v.participle ! a.g ! a.n ;
|
||||||
|
R.Fut => neg p ++ futureBe a ++ v.infinitive ;
|
||||||
|
R.Cond => neg p ++ v.participle ! a.g ! a.n ++ "бы"
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper VPhrase : Type = {
|
||||||
|
s : R.Tense => R.Polarity => Agr => Str ;
|
||||||
|
inf : Str ;
|
||||||
|
imp : R.Polarity => Number => Str
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper mkVPhrase : Verb -> VPhrase =
|
||||||
|
\v -> {
|
||||||
|
s = \\t,p,a => finiteVerb v t p a ;
|
||||||
|
inf = v.infinitive ;
|
||||||
|
imp = \\p,n => neg p ++ v.imperative ! n
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper VSlash : Type = {
|
||||||
|
s : R.Tense => R.Polarity => Agr => Str ;
|
||||||
|
inf : Str ;
|
||||||
|
c : Compl ;
|
||||||
|
imp : R.Polarity => Number => Str ;
|
||||||
|
post : Str
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper mkVSlash : Verb -> Compl -> VSlash =
|
||||||
|
\v,c -> {
|
||||||
|
s = \\t,p,a => finiteVerb v t p a ;
|
||||||
|
inf = v.infinitive ;
|
||||||
|
c = c ;
|
||||||
|
imp = \\p,n => neg p ++ v.imperative ! n ;
|
||||||
|
post = []
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper addAdvVP : VPhrase -> Str -> VPhrase =
|
||||||
|
\vp,adv -> {
|
||||||
|
s = \\t,p,a => vp.s ! t ! p ! a ++ adv ;
|
||||||
|
inf = vp.inf ++ adv ;
|
||||||
|
imp = \\p,n => vp.imp ! p ! n ++ adv
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper addAdVVP : Str -> VPhrase -> VPhrase =
|
||||||
|
\adv,vp -> {
|
||||||
|
s = \\t,p,a => adv ++ vp.s ! t ! p ! a ;
|
||||||
|
inf = adv ++ vp.inf ;
|
||||||
|
imp = \\p,n => adv ++ vp.imp ! p ! n
|
||||||
|
} ;
|
||||||
|
|
||||||
|
oper addAdvSlash : VSlash -> Str -> VSlash =
|
||||||
|
\vp,adv -> {
|
||||||
|
s = \\t,p,a => vp.s ! t ! p ! a ;
|
||||||
|
inf = vp.inf ++ adv ;
|
||||||
|
c = vp.c ;
|
||||||
|
imp = \\p,n => vp.imp ! p ! n ;
|
||||||
|
post = vp.post ++ adv
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
concrete SentenceBel of Sentence = CatBel ** open ResBel, (R = ParamX), Prelude in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
PredVP np vp = {
|
||||||
|
s = \\t,p => np.s ! Nom ++ vp.s ! t ! p ! np.a
|
||||||
|
} ;
|
||||||
|
PredSCVP sc vp = {
|
||||||
|
s = \\t,p => sc.s ++ vp.s ! t ! p ! defaultAgr
|
||||||
|
} ;
|
||||||
|
|
||||||
|
SlashVP np vp = {
|
||||||
|
s = \\t,p => np.s ! Nom ++ vp.s ! t ! p ! np.a ++ vp.post ;
|
||||||
|
c = vp.c
|
||||||
|
} ;
|
||||||
|
AdvSlash cl adv = {
|
||||||
|
s = \\t,p => cl.s ! t ! p ++ adv.s ;
|
||||||
|
c = cl.c
|
||||||
|
} ;
|
||||||
|
SlashPrep cl prep = {
|
||||||
|
s = \\t,p => cl.s ! t ! p ++ prep.s ;
|
||||||
|
c = prep
|
||||||
|
} ;
|
||||||
|
SlashVS np vs ss = {
|
||||||
|
s = \\t,p => np.s ! Nom ++ finiteVerb vs t p np.a ++ ss.s ;
|
||||||
|
c = ss.c
|
||||||
|
} ;
|
||||||
|
|
||||||
|
ImpVP vp = {s = \\p,n => vp.imp ! p ! n} ;
|
||||||
|
AdvImp adv imp = {s = \\p,n => adv.s ++ imp.s ! p ! n} ;
|
||||||
|
|
||||||
|
EmbedS s = {s = "што" ++ s.s} ;
|
||||||
|
EmbedQS qs = {s = qs.s} ;
|
||||||
|
EmbedVP vp = {s = vp.inf} ;
|
||||||
|
|
||||||
|
UseCl temp pol cl = {s = temp.s ++ pol.s ++ cl.s ! temp.t ! pol.p} ;
|
||||||
|
UseQCl temp pol cl = {s = temp.s ++ pol.s ++ cl.s ! temp.t ! pol.p} ;
|
||||||
|
UseRCl temp pol cl = {s = cl.s ! temp.t ! pol.p} ;
|
||||||
|
UseSlash temp pol cl = {s = cl.s ! temp.t ! pol.p; c = cl.c} ;
|
||||||
|
|
||||||
|
AdvS adv s = {s = adv.s ++ s.s} ;
|
||||||
|
ExtAdvS adv s = {s = adv.s ++ s.s} ;
|
||||||
|
SSubjS s1 subj s2 = {s = s1.s ++ subj.s ++ s2.s} ;
|
||||||
|
RelS s rs = {s = s.s ++ rs.s} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
concrete StructuralBel of Structural = CatBel ** open ResBel, ParadigmsBel in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
above_Prep = mkPrep "над" instrumental ;
|
||||||
|
after_Prep = mkPrep "пасля" genitive ;
|
||||||
|
all_Predet = mkPredet "усе" ;
|
||||||
|
almost_AdA = mkAdA "амаль" ;
|
||||||
|
almost_AdN = mkAdN "амаль" ;
|
||||||
|
although_Subj = mkSubj "хоць" ;
|
||||||
|
always_AdV = mkAdV "заўсёды" ;
|
||||||
|
and_Conj = mkConj "і" ;
|
||||||
|
because_Subj = mkSubj "бо" ;
|
||||||
|
before_Prep = mkPrep "перад" instrumental ;
|
||||||
|
behind_Prep = mkPrep "за" instrumental ;
|
||||||
|
between_Prep = mkPrep "паміж" instrumental ;
|
||||||
|
both7and_DConj = mkConj "і" ;
|
||||||
|
but_PConj = mkPConj "але" ;
|
||||||
|
by8agent_Prep = mkPrep "кім" instrumental ;
|
||||||
|
by8means_Prep = mkPrep "праз" accusative ;
|
||||||
|
can8know_VV = mkVV (mkV021 "магчы") ;
|
||||||
|
can_VV = mkVV (mkV021 "магчы") ;
|
||||||
|
during_Prep = mkPrep "падчас" genitive ;
|
||||||
|
either7or_DConj = mkConj "або" ;
|
||||||
|
every_Det = {s = \\_,_ => "кожны"; n = Sg} ;
|
||||||
|
everybody_NP = mkSimpleNP "усе" Masc Pl P3 ;
|
||||||
|
everything_NP = mkSimpleNP "усё" Neuter Sg P3 ;
|
||||||
|
everywhere_Adv = mkAdv "усюды" ;
|
||||||
|
few_Det = {s = \\_,_ => "некалькі"; n = Pl} ;
|
||||||
|
for_Prep = mkPrep "для" genitive ;
|
||||||
|
from_Prep = mkPrep "ад" genitive ;
|
||||||
|
|
||||||
|
i_Pron = mkPron "я" "мяне" "мне" "мяне" "мне" "мной" Masc Sg P1 ;
|
||||||
|
youSg_Pron = mkPron "ты" "цябе" "табе" "цябе" "табе" "табой" Masc Sg P2 ;
|
||||||
|
he_Pron = mkPron "ён" "яго" "яму" "яго" "ім" "ім" Masc Sg P3 ;
|
||||||
|
she_Pron = mkPron "яна" "яе" "ёй" "яе" "ёй" "ёю" Fem Sg P3 ;
|
||||||
|
it_Pron = mkPron "яно" "яго" "яму" "яго" "ім" "ім" Neuter Sg P3 ;
|
||||||
|
we_Pron = mkPron "мы" "нас" "нам" "нас" "нас" "намі" Masc Pl P1 ;
|
||||||
|
youPl_Pron = mkPron "вы" "вас" "вам" "вас" "вас" "вамі" Masc Pl P2 ;
|
||||||
|
youPol_Pron = mkPron "вы" "вас" "вам" "вас" "вас" "вамі" Masc Pl P2 ;
|
||||||
|
they_Pron = mkPron "яны" "іх" "ім" "іх" "іх" "імі" Masc Pl P3 ;
|
||||||
|
|
||||||
|
here_Adv = mkAdv "тут" ;
|
||||||
|
here7to_Adv = mkAdv "сюды" ;
|
||||||
|
here7from_Adv = mkAdv "адсюль" ;
|
||||||
|
how_IAdv = mkIAdv "як" ;
|
||||||
|
how8many_IDet = mkIDet "колькі" ;
|
||||||
|
how8much_IAdv = mkIAdv "колькі" ;
|
||||||
|
if_Subj = mkSubj "калі" ;
|
||||||
|
in8front_Prep = mkPrep "перад" instrumental ;
|
||||||
|
in_Prep = mkPrep "у" locative ;
|
||||||
|
less_CAdv = {s = "менш"; p = "чым"} ;
|
||||||
|
many_Det = {s = \\_,_ => "шмат"; n = Pl} ;
|
||||||
|
more_CAdv = {s = "больш"; p = "чым"} ;
|
||||||
|
most_Predet = mkPredet "большасць" ;
|
||||||
|
much_Det = {s = \\_,_ => "шмат"; n = Sg} ;
|
||||||
|
must_VV = mkVV (mkV "мусіць") ;
|
||||||
|
no_Utt = {s = "не"} ;
|
||||||
|
on_Prep = mkPrep "на" locative ;
|
||||||
|
only_Predet = mkPredet "толькі" ;
|
||||||
|
or_Conj = mkConj "або" ;
|
||||||
|
otherwise_PConj = mkPConj "інакш" ;
|
||||||
|
part_Prep = mkPrep "з" genitive ;
|
||||||
|
please_Voc = mkVoc "калі ласка" ;
|
||||||
|
possess_Prep = mkPrep "у" genitive ;
|
||||||
|
quite_Adv = mkAdA "зусім" ;
|
||||||
|
so_AdA = mkAdA "так" ;
|
||||||
|
someSg_Det = {s = \\_,_ => "нейкі"; n = Sg} ;
|
||||||
|
somePl_Det = {s = \\_,_ => "некаторыя"; n = Pl} ;
|
||||||
|
somebody_NP = mkSimpleNP "нехта" Masc Sg P3 ;
|
||||||
|
something_NP = mkSimpleNP "нешта" Neuter Sg P3 ;
|
||||||
|
somewhere_Adv = mkAdv "недзе" ;
|
||||||
|
that_Quant = mkQuant "той" ;
|
||||||
|
that_Subj = mkSubj "што" ;
|
||||||
|
there_Adv = mkAdv "там" ;
|
||||||
|
there7to_Adv = mkAdv "туды" ;
|
||||||
|
there7from_Adv = mkAdv "адтуль" ;
|
||||||
|
therefore_PConj = mkPConj "таму" ;
|
||||||
|
this_Quant = mkQuant "гэты" ;
|
||||||
|
through_Prep = mkPrep "праз" accusative ;
|
||||||
|
to_Prep = mkPrep "да" genitive ;
|
||||||
|
too_AdA = mkAdA "занадта" ;
|
||||||
|
under_Prep = mkPrep "пад" instrumental ;
|
||||||
|
very_AdA = mkAdA "вельмі" ;
|
||||||
|
want_VV = mkVV (mkV009 "хацець") ;
|
||||||
|
whatPl_IP = mkSimpleNP "што" Neuter Pl P3 ;
|
||||||
|
whatSg_IP = mkSimpleNP "што" Neuter Sg P3 ;
|
||||||
|
when_IAdv = mkIAdv "калі" ;
|
||||||
|
when_Subj = mkSubj "калі" ;
|
||||||
|
where_IAdv = mkIAdv "дзе" ;
|
||||||
|
which_IQuant = mkIQuant "які" ;
|
||||||
|
whoPl_IP = mkSimpleNP "хто" Masc Pl P3 ;
|
||||||
|
whoSg_IP = mkSimpleNP "хто" Masc Sg P3 ;
|
||||||
|
why_IAdv = mkIAdv "чаму" ;
|
||||||
|
with_Prep = mkPrep "з" instrumental ;
|
||||||
|
without_Prep = mkPrep "без" genitive ;
|
||||||
|
yes_Utt = {s = "так"} ;
|
||||||
|
|
||||||
|
no_Quant = mkQuant "ніякі" ;
|
||||||
|
not_Predet = mkPredet "не" ;
|
||||||
|
if_then_Conj = mkConj "калі" ;
|
||||||
|
at_least_AdN = mkAdN "прынамсі" ;
|
||||||
|
at_most_AdN = mkAdN "найбольш" ;
|
||||||
|
nobody_NP = mkSimpleNP "ніхто" Masc Sg P3 ;
|
||||||
|
nothing_NP = mkSimpleNP "нішто" Neuter Sg P3 ;
|
||||||
|
except_Prep = mkPrep "акрамя" genitive ;
|
||||||
|
as_CAdv = {s = "так"; p = "як"} ;
|
||||||
|
have_V2 = mkV2 (mkV071 "мець") ;
|
||||||
|
language_title_Utt = {s = "беларуская"} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,138 @@
|
|||||||
|
concrete VerbBel of Verb = CatBel ** open ResBel, (R = ParamX), Prelude in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
UseV v = mkVPhrase v ;
|
||||||
|
|
||||||
|
ComplVV vv vp = {
|
||||||
|
s = \\t,p,a => finiteVerb vv t p a ++ vp.inf ;
|
||||||
|
inf = vv.infinitive ++ vp.inf ;
|
||||||
|
imp = \\p,n => neg p ++ vv.imperative ! n ++ vp.inf
|
||||||
|
} ;
|
||||||
|
ComplVS vs s = {
|
||||||
|
s = \\t,p,a => finiteVerb vs t p a ++ "што" ++ s.s ;
|
||||||
|
inf = vs.infinitive ++ "што" ++ s.s ;
|
||||||
|
imp = \\p,n => neg p ++ vs.imperative ! n ++ "што" ++ s.s
|
||||||
|
} ;
|
||||||
|
ComplVQ vq qs = {
|
||||||
|
s = \\t,p,a => finiteVerb vq t p a ++ qs.s ;
|
||||||
|
inf = vq.infinitive ++ qs.s ;
|
||||||
|
imp = \\p,n => neg p ++ vq.imperative ! n ++ qs.s
|
||||||
|
} ;
|
||||||
|
ComplVA va ap = {
|
||||||
|
s = \\t,p,a => finiteVerb va t p a ++ ap.s ! Nom ! genNum a.g a.n ;
|
||||||
|
inf = va.infinitive ++ ap.s ! Nom ! GSg Masc ;
|
||||||
|
imp = \\p,n => neg p ++ va.imperative ! n ++ ap.s ! Nom ! GPl
|
||||||
|
} ;
|
||||||
|
|
||||||
|
SlashV2a v = mkVSlash v v.c2 ;
|
||||||
|
Slash2V3 v np = {
|
||||||
|
s = \\t,p,a => finiteVerb v t p a ++ prepNP v.c2 np ;
|
||||||
|
inf = v.infinitive ++ prepNP v.c2 np ;
|
||||||
|
c = v.c3 ;
|
||||||
|
imp = \\p,n => neg p ++ v.imperative ! n ++ prepNP v.c2 np ;
|
||||||
|
post = []
|
||||||
|
} ;
|
||||||
|
Slash3V3 v np = {
|
||||||
|
s = \\t,p,a => finiteVerb v t p a ;
|
||||||
|
inf = v.infinitive ++ prepNP v.c3 np ;
|
||||||
|
c = v.c2 ;
|
||||||
|
imp = \\p,n => neg p ++ v.imperative ! n ;
|
||||||
|
post = prepNP v.c3 np
|
||||||
|
} ;
|
||||||
|
SlashV2V v vp = {
|
||||||
|
s = \\t,p,a => finiteVerb v t p a ;
|
||||||
|
inf = v.infinitive ++ vp.inf ;
|
||||||
|
c = v.c2 ;
|
||||||
|
imp = \\p,n => neg p ++ v.imperative ! n ;
|
||||||
|
post = vp.inf
|
||||||
|
} ;
|
||||||
|
SlashV2S v s = {
|
||||||
|
s = \\t,p,a => finiteVerb v t p a ;
|
||||||
|
inf = v.infinitive ++ "што" ++ s.s ;
|
||||||
|
c = v.c2 ;
|
||||||
|
imp = \\p,n => neg p ++ v.imperative ! n ;
|
||||||
|
post = "што" ++ s.s
|
||||||
|
} ;
|
||||||
|
SlashV2Q v qs = {
|
||||||
|
s = \\t,p,a => finiteVerb v t p a ;
|
||||||
|
inf = v.infinitive ++ qs.s ;
|
||||||
|
c = v.c2 ;
|
||||||
|
imp = \\p,n => neg p ++ v.imperative ! n ;
|
||||||
|
post = qs.s
|
||||||
|
} ;
|
||||||
|
SlashV2A v ap = {
|
||||||
|
s = \\t,p,a => finiteVerb v t p a ;
|
||||||
|
inf = v.infinitive ++ ap.s ! Nom ! GSg Masc ;
|
||||||
|
c = v.c2 ;
|
||||||
|
imp = \\p,n => neg p ++ v.imperative ! n ;
|
||||||
|
post = ap.s ! Nom ! GSg Masc
|
||||||
|
} ;
|
||||||
|
|
||||||
|
ComplSlash vp np = {
|
||||||
|
s = \\t,p,a => vp.s ! t ! p ! a ++ prepNP vp.c np ++ vp.post ;
|
||||||
|
inf = vp.inf ++ prepNP vp.c np ;
|
||||||
|
imp = \\p,n => vp.imp ! p ! n ++ prepNP vp.c np ++ vp.post
|
||||||
|
} ;
|
||||||
|
|
||||||
|
SlashVV vv vp = {
|
||||||
|
s = \\t,p,a => finiteVerb vv t p a ++ vp.s ! R.Pres ! R.Pos ! a ;
|
||||||
|
inf = vv.infinitive ++ vp.inf ;
|
||||||
|
c = vp.c ;
|
||||||
|
imp = \\p,n => neg p ++ vv.imperative ! n ++ vp.imp ! R.Pos ! n ;
|
||||||
|
post = vp.post
|
||||||
|
} ;
|
||||||
|
SlashV2VNP v np vp = {
|
||||||
|
s = \\t,p,a => finiteVerb v t p a ++ prepNP v.c2 np ++ vp.s ! R.Pres ! R.Pos ! a ;
|
||||||
|
inf = v.infinitive ++ prepNP v.c2 np ++ vp.inf ;
|
||||||
|
c = vp.c ;
|
||||||
|
imp = \\p,n => neg p ++ v.imperative ! n ++ prepNP v.c2 np ++ vp.imp ! R.Pos ! n ;
|
||||||
|
post = vp.post
|
||||||
|
} ;
|
||||||
|
|
||||||
|
ReflVP vp = {
|
||||||
|
s = \\t,p,a => vp.s ! t ! p ! a ++ "сябе" ++ vp.post ;
|
||||||
|
inf = vp.inf ++ "сябе" ;
|
||||||
|
imp = \\p,n => vp.imp ! p ! n ++ "сябе" ++ vp.post
|
||||||
|
} ;
|
||||||
|
UseComp comp = {
|
||||||
|
s = \\t,p,a => copula t p a ++ comp.s ! a ;
|
||||||
|
inf = "быць" ++ comp.s ! defaultAgr ;
|
||||||
|
imp = \\p,_ => neg p ++ "будзь" ++ comp.s ! defaultAgr
|
||||||
|
} ;
|
||||||
|
|
||||||
|
PassV2 v = {
|
||||||
|
s = \\t,p,a => copula t p a ++ v.participle ! a.g ! a.n ;
|
||||||
|
inf = "быць" ++ v.participle ! Masc ! Sg ;
|
||||||
|
imp = \\p,_ => neg p ++ "будзь" ++ v.participle ! Masc ! Sg
|
||||||
|
} ;
|
||||||
|
|
||||||
|
AdvVP vp adv = addAdvVP vp adv.s ;
|
||||||
|
ExtAdvVP vp adv = addAdvVP vp adv.s ;
|
||||||
|
AdVVP adv vp = addAdVVP adv.s vp ;
|
||||||
|
AdvVPSlash vp adv = addAdvSlash vp adv.s ;
|
||||||
|
AdVVPSlash adv vp = {
|
||||||
|
s = \\t,p,a => adv.s ++ vp.s ! t ! p ! a ;
|
||||||
|
inf = adv.s ++ vp.inf ;
|
||||||
|
c = vp.c ;
|
||||||
|
imp = \\p,n => adv.s ++ vp.imp ! p ! n ;
|
||||||
|
post = vp.post
|
||||||
|
} ;
|
||||||
|
VPSlashPrep vp prep = {
|
||||||
|
s = \\t,p,a => vp.s ! t ! p ! a ++ prep.s ;
|
||||||
|
inf = vp.inf ++ prep.s ;
|
||||||
|
c = prep ;
|
||||||
|
imp = \\p,n => vp.imp ! p ! n ++ prep.s ;
|
||||||
|
post = []
|
||||||
|
} ;
|
||||||
|
|
||||||
|
CompAP ap = {s = \\a => ap.s ! Nom ! genNum a.g a.n} ;
|
||||||
|
CompNP np = {s = \\_ => np.s ! Nom} ;
|
||||||
|
CompAdv adv = {s = \\_ => adv.s} ;
|
||||||
|
CompCN cn = {s = \\a => cn.s ! Nom ! a.n} ;
|
||||||
|
UseCopula = {
|
||||||
|
s = \\t,p,a => copula t p a ;
|
||||||
|
inf = "быць" ;
|
||||||
|
imp = \\p,_ => neg p ++ "будзь"
|
||||||
|
} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
--# -path=.:../abstract:../common
|
|
||||||
concrete DocumentationBul of Documentation = CatBul ** open
|
concrete DocumentationBul of Documentation = CatBul ** open
|
||||||
ResBul, Prelude,
|
ResBul, Prelude, ParamX, HTML in {
|
||||||
HTML in {
|
|
||||||
flags coding=utf8 ;
|
flags coding=utf8 ;
|
||||||
|
|
||||||
lincat
|
lincat
|
||||||
@@ -182,6 +180,116 @@ lin
|
|||||||
s3= ""
|
s3= ""
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
{-
|
||||||
|
-} --# notpresent
|
||||||
|
InflectionCl = \cl -> {
|
||||||
|
t = "изр" ;
|
||||||
|
s1 = heading1 ("Изречение") ;
|
||||||
|
s2 =
|
||||||
|
heading2 "Изявително Наклонение" ++
|
||||||
|
frameTable (
|
||||||
|
tr (intagAttr "th" "colspan=\"3\"" "Акционни времена" ++
|
||||||
|
intagAttr "th" "colspan=\"3\"" "Резултативни времена") ++
|
||||||
|
tr (th "" ++ th "съобщително" ++ th "въпросително" ++
|
||||||
|
th "" ++ th "съобщително" ++ th "въпросително") ++
|
||||||
|
tr (intagAttr "th" "rowspan=\"2\"" "сегашно" ++
|
||||||
|
td (cl.s ! VPresent ! Simul ! Pos ! Main) ++
|
||||||
|
td (cl.s ! VPresent ! Simul ! Pos ! Quest) ++
|
||||||
|
intagAttr "th" "rowspan=\"2\"" "минало неопределено" ++
|
||||||
|
td (cl.s ! VPresent ! Anter ! Pos ! Main) ++
|
||||||
|
td (cl.s ! VPresent ! Anter ! Pos ! Quest)) ++
|
||||||
|
tr (td (cl.s ! VPresent ! Simul ! Neg ! Main) ++
|
||||||
|
td (cl.s ! VPresent ! Simul ! Neg ! Quest) ++
|
||||||
|
td (cl.s ! VPresent ! Anter ! Neg ! Main) ++
|
||||||
|
td (cl.s ! VPresent ! Anter ! Neg ! Quest)) ++
|
||||||
|
tr (intagAttr "th" "rowspan=\"2\"" "минало несвършено" ++
|
||||||
|
td (cl.s ! (VPastImperfect Indicative) ! Simul ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VPastImperfect Indicative) ! Simul ! Pos ! Quest) ++
|
||||||
|
intagAttr "th" "rowspan=\"2\"" "минало предварително" ++
|
||||||
|
td (cl.s ! (VPastImperfect Indicative) ! Anter ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VPastImperfect Indicative) ! Anter ! Pos ! Quest)) ++
|
||||||
|
tr (td (cl.s ! (VPastImperfect Indicative) ! Simul ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VPastImperfect Indicative) ! Simul ! Neg ! Quest) ++
|
||||||
|
td (cl.s ! (VPastImperfect Indicative) ! Anter ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VPastImperfect Indicative) ! Anter ! Neg ! Quest)) ++
|
||||||
|
tr (intagAttr "th" "rowspan=\"2\"" "минало свършено" ++
|
||||||
|
td (cl.s ! (VPastSimple Indicative) ! Simul ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VPastSimple Indicative) ! Simul ! Pos ! Quest) ++
|
||||||
|
intagAttr "th" "rowspan=\"2\" colspan=\"3\"" "") ++
|
||||||
|
tr (td (cl.s ! (VPastSimple Indicative) ! Simul ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VPastSimple Indicative) ! Simul ! Neg ! Quest)) ++
|
||||||
|
tr (intagAttr "th" "rowspan=\"2\"" "бъдеще" ++
|
||||||
|
td (cl.s ! (VFut Indicative) ! Simul ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VFut Indicative) ! Simul ! Pos ! Quest) ++
|
||||||
|
intagAttr "th" "rowspan=\"2\"" "бъдеще предварително" ++
|
||||||
|
td (cl.s ! (VFut Indicative) ! Anter ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VFut Indicative) ! Anter ! Pos ! Quest)) ++
|
||||||
|
tr (td (cl.s ! (VFut Indicative) ! Simul ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VFut Indicative) ! Simul ! Neg ! Quest) ++
|
||||||
|
td (cl.s ! (VFut Indicative) ! Anter ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VFut Indicative) ! Anter ! Neg ! Quest)) ++
|
||||||
|
tr (intagAttr "th" "rowspan=\"2\"" "бъдеще в миналото" ++
|
||||||
|
td (cl.s ! (VPastFut) ! Simul ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VPastFut) ! Simul ! Pos ! Quest) ++
|
||||||
|
intagAttr "th" "rowspan=\"2\"" "бъдеще предв. в миналото" ++
|
||||||
|
td (cl.s ! VPastFut ! Anter ! Pos ! Main) ++
|
||||||
|
td (cl.s ! VPastFut ! Anter ! Pos ! Quest)) ++
|
||||||
|
tr (td (cl.s ! VPastFut ! Simul ! Neg ! Main) ++
|
||||||
|
td (cl.s ! VPastFut ! Simul ! Neg ! Quest) ++
|
||||||
|
td (cl.s ! VPastFut ! Anter ! Neg ! Main) ++
|
||||||
|
td (cl.s ! VPastFut ! Anter ! Neg ! Quest))) ++
|
||||||
|
heading3 "Условно Наклонение" ++
|
||||||
|
frameTable (
|
||||||
|
tr (th "съобщително" ++ th "въпросително") ++
|
||||||
|
tr (td (cl.s ! (VCond Indicative) ! Simul ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VCond Indicative) ! Simul ! Pos ! Quest)) ++
|
||||||
|
tr (td (cl.s ! (VCond Indicative) ! Simul ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VCond Indicative) ! Simul ! Neg ! Quest))) ++
|
||||||
|
heading2 "Преизказни Форми" ++
|
||||||
|
frameTable (
|
||||||
|
tr (intagAttr "th" "colspan=\"3\"" "Акционни времена" ++
|
||||||
|
intagAttr "th" "colspan=\"3\"" "Резултативни времена") ++
|
||||||
|
tr (th "" ++ th "съобщително" ++ th "въпросително" ++
|
||||||
|
th "" ++ th "съобщително" ++ th "въпросително") ++
|
||||||
|
tr (intagAttr "th" "rowspan=\"2\"" "сегашно / минало несвършено" ++
|
||||||
|
td (cl.s ! (VPastImperfect Renarrative) ! Simul ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VPastImperfect Renarrative) ! Simul ! Pos ! Quest) ++
|
||||||
|
intagAttr "th" "rowspan=\"2\"" "минало неопределено/предварително" ++
|
||||||
|
td (cl.s ! (VPastImperfect Renarrative) ! Anter ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VPastImperfect Renarrative) ! Anter ! Pos ! Quest)) ++
|
||||||
|
tr (td (cl.s ! (VPastImperfect Renarrative) ! Simul ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VPastImperfect Renarrative) ! Simul ! Neg ! Quest) ++
|
||||||
|
td (cl.s ! (VPastImperfect Renarrative) ! Anter ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VPastImperfect Renarrative) ! Anter ! Neg ! Quest)) ++
|
||||||
|
tr (intagAttr "th" "rowspan=\"2\"" "минало свършено" ++
|
||||||
|
td (cl.s ! (VPastSimple Renarrative) ! Simul ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VPastSimple Renarrative) ! Simul ! Pos ! Quest) ++
|
||||||
|
intagAttr "th" "rowspan=\"2\" colspan=\"3\"" "") ++
|
||||||
|
tr (td (cl.s ! (VPastSimple Renarrative) ! Simul ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VPastSimple Renarrative) ! Simul ! Neg ! Quest)) ++
|
||||||
|
tr (intagAttr "th" "rowspan=\"2\"" "бъдеще / бъдеще в миналото" ++
|
||||||
|
td (cl.s ! (VFut Renarrative) ! Simul ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VFut Renarrative) ! Simul ! Pos ! Quest) ++
|
||||||
|
intagAttr "th" "rowspan=\"2\"" "бъдеще предв. / бъдеще предв. в миналото" ++
|
||||||
|
td (cl.s ! (VFut Renarrative) ! Anter ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VFut Renarrative) ! Anter ! Pos ! Quest)) ++
|
||||||
|
tr (td (cl.s ! (VFut Renarrative) ! Simul ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VFut Renarrative) ! Simul ! Neg ! Quest) ++
|
||||||
|
td (cl.s ! (VFut Renarrative) ! Anter ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VFut Renarrative) ! Anter ! Neg ! Quest))) ++
|
||||||
|
heading3 "Условно Наклонение" ++
|
||||||
|
frameTable (
|
||||||
|
tr (th "съобщително" ++ th "въпросително") ++
|
||||||
|
tr (td (cl.s ! (VCond Renarrative) ! Simul ! Pos ! Main) ++
|
||||||
|
td (cl.s ! (VCond Renarrative) ! Simul ! Pos ! Quest)) ++
|
||||||
|
tr (td (cl.s ! (VCond Renarrative) ! Simul ! Neg ! Main) ++
|
||||||
|
td (cl.s ! (VCond Renarrative) ! Simul ! Neg ! Quest))) ;
|
||||||
|
s3 = ""
|
||||||
|
} ;
|
||||||
|
|
||||||
|
{- --# notpresent
|
||||||
|
-}
|
||||||
|
|
||||||
InflectionV v = {
|
InflectionV v = {
|
||||||
t = "гл" ;
|
t = "гл" ;
|
||||||
s1= heading1 ("Глагол") ++
|
s1= heading1 ("Глагол") ++
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ lin
|
|||||||
|
|
||||||
AdAdV a adv = {s = a.s ++ adv.s; p = adv.p} ;
|
AdAdV a adv = {s = a.s ++ adv.s; p = adv.p} ;
|
||||||
|
|
||||||
|
UttAdV adv = {s = adv.s} ;
|
||||||
|
|
||||||
EmptyRelSlash slash = {
|
EmptyRelSlash slash = {
|
||||||
s = \\t,a,p,agr => linPrep slash.c2 ++ whichRP ! agr.gn ++ slash.s ! agr ! t ! a ! p ! Main
|
s = \\t,a,p,agr => linPrep slash.c2 ++ whichRP ! agr.gn ++ slash.s ! agr ! t ! a ! p ! Main
|
||||||
} ;
|
} ;
|
||||||
@@ -150,7 +152,7 @@ lin
|
|||||||
|
|
||||||
MkVPS t p vp = {
|
MkVPS t p vp = {
|
||||||
s = \\a =>
|
s = \\a =>
|
||||||
let verb = vpTenses vp ! t.t ! t.a ! p.p ! a ! False ! Perf ;
|
let verb = vpTenses vp ! t.t ! t.a ! p.p ! a ! Main ! Perf ;
|
||||||
compl = vp.compl ! a
|
compl = vp.compl ! a
|
||||||
in t.s ++ p.s ++ verb ++ compl
|
in t.s ++ p.s ++ verb ++ compl
|
||||||
} ;
|
} ;
|
||||||
@@ -316,7 +318,6 @@ lin UseComp_estar = UseComp ;
|
|||||||
|
|
||||||
lin ProDrop pro = pro ;
|
lin ProDrop pro = pro ;
|
||||||
|
|
||||||
lin TPastSimple = {s = []} ** {t = VPastSimple} ; --# notpresent
|
lin TPastSimple = {s = []} ** {t = VPastSimple Indicative} ; --# notpresent
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ concrete ExtraBul of ExtraBulAbs = CatBul **
|
|||||||
|
|
||||||
MkVPS t p vp = {
|
MkVPS t p vp = {
|
||||||
s = \\a =>
|
s = \\a =>
|
||||||
let verb = vpTenses vp ! t.t ! t.a ! p.p ! a ! False ! Perf ;
|
let verb = vpTenses vp ! t.t ! t.a ! p.p ! a ! Main ! Perf ;
|
||||||
compl = vp.compl ! a
|
compl = vp.compl ! a
|
||||||
in t.s ++ p.s ++ verb ++ compl
|
in t.s ++ p.s ++ verb ++ compl
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
@@ -27,33 +27,12 @@ concrete IdiomBul of Idiom = CatBul ** open Prelude, ParadigmsBul, ResBul in {
|
|||||||
|
|
||||||
agr=agrP3 (GSg Neut);
|
agr=agrP3 (GSg Neut);
|
||||||
|
|
||||||
present = verb ! (VPres (numGenNum agr.gn) agr.p) ;
|
tenses = vpTenses (predV (singleV verb)) ! t ! a ! Pos ! agr
|
||||||
aorist = verb ! (VAorist (numGenNum agr.gn) agr.p) ;
|
|
||||||
imperfect = verb ! (VImperfect (numGenNum agr.gn) agr.p) ;
|
|
||||||
perfect = verb ! (VPerfect (aform agr.gn Indef (RObj Acc))) ;
|
|
||||||
|
|
||||||
auxPres = auxBe ! VPres (numGenNum agr.gn) agr.p ;
|
|
||||||
auxAorist = auxBe ! VAorist (numGenNum agr.gn) agr.p ;
|
|
||||||
auxCondS = auxCond ! numGenNum agr.gn ! agr.p ;
|
|
||||||
|
|
||||||
v : {aux1:Str; aux2:Str; main:Str}
|
|
||||||
= case <t,a> of {
|
|
||||||
<VPresent,Simul> => {aux1=[]; aux2=[]; main=present}
|
|
||||||
; --# notpresent
|
|
||||||
<VPresent,Anter> => {aux1=[]; aux2=auxPres; main=perfect} ; --# notpresent
|
|
||||||
<VPastSimple,Simul> => {aux1=[]; aux2=[]; main=aorist} ; --# notpresent
|
|
||||||
<VPastSimple,Anter> => {aux1=[]; aux2=auxAorist; main=perfect} ; --# notpresent
|
|
||||||
<VPastImperfect,Simul> => {aux1=[]; aux2=[]; main=imperfect} ; --# notpresent
|
|
||||||
<VPastImperfect,Anter> => {aux1=[]; aux2=auxAorist; main=perfect} ; --# notpresent
|
|
||||||
<VFut, Simul> => {aux1="ще"; aux2=[]; main=present} ; --# notpresent
|
|
||||||
<VFut, Anter> => {aux1="ще"++auxPres; aux2=[]; main=perfect} ; --# notpresent
|
|
||||||
<VCond,_> => {aux1=auxCondS; aux2=[]; main=perfect} --# notpresent
|
|
||||||
} ;
|
|
||||||
|
|
||||||
in case o of {
|
in case o of {
|
||||||
Main => v.aux1 ++ v.main ++ v.aux2 ++ np.s ! RObj Acc ++ adv.s ;
|
Main => tenses ! Inv ! Perf ++ np.s ! RObj Acc ++ adv.s ;
|
||||||
Inv => np.s ! RObj Acc ++ v.aux1 ++ v.main ++ v.aux2 ++ adv.s ;
|
Inv => np.s ! RObj Acc ++ tenses ! Main ! Perf ++ adv.s ;
|
||||||
Quest => v.aux1 ++ v.main ++ "ли" ++ v.aux2 ++ np.s ! RObj Acc ++ adv.s
|
Quest => tenses ! Quest ! Perf ++ np.s ! RObj Acc ++ adv.s
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ concrete NounBul of Noun = CatBul ** open ResBul, Prelude in {
|
|||||||
|
|
||||||
NumNumeral numeral = {s = \\gspec => numeral.s ! NCard gspec; nn = case numeral.n of {Sg => NNum Sg; Pl => NCountable}} ;
|
NumNumeral numeral = {s = \\gspec => numeral.s ! NCard gspec; nn = case numeral.n of {Sg => NNum Sg; Pl => NCountable}} ;
|
||||||
OrdNumeral numeral = {s = \\aform => numeral.s ! NOrd aform} ;
|
OrdNumeral numeral = {s = \\aform => numeral.s ! NOrd aform} ;
|
||||||
|
OrdNumeralSuperl numeral a = {s = \\aform => numeral.s ! NOrd aform ++ "най" ++ hyphen ++ a.s ! indefAForm aform} ;
|
||||||
|
|
||||||
AdNum adn num = {s = \\gspec => adn.s ++ num.s ! gspec; nn = num.nn} ;
|
AdNum adn num = {s = \\gspec => adn.s ++ num.s ! gspec; nn = num.nn} ;
|
||||||
|
|
||||||
|
|||||||
+102
-26
@@ -77,12 +77,17 @@ resource ResBul = ParamX - [Tense,Pres,Past,Fut,Cond] ** open Prelude, Predef in
|
|||||||
|
|
||||||
VVType = VVInf Aspect | VVGerund ;
|
VVType = VVInf Aspect | VVGerund ;
|
||||||
|
|
||||||
|
Mood =
|
||||||
|
Indicative
|
||||||
|
| Renarrative ;
|
||||||
|
|
||||||
Tense =
|
Tense =
|
||||||
VPresent
|
VPresent
|
||||||
| VPastSimple --# notpresent
|
| VPastSimple Mood --# notpresent
|
||||||
| VPastImperfect --# notpresent
|
| VPastImperfect Mood --# notpresent
|
||||||
| VFut --# notpresent
|
| VPastFut --# notpresent
|
||||||
| VCond --# notpresent
|
| VFut Mood --# notpresent
|
||||||
|
| VCond Mood --# notpresent
|
||||||
;
|
;
|
||||||
|
|
||||||
-- The order of sentence is needed already in $VP$.
|
-- The order of sentence is needed already in $VP$.
|
||||||
@@ -403,6 +408,19 @@ resource ResBul = ParamX - [Tense,Pres,Past,Fut,Cond] ** open Prelude, Predef in
|
|||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
auxWill : Number => Person => Str =
|
||||||
|
table {
|
||||||
|
Sg => table {
|
||||||
|
P1 => "щях" ;
|
||||||
|
_ => "щеше"
|
||||||
|
} ;
|
||||||
|
Pl => table {
|
||||||
|
P1 => "щяхме" ;
|
||||||
|
P2 => "щяхте" ;
|
||||||
|
P3 => "щяха"
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
|
||||||
verbBe : Verb = {s=table Aspect [auxBe; auxWould] ; vtype=VNormal} ;
|
verbBe : Verb = {s=table Aspect [auxBe; auxWould] ; vtype=VNormal} ;
|
||||||
|
|
||||||
reflClitics : Case => Str = table {Acc => "се"; Dat => "си"; WithPrep => with_Word ++ "себе си"; CPrep => "себе си"} ;
|
reflClitics : Case => Str = table {Acc => "се"; Dat => "си"; WithPrep => with_Word ++ "себе си"; CPrep => "себе си"} ;
|
||||||
@@ -519,18 +537,17 @@ resource ResBul = ParamX - [Tense,Pres,Past,Fut,Cond] ** open Prelude, Predef in
|
|||||||
_ => Pos
|
_ => Pos
|
||||||
} ;
|
} ;
|
||||||
agr = personAgr gn p1 ;
|
agr = personAgr gn p1 ;
|
||||||
verb : Bool => Str
|
verb : Order => Str
|
||||||
= \\q => vpTenses vp ! t ! a ! p ! agr ! q ! Perf ;
|
= \\o => vpTenses vp ! t ! a ! p ! agr ! o ! Perf ;
|
||||||
compl = vp.compl ! agr
|
compl = vp.compl ! agr
|
||||||
in case o of {
|
in case o of {
|
||||||
Main => subj ++ verb ! False ++ compl ;
|
Inv => verb ! Inv ++ compl ++ subj ;
|
||||||
Inv => verb ! False ++ compl ++ subj ;
|
o => subj ++ verb ! o ++ compl
|
||||||
Quest => subj ++ verb ! True ++ compl
|
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
vpTenses : VP -> Tense => Anteriority => Polarity => Agr => Bool => Aspect => Str =
|
vpTenses : VP -> Tense => Anteriority => Polarity => Agr => Order => Aspect => Str =
|
||||||
\verb -> \\t,a,p,agr,q0,asp =>
|
\verb -> \\t,a,p,agr,o,asp =>
|
||||||
let clitic = case verb.vtype of {
|
let clitic = case verb.vtype of {
|
||||||
VNormal => {s=verb.clitics; agr=agr} ;
|
VNormal => {s=verb.clitics; agr=agr} ;
|
||||||
VMedial c => {s=verb.clitics++reflClitics ! c; agr=agr} ;
|
VMedial c => {s=verb.clitics++reflClitics ! c; agr=agr} ;
|
||||||
@@ -543,11 +560,14 @@ resource ResBul = ParamX - [Tense,Pres,Past,Fut,Cond] ** open Prelude, Predef in
|
|||||||
aorist = verb.s ! asp ! (VAorist (numGenNum clitic.agr.gn) clitic.agr.p) ;
|
aorist = verb.s ! asp ! (VAorist (numGenNum clitic.agr.gn) clitic.agr.p) ;
|
||||||
imperfect = verb.s ! Imperf ! (VImperfect (numGenNum clitic.agr.gn) clitic.agr.p) ;
|
imperfect = verb.s ! Imperf ! (VImperfect (numGenNum clitic.agr.gn) clitic.agr.p) ;
|
||||||
perfect = verb.s ! asp ! (VPerfect (aform clitic.agr.gn Indef (RObj Acc))) ;
|
perfect = verb.s ! asp ! (VPerfect (aform clitic.agr.gn Indef (RObj Acc))) ;
|
||||||
|
pluperfect = verb.s ! asp ! (VPluPerfect (aform clitic.agr.gn Indef (RObj Acc))) ;
|
||||||
|
|
||||||
auxPres = auxBe ! VPres (numGenNum clitic.agr.gn) clitic.agr.p ;
|
auxPres = auxBe ! VPres (numGenNum clitic.agr.gn) clitic.agr.p ;
|
||||||
auxAorist = auxBe ! VAorist (numGenNum clitic.agr.gn) clitic.agr.p ;
|
auxAorist = auxBe ! VAorist (numGenNum clitic.agr.gn) clitic.agr.p ;
|
||||||
|
auxPerf = auxBe ! VPerfect (aform clitic.agr.gn Indef (RObj Acc)) ;
|
||||||
auxImperf = auxBe ! VImperfect (numGenNum clitic.agr.gn) clitic.agr.p ;
|
auxImperf = auxBe ! VImperfect (numGenNum clitic.agr.gn) clitic.agr.p ;
|
||||||
auxCondS = auxCond ! numGenNum clitic.agr.gn ! clitic.agr.p ;
|
auxCondS = auxCond ! numGenNum clitic.agr.gn ! clitic.agr.p ;
|
||||||
|
auxWillS = auxWill ! numGenNum clitic.agr.gn ! clitic.agr.p ;
|
||||||
|
|
||||||
apc : Str -> Str = \s ->
|
apc : Str -> Str = \s ->
|
||||||
case <numGenNum clitic.agr.gn, clitic.agr.p> of {
|
case <numGenNum clitic.agr.gn, clitic.agr.p> of {
|
||||||
@@ -555,22 +575,33 @@ resource ResBul = ParamX - [Tense,Pres,Past,Fut,Cond] ** open Prelude, Predef in
|
|||||||
_ => auxPres++s++clitic.s
|
_ => auxPres++s++clitic.s
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
li0 = case <verb.ad.isEmpty,q0> of {<False,True> => "ли"; _ => []} ;
|
li0 = case <verb.ad.isEmpty,o> of {
|
||||||
|
<False,Quest> => "ли" ;
|
||||||
|
_ => []
|
||||||
|
} ;
|
||||||
|
|
||||||
q = case verb.ad.isEmpty of {True => q0; False => False} ;
|
li = case <verb.ad.isEmpty,o> of {
|
||||||
li = case q of {True => "ли"; _ => []} ;
|
<True,Quest> => "ли";
|
||||||
|
_ => []
|
||||||
|
} ;
|
||||||
|
|
||||||
vf1 : Str -> {s1 : Str; s2 : Str} = \s ->
|
vf1 : Str -> {s1 : Str; s2 : Str} = \s ->
|
||||||
case p of {
|
case p of {
|
||||||
Pos => case q of {True => {s1=[]; s2="ли"++apc []};
|
Pos => case <verb.ad.isEmpty,o> of {
|
||||||
False => {s1=apc []; s2=[]}} ;
|
<True,Quest> => {s1=[]; s2="ли"++apc []};
|
||||||
|
<True,Inv> => {s1=[]; s2=apc []};
|
||||||
|
_ => {s1=apc []; s2=[]}
|
||||||
|
} ;
|
||||||
Neg => {s1="не"++apc li; s2=[]}
|
Neg => {s1="не"++apc li; s2=[]}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
vf2 : Str -> {s1 : Str; s2 : Str} = \s ->
|
vf2 : Str -> {s1 : Str; s2 : Str} = \s ->
|
||||||
case p of {
|
case p of {
|
||||||
Pos => case q of {True => {s1=[]; s2="ли"++s};
|
Pos => case <verb.ad.isEmpty,o> of {
|
||||||
False => {s1=s; s2=[]}} ;
|
<True,Quest> => {s1=[]; s2="ли"++s};
|
||||||
|
<True,Inv> => {s1=[]; s2=s};
|
||||||
|
_ => {s1=s; s2=[]}
|
||||||
|
} ;
|
||||||
Neg => case verb.vtype of
|
Neg => case verb.vtype of
|
||||||
{VNormal => {s1="не"++s; s2=li} ;
|
{VNormal => {s1="не"++s; s2=li} ;
|
||||||
_ => {s1="не"++s++li; s2=[]}}
|
_ => {s1="не"++s++li; s2=[]}}
|
||||||
@@ -588,18 +619,63 @@ resource ResBul = ParamX - [Tense,Pres,Past,Fut,Cond] ** open Prelude, Predef in
|
|||||||
Neg => {s1="не"++s++li++clitic.s; s2=[]}
|
Neg => {s1="не"++s++li++clitic.s; s2=[]}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
vf5 : Str -> {s1 : Str; s2 : Str} = \s ->
|
||||||
|
case p of {
|
||||||
|
Pos => {s1=auxWillS++li++"да"++s; s2=[]} ;
|
||||||
|
Neg => {s1="нямаше"++li++"да"++s; s2=[]}
|
||||||
|
} ;
|
||||||
|
|
||||||
|
vf6 : Str -> {s1 : Str; s2 : Str} = \s ->
|
||||||
|
case p of {
|
||||||
|
Pos => let aux : Str =
|
||||||
|
case numGenNum clitic.agr.gn of {
|
||||||
|
Sg => "щял" ;
|
||||||
|
Pl => "щели"
|
||||||
|
}
|
||||||
|
in case <verb.ad.isEmpty,o> of {
|
||||||
|
<True,Quest> => {s1=aux++li++auxPres++"да"++s; s2=[]};
|
||||||
|
<True,Inv> => {s1=aux++auxPres++"да"++s; s2=[]};
|
||||||
|
_ => {s1=auxPres++aux++li++"да"++s; s2=[]}
|
||||||
|
} ;
|
||||||
|
Neg => {s1="нямало"++li++"да"++s; s2=[]}
|
||||||
|
} ;
|
||||||
|
|
||||||
|
vf7 : {s1 : Str; s2 : Str} =
|
||||||
|
case <a,clitic.agr.p> of {
|
||||||
|
<Simul,P1> => case <p,o> of {
|
||||||
|
<Pos,Inv> => {s1=[]; s2=auxPres++li++clitic.s} ;
|
||||||
|
<Pos,_> => {s1=auxPres++li++clitic.s; s2=[]} ;
|
||||||
|
<Neg,_> => {s1="не"++auxPres++li++clitic.s; s2=[]}
|
||||||
|
} ;
|
||||||
|
<Simul,P2> => vf4 auxPres ;
|
||||||
|
<Simul,P3> => vf2 clitic.s ;
|
||||||
|
<Anter,P3> => vf4 auxPerf ;
|
||||||
|
<Anter,_ > => case <p,o> of {
|
||||||
|
<Pos,Inv> => {s1=[]; s2=auxPres++li++clitic.s++auxPerf} ;
|
||||||
|
<Pos,_> => {s1=auxPres++li++clitic.s++auxPerf; s2=[]} ;
|
||||||
|
<Neg,_> => {s1="не"++auxPres++li++clitic.s++auxPerf; s2=[]}
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
|
||||||
verbs : {aux:{s1:Str; s2:Str}; main:Str} =
|
verbs : {aux:{s1:Str; s2:Str}; main:Str} =
|
||||||
case <t,a> of {
|
case <t,a> of {
|
||||||
<VPresent,Simul> => {aux=vf2 clitic.s; main=presentImperf}
|
<VPresent,Simul> => {aux=vf2 clitic.s; main=presentImperf}
|
||||||
; --# notpresent
|
; --# notpresent
|
||||||
<VPresent,Anter> => {aux=vf1 clitic.s; main=perfect} ; --# notpresent
|
<VPresent,Anter> => {aux=vf1 clitic.s; main=perfect} ; --# notpresent
|
||||||
<VPastSimple,Simul> => {aux=vf2 clitic.s; main=aorist} ; --# notpresent
|
<VPastSimple Indicative,Simul> => {aux=vf2 clitic.s; main=aorist} ; --# notpresent
|
||||||
<VPastSimple,Anter> => {aux=vf4 auxAorist; main=perfect} ; --# notpresent
|
<VPastSimple Indicative,Anter> => {aux=vf4 auxAorist; main=perfect} ; --# notpresent
|
||||||
<VPastImperfect,Simul> => {aux=vf2 clitic.s; main=imperfect} ; --# notpresent
|
<VPastSimple Renarrative,_> => {aux=vf7; main=pluperfect} ; --# notpresent
|
||||||
<VPastImperfect,Anter> => {aux=vf4 auxImperf; main=perfect} ; --# notpresent
|
<VPastImperfect Indicative,Simul> => {aux=vf2 clitic.s; main=imperfect} ; --# notpresent
|
||||||
<VFut, Simul> => {aux=vf3 clitic.s; main=present} ; --# notpresent
|
<VPastImperfect Indicative,Anter> => {aux=vf4 auxImperf; main=perfect} ; --# notpresent
|
||||||
<VFut, Anter> => {aux=vf3 (apc []); main=perfect} ; --# notpresent
|
<VPastImperfect Renarrative,_> => {aux=vf7; main=perfect} ; --# notpresent
|
||||||
<VCond,_ > => {aux=vf4 auxCondS; main=perfect} --# notpresent
|
<VPastFut,Simul> => {aux=vf5 clitic.s; main=present} ; --# notpresent
|
||||||
|
<VPastFut,Anter> => {aux=vf5 (apc []); main=perfect} ; --# notpresent
|
||||||
|
<VFut Indicative, Simul> => {aux=vf3 clitic.s; main=present} ; --# notpresent
|
||||||
|
<VFut Indicative, Anter> => {aux=vf3 (apc []); main=perfect} ; --# notpresent
|
||||||
|
<VFut Renarrative, Simul> => {aux=vf6 clitic.s; main=present} ; --# notpresent
|
||||||
|
<VFut Renarrative, Anter> => {aux=vf6 (apc []); main=perfect} ; --# notpresent
|
||||||
|
<VCond Indicative,_ > => {aux=vf4 auxCondS; main=perfect} ; --# notpresent
|
||||||
|
<VCond Renarrative,_ > => {aux=vf4 (auxCondS++auxPerf); main=perfect} --# notpresent
|
||||||
}
|
}
|
||||||
|
|
||||||
in verb.ad.s ++ li0 ++ verbs.aux.s1 ++ verbs.main ++ verbs.aux.s2 ;
|
in verb.ad.s ++ li0 ++ verbs.aux.s1 ++ verbs.main ++ verbs.aux.s2 ;
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ concrete TenseBul of Tense = CatBul [Tense,Temp], TenseX - [Temp,Tense,TTAnt,TPr
|
|||||||
lin
|
lin
|
||||||
TTAnt t a = {s = a.s ++ t.s ; a = a.a ; t = t.t} ;
|
TTAnt t a = {s = a.s ++ t.s ; a = a.a ; t = t.t} ;
|
||||||
TPres = {s = []} ** {t = VPresent} ;
|
TPres = {s = []} ** {t = VPresent} ;
|
||||||
TPast = {s = []} ** {t = VPastImperfect} ; --# notpresent
|
TPast = {s = []} ** {t = VPastImperfect Indicative} ; --# notpresent
|
||||||
TFut = {s = []} ** {t = VFut} ; --# notpresent
|
TFut = {s = []} ** {t = VFut Indicative} ; --# notpresent
|
||||||
TCond = {s = []} ** {t = VCond} ; --# notpresent
|
TCond = {s = []} ** {t = VCond Indicative} ; --# notpresent
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ lin
|
|||||||
InOrderToVP = variants {} ; -- VP -> Adv ; -- (in order) to publish the document
|
InOrderToVP = variants {} ; -- VP -> Adv ; -- (in order) to publish the document
|
||||||
ApposNP = variants {} ; -- NP -> NP -> NP ; -- Mr Macron, the president of France,
|
ApposNP = variants {} ; -- NP -> NP -> NP ; -- Mr Macron, the president of France,
|
||||||
AdAdV = variants {} ; -- AdA -> AdV -> AdV ; -- almost always
|
AdAdV = variants {} ; -- AdA -> AdV -> AdV ; -- almost always
|
||||||
UttAdV = variants {} ; -- AdV -> Utt ; -- always(!)
|
UttAdV adv = {s = adv.s} ; -- AdV -> Utt ; -- always(!)
|
||||||
PositAdVAdj = variants {} ; -- A -> AdV ; -- (that she) positively (sleeps)
|
PositAdVAdj = variants {} ; -- A -> AdV ; -- (that she) positively (sleeps)
|
||||||
CompS = variants {} ; -- S -> Comp ; -- (the fact is) that she sleeps
|
CompS = variants {} ; -- S -> Comp ; -- (the fact is) that she sleeps
|
||||||
CompQS = variants {} ; -- QS -> Comp ; -- (the question is) who sleeps
|
CompQS = variants {} ; -- QS -> Comp ; -- (the question is) who sleeps
|
||||||
@@ -139,9 +139,6 @@ lin
|
|||||||
|
|
||||||
SubjunctRelCN cn rs = RelCN cn rs ; -- no difference from indicative
|
SubjunctRelCN cn rs = RelCN cn rs ; -- no difference from indicative
|
||||||
|
|
||||||
lincat
|
|
||||||
X = {s : Str} ;
|
|
||||||
|
|
||||||
lin
|
lin
|
||||||
UseComp_estar = UseComp ;
|
UseComp_estar = UseComp ;
|
||||||
UseComp_ser = UseComp ;
|
UseComp_ser = UseComp ;
|
||||||
|
|||||||
@@ -6,4 +6,8 @@ lin
|
|||||||
s = prep.s ++ np.prep ! prep.c
|
s = prep.s ++ np.prep ! prep.c
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
SubjS subj s = {
|
||||||
|
s = subj.s ++ s.s
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-2
@@ -21,10 +21,11 @@ concrete CatCze of Cat =
|
|||||||
RP = AdjForms ;
|
RP = AdjForms ;
|
||||||
|
|
||||||
VP = {verb : VerbForms ; clit,compl : Agr => Str} ; ---- more fields probably needed
|
VP = {verb : VerbForms ; clit,compl : Agr => Str} ; ---- more fields probably needed
|
||||||
VPSlash = {verb : VerbForms ; clit,compl : Agr => Str ; c : ComplementCase} ; ----
|
VPSlash = {verb : VerbForms ; clit,compl : Agr => Str ; c : ComplementCase ; ind : Agr => Str} ; -- ind : incorporated indirect object, rendered after the object slot
|
||||||
V = ResCze.VerbForms ;
|
V = ResCze.VerbForms ;
|
||||||
V2 = ResCze.VerbForms ** {c : ComplementCase} ;
|
V2 = ResCze.VerbForms ** {c : ComplementCase} ;
|
||||||
VS,VQ = ResCze.VerbForms ;
|
V3 = ResCze.VerbForms ** {c,c2 : ComplementCase} ; -- c : direct object, c2 : indirect object
|
||||||
|
VS,VQ,VV = ResCze.VerbForms ;
|
||||||
|
|
||||||
A = ResCze.AdjForms ;
|
A = ResCze.AdjForms ;
|
||||||
AP = ResCze.Adjective ** {isPost : Bool} ; -- {s : Gender => Number => Case => Str}
|
AP = ResCze.Adjective ** {isPost : Bool} ; -- {s : Gender => Number => Case => Str}
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ concrete ExtendCze of Extend = CatCze **
|
|||||||
,SlashBareV2S
|
,SlashBareV2S
|
||||||
,PredIAdvVP
|
,PredIAdvVP
|
||||||
,PredAPVP
|
,PredAPVP
|
||||||
,ExistsNP
|
|
||||||
,ExistS
|
,ExistS
|
||||||
,ExistPluralCN
|
,ExistPluralCN
|
||||||
,ExistNPQS
|
,ExistNPQS
|
||||||
|
|||||||
@@ -1,5 +1,32 @@
|
|||||||
concrete IdiomCze of Idiom = CatCze ** open Prelude, ResCze in {
|
concrete IdiomCze of Idiom = CatCze ** open Prelude, ResCze in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
ImpP3 np vp = {
|
||||||
|
s = "nechť" ++ np.s ! Nom ++ vp.clit ! np.a ++
|
||||||
|
verbAgr vp.verb np.a True ++ vp.compl ! np.a
|
||||||
|
} ;
|
||||||
|
|
||||||
|
ImpersCl vp = let agr = Ag Neutr Sg P3 in {
|
||||||
|
subj = [] ;
|
||||||
|
clit = vp.clit ! agr ;
|
||||||
|
compl = vp.compl ! agr ;
|
||||||
|
verb = vp.verb ;
|
||||||
|
a = agr
|
||||||
|
} ;
|
||||||
|
|
||||||
|
GenericCl vp = let agr = Ag (Masc Anim) Pl P3 in {
|
||||||
|
subj = [] ;
|
||||||
|
clit = vp.clit ! agr ;
|
||||||
|
compl = vp.compl ! agr ;
|
||||||
|
verb = vp.verb ;
|
||||||
|
a = agr
|
||||||
|
} ;
|
||||||
|
|
||||||
|
ExistNP np = {
|
||||||
|
subj, clit = [] ;
|
||||||
|
compl = np.s ! Nom ;
|
||||||
|
verb = iii_kupovatVerbForms "existovat" ;
|
||||||
|
a = np.a
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ concrete LangCze of Lang =
|
|||||||
LexiconCze
|
LexiconCze
|
||||||
-- ,ConstructionCze
|
-- ,ConstructionCze
|
||||||
-- ,DocumentationCze --# notpresent
|
-- ,DocumentationCze --# notpresent
|
||||||
|
,MarkupCze - [stringMark]
|
||||||
** {
|
** {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
--# -path=.:../abstract:../common
|
||||||
|
|
||||||
|
concrete MarkupCze of Markup = CatCze, MarkHTMLX ** open ResCze in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
MarkupCN m cn = cn ** {s = \\n,c => appMark m (cn.s ! n ! c)} ;
|
||||||
|
|
||||||
|
-- s, clit and prep are alternative surface forms, so each is marked;
|
||||||
|
-- but clit ! Nom is the pro-drop subject, empty for every pronoun,
|
||||||
|
-- and marking it up would leave the tags around nothing
|
||||||
|
MarkupNP m np = np ** {
|
||||||
|
s = \\c => appMark m (np.s ! c) ;
|
||||||
|
clit = \\c => case c of {
|
||||||
|
Nom => np.clit ! Nom ;
|
||||||
|
_ => appMark m (np.clit ! c)
|
||||||
|
} ;
|
||||||
|
prep = \\c => appMark m (np.prep ! c)
|
||||||
|
} ;
|
||||||
|
|
||||||
|
MarkupAP m ap = ap ** {s = \\g,n,c => appMark m (ap.s ! g ! n ! c)} ;
|
||||||
|
MarkupAdv m adv = {s = appMark m adv.s} ;
|
||||||
|
MarkupS m s = {s = appMark m s.s} ;
|
||||||
|
MarkupUtt m utt = {s = appMark m utt.s} ;
|
||||||
|
MarkupPhr m phr = {s = appMark m phr.s} ;
|
||||||
|
MarkupText m txt = {s = appMark m txt.s} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -9,12 +9,10 @@ oper AdjOrd : Ord -> AP = notYet "AdjOrd" ;
|
|||||||
oper AdnCAdv : CAdv -> AdN = notYet "AdnCAdv" ;
|
oper AdnCAdv : CAdv -> AdN = notYet "AdnCAdv" ;
|
||||||
oper AdvIAdv : IAdv -> Adv -> IAdv = notYet "AdvIAdv" ;
|
oper AdvIAdv : IAdv -> Adv -> IAdv = notYet "AdvIAdv" ;
|
||||||
oper AdvIP : IP -> Adv -> IP = notYet "AdvIP" ;
|
oper AdvIP : IP -> Adv -> IP = notYet "AdvIP" ;
|
||||||
oper AdvS : Adv -> S -> S = notYet "AdvS" ;
|
|
||||||
oper AdvSlash : ClSlash -> Adv -> ClSlash = notYet "AdvSlash" ;
|
oper AdvSlash : ClSlash -> Adv -> ClSlash = notYet "AdvSlash" ;
|
||||||
oper CAdvAP : CAdv -> AP -> NP -> AP = notYet "CAdvAP" ;
|
oper CAdvAP : CAdv -> AP -> NP -> AP = notYet "CAdvAP" ;
|
||||||
oper CleftAdv : Adv -> S -> Cl = notYet "CleftAdv" ;
|
oper CleftAdv : Adv -> S -> Cl = notYet "CleftAdv" ;
|
||||||
oper CleftNP : NP -> RS -> Cl = notYet "CleftNP" ;
|
oper CleftNP : NP -> RS -> Cl = notYet "CleftNP" ;
|
||||||
oper CompCN : CN -> Comp = notYet "CompCN" ;
|
|
||||||
oper CompIAdv : IAdv -> IComp = notYet "CompIAdv" ;
|
oper CompIAdv : IAdv -> IComp = notYet "CompIAdv" ;
|
||||||
oper CompIP : IP -> IComp = notYet "CompIP" ;
|
oper CompIP : IP -> IComp = notYet "CompIP" ;
|
||||||
oper ComparA : A -> NP -> AP = notYet "ComparA" ;
|
oper ComparA : A -> NP -> AP = notYet "ComparA" ;
|
||||||
@@ -63,8 +61,6 @@ oper RelNP : NP -> RS -> NP = notYet "RelNP" ;
|
|||||||
oper RelSlash : RP -> ClSlash -> RCl = notYet "RelSlash" ;
|
oper RelSlash : RP -> ClSlash -> RCl = notYet "RelSlash" ;
|
||||||
oper SentAP : AP -> SC -> AP = notYet "SentAP" ;
|
oper SentAP : AP -> SC -> AP = notYet "SentAP" ;
|
||||||
oper SentCN : CN -> SC -> CN = notYet "SentCN" ;
|
oper SentCN : CN -> SC -> CN = notYet "SentCN" ;
|
||||||
oper Slash2V3 : V3 -> NP -> VPSlash = notYet "Slash2V3" ;
|
|
||||||
oper Slash3V3 : V3 -> NP -> VPSlash = notYet "Slash3V3" ;
|
|
||||||
oper SlashPrep : Cl -> Prep -> ClSlash = notYet "SlashPrep" ;
|
oper SlashPrep : Cl -> Prep -> ClSlash = notYet "SlashPrep" ;
|
||||||
oper SlashV2A : V2A -> AP -> VPSlash = notYet "SlashV2A" ;
|
oper SlashV2A : V2A -> AP -> VPSlash = notYet "SlashV2A" ;
|
||||||
oper SlashV2Q : V2Q -> QS -> VPSlash = notYet "SlashV2Q" ;
|
oper SlashV2Q : V2Q -> QS -> VPSlash = notYet "SlashV2Q" ;
|
||||||
|
|||||||
@@ -99,5 +99,12 @@ lin
|
|||||||
NumDecimal ds = ds ** {s = \\_,_ => ds.s} ;
|
NumDecimal ds = ds ** {s = \\_,_ => ds.s} ;
|
||||||
NumNumeral nu = nu ;
|
NumNumeral nu = nu ;
|
||||||
|
|
||||||
|
SentCN cn sc = cn ** {s = \\n,c => cn.s ! n ! c ++ sc.s} ;
|
||||||
|
|
||||||
|
PredetNP pred np = np ** {
|
||||||
|
s = \\c => pred.s ++ np.s ! c ;
|
||||||
|
clit = \\c => pred.s ++ np.clit ! c ;
|
||||||
|
prep = \\c => pred.s ++ np.prep ! c
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,9 +122,20 @@ oper
|
|||||||
= \vf,c -> vf ** {c = c} ;
|
= \vf,c -> vf ** {c = c} ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
mkV3 = overload {
|
||||||
|
mkV3 : VerbForms -> VerbForms ** {c,c2 : ComplementCase}
|
||||||
|
= \vf -> vf ** {c = {s = [] ; c = Acc ; hasPrep = False} ;
|
||||||
|
c2 = {s = [] ; c = Dat ; hasPrep = False}} ;
|
||||||
|
mkV3 : VerbForms -> ComplementCase -> ComplementCase -> VerbForms ** {c,c2 : ComplementCase}
|
||||||
|
= \vf,c,c2 -> vf ** {c = c ; c2 = c2} ;
|
||||||
|
} ;
|
||||||
|
|
||||||
------------------------
|
------------------------
|
||||||
-- Adverbs, prepositions, conjunctions, ...
|
-- Adverbs, prepositions, conjunctions, ...
|
||||||
|
|
||||||
|
mkAdA : Str -> AdA
|
||||||
|
= \s -> lin AdA {s = s} ;
|
||||||
|
|
||||||
mkAdv : Str -> Adv
|
mkAdv : Str -> Adv
|
||||||
= \s -> lin Adv {s = s} ;
|
= \s -> lin Adv {s = s} ;
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,11 @@ lin
|
|||||||
UttCN cn = {s = cn.s ! Sg ! Nom} ;
|
UttCN cn = {s = cn.s ! Sg ! Nom} ;
|
||||||
UttAP ap = {s = ap.s ! Masc Anim ! Sg ! Nom} ;
|
UttAP ap = {s = ap.s ! Masc Anim ! Sg ! Nom} ;
|
||||||
UttNP np = {s = np.s ! Nom} ;
|
UttNP np = {s = np.s ! Nom} ;
|
||||||
|
UttVP vp = let agr = Ag Neutr Sg P3 in {s = vp.clit ! agr ++ vp.verb.inf ++ vp.compl ! agr} ;
|
||||||
|
|
||||||
|
UttImpSg pol imp = {s = pol.s ++ imp.s} ;
|
||||||
|
UttImpPl pol imp = {s = pol.s ++ imp.s} ;
|
||||||
|
UttImpPol pol imp = {s = pol.s ++ imp.s} ;
|
||||||
|
|
||||||
PhrUtt pconj utt voc = {s = pconj.s ++ utt.s ++ voc.s} ;
|
PhrUtt pconj utt voc = {s = pconj.s ++ utt.s ++ voc.s} ;
|
||||||
|
|
||||||
|
|||||||
@@ -4,4 +4,6 @@ concrete QuestionCze of Question = CatCze **
|
|||||||
lin
|
lin
|
||||||
QuestCl cl = cl ; ----
|
QuestCl cl = cl ; ----
|
||||||
|
|
||||||
|
QuestIAdv iadv cl = cl ** {clit = iadv.s ++ cl.clit} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+137
-19
@@ -28,6 +28,11 @@ oper
|
|||||||
softConsonant : pattern Str = #("ť"|"ď"|"j"|"ň"|"ř"|"š"|"c"|"č"|"ž") ;
|
softConsonant : pattern Str = #("ť"|"ď"|"j"|"ň"|"ř"|"š"|"c"|"č"|"ž") ;
|
||||||
neutralConsonant : pattern Str = #("b"|"f"|"l"|"m"|"p"|"s"|"v") ;
|
neutralConsonant : pattern Str = #("b"|"f"|"l"|"m"|"p"|"s"|"v") ;
|
||||||
|
|
||||||
|
-- neutral consonants take the hard endings by default (hrad, pán), and so do
|
||||||
|
-- the foreign "z" and "x"; this is the class to test when choosing a paradigm
|
||||||
|
hardishConsonant : pattern Str =
|
||||||
|
#("d"|"t"|"g"|"h"|"k"|"n"|"r" | "b"|"f"|"l"|"m"|"p"|"s"|"v" | "z"|"x") ;
|
||||||
|
|
||||||
consonant : pattern Str =
|
consonant : pattern Str =
|
||||||
#(
|
#(
|
||||||
"d" | "t" | "g" | "h" | "k" | "n" | "r" |
|
"d" | "t" | "g" | "h" | "k" | "n" | "r" |
|
||||||
@@ -139,22 +144,33 @@ oper
|
|||||||
|
|
||||||
declensionNounForms : (nom,gen : Str) -> Gender -> NounForms
|
declensionNounForms : (nom,gen : Str) -> Gender -> NounForms
|
||||||
= \nom,gen,g ->
|
= \nom,gen,g ->
|
||||||
let decl : DeclensionType = case <g, nom, gen> of {
|
-- the oblique stem, for the paradigms that cannot derive it from the nominative
|
||||||
<Masc Anim, _ + #hardConsonant, _ + "a"> => declPAN ;
|
let stem : Str = Predef.tk 1 gen ;
|
||||||
<Masc Anim, _ + "a" , _ + "a"> => declPREDSEDA ;
|
decl : DeclensionType = case <g, nom, gen> of {
|
||||||
<Masc Inanim, _ + #hardConsonant, _ + "u"> => declHRAD ;
|
<Masc Anim, _ + "tel" , _ + "e"> => declMUZstem stem ;
|
||||||
<Fem, _ + "a" , _ + "y"> => declZENA ;
|
|
||||||
<Neutr, _ + "o" , _ + "a"> => declMESTO ;
|
|
||||||
<Masc Anim, _ + #softConsonant, _ + "e"> => declMUZ ;
|
|
||||||
<Masc Anim, _ + "tel" , _ + "e"> => declMUZ ;
|
|
||||||
<Masc Anim, _ + "ce" , _ + "e"> => declSOUDCE ;
|
<Masc Anim, _ + "ce" , _ + "e"> => declSOUDCE ;
|
||||||
<Masc Inanim, _ + #softConsonant, _ + "e"> => declSTROJ ;
|
<Masc Anim, _ + ("us"|"os") , _ + "a"> => declLATINUSA ;
|
||||||
|
<Masc Anim, _ + "a" , _ + "a"> => declPREDSEDA ;
|
||||||
|
<Masc Anim, _ + (#softConsonant|#hardishConsonant), _ + ("e"|"ě")> => declMUZstem stem ;
|
||||||
|
<Masc Anim, _ + #hardishConsonant, _ + "a"> => declPAN ;
|
||||||
|
<Masc Inanim, _ + ("us"|"os") , _ + "u"> => declLATINUS ;
|
||||||
|
<Masc Inanim, _ + "ý" , _ + "ého"> => declADJM ;
|
||||||
|
<Masc Inanim, _ + (#softConsonant|#hardishConsonant), _ + ("e"|"ě")> => declSTROJ ;
|
||||||
|
<Masc Inanim, _ + #hardishConsonant, _ + "u"> => declHRADstem stem ;
|
||||||
|
<Masc Inanim, _ + #hardishConsonant, _ + "a"> => declHRADAstem stem ;
|
||||||
|
<Fem, _ + "a" , _ + "y"> => declZENA ;
|
||||||
|
<Fem, _ + "á" , _ + "é"> => declADJF ;
|
||||||
<Fem, _ + ("e"|"ě") , _ + ("e"|"ě")> => declRUZE ;
|
<Fem, _ + ("e"|"ě") , _ + ("e"|"ě")> => declRUZE ;
|
||||||
<Fem, _ + #softConsonant, _ + "e"> => declPISEN ;
|
<Fem, _ + (#softConsonant|#hardishConsonant), _ + "i"> => declKOST ; --- also many other "st" 3.6.3
|
||||||
<Fem, _ + "ost" , _ + "i"> => declKOST ; --- also many other "st" 3.6.3
|
<Fem, _ + (#softConsonant|#hardishConsonant), _ + ("e"|"ě")> => declPISEN ;
|
||||||
|
<Neutr, _ + "um" , _ + "a"> => declLATINUM ;
|
||||||
|
<Neutr, _ + "ma" , _ + ("matu"|"mata")> => declGREEKMA ;
|
||||||
|
<Neutr, _ + "o" , _ + "a"> => declMESTO ;
|
||||||
<Neutr, _ + "e" , _+"ete"> => declKURE ;
|
<Neutr, _ + "e" , _+"ete"> => declKURE ;
|
||||||
<Neutr, _ + "e" , _ + "e"> => declMORE ;
|
|
||||||
<Neutr, _ + "í" , _ + "í"> => declSTAVENI ;
|
<Neutr, _ + "í" , _ + "í"> => declSTAVENI ;
|
||||||
|
<Neutr, _ + ("e"|"ě") , _ + ("e"|"ě")> => declMORE ;
|
||||||
|
<Masc Inanim, _ + ("é"|"i"|"y"|"e"), _ + ("é"|"i"|"y"|"e")> => declINVAR (Masc Inanim) ;
|
||||||
|
<Neutr, _ + ("é"|"i"|"y") , _ + ("é"|"i"|"y")> => declINVAR Neutr ;
|
||||||
_ => (\s -> declSTROJ ("" + s)) -- Predef.error ("cannot infer declension type for" ++ nom ++ gen)
|
_ => (\s -> declSTROJ ("" + s)) -- Predef.error ("cannot infer declension type for" ++ nom ++ gen)
|
||||||
}
|
}
|
||||||
in decl nom ;
|
in decl nom ;
|
||||||
@@ -165,12 +181,14 @@ oper
|
|||||||
= \s -> case s of {
|
= \s -> case s of {
|
||||||
_ + "ost" => declKOST s ;
|
_ + "ost" => declKOST s ;
|
||||||
_ + "tel" => declMUZ s ;
|
_ + "tel" => declMUZ s ;
|
||||||
_ + #hardConsonant => declHRAD s ;
|
_ + "us" => declLATINUS s ;
|
||||||
|
_ + "um" => declLATINUM s ;
|
||||||
|
_ + #hardishConsonant => declHRAD s ;
|
||||||
_ + #softConsonant => declSTROJ s ;
|
_ + #softConsonant => declSTROJ s ;
|
||||||
_ + "a" => declZENA s ;
|
_ + "a" => declZENA s ;
|
||||||
_ + "o" => declMESTO s ;
|
_ + "o" => declMESTO s ;
|
||||||
_ + "ce" => declSOUDCE s ;
|
_ + "ce" => declSOUDCE s ;
|
||||||
_ + "e" => declMORE s ;
|
_ + ("e"|"ě") => declMORE s ;
|
||||||
_ + "í" => declSTAVENI s ;
|
_ + "í" => declSTAVENI s ;
|
||||||
_ => declSTROJ ("" + s) -- Predef.error ("cannot guess declension type for" ++ s)
|
_ => declSTROJ ("" + s) -- Predef.error ("cannot guess declension type for" ++ s)
|
||||||
} ;
|
} ;
|
||||||
@@ -216,9 +234,9 @@ oper
|
|||||||
g = Masc Anim
|
g = Masc Anim
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
declHRAD : DeclensionType = \hrad -> --- 3.5.2: sloc u/ě/e extra arg, sport-u, hrad-ě ; sgen u/a
|
-- the oblique stem is a separate argument, because it cannot always be
|
||||||
let hrd = dropFleetingE hrad
|
-- derived from the nominative: uzel-uzlu but člen-členu
|
||||||
in
|
declHRADstem : Str -> DeclensionType = \hrd,hrad ->
|
||||||
{
|
{
|
||||||
snom,sacc = hrad ;
|
snom,sacc = hrad ;
|
||||||
sgen,sdat = hrd + "u" ; --- Berlín-a
|
sgen,sdat = hrd + "u" ; --- Berlín-a
|
||||||
@@ -233,6 +251,9 @@ oper
|
|||||||
g = Masc Inanim
|
g = Masc Inanim
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
declHRAD : DeclensionType = \hrad -> --- 3.5.2: sloc u/ě/e extra arg, sport-u, hrad-ě ; sgen u/a
|
||||||
|
declHRADstem (dropFleetingE hrad) hrad ;
|
||||||
|
|
||||||
declZENA : DeclensionType = \zena -> --- 3.6.1 sge y/i ; pgen sometimes shortening
|
declZENA : DeclensionType = \zena -> --- 3.6.1 sge y/i ; pgen sometimes shortening
|
||||||
let zen = init zena
|
let zen = init zena
|
||||||
in
|
in
|
||||||
@@ -270,9 +291,91 @@ oper
|
|||||||
g = Neutr
|
g = Neutr
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
-- Latin masculines in -us: the ending is dropped outside the nominative
|
||||||
|
-- (algoritmus - algoritmu), otherwise they follow hrad
|
||||||
|
declLATINUS : DeclensionType = \algoritmus ->
|
||||||
|
let algoritm = Predef.tk 2 algoritmus
|
||||||
|
in declHRAD algoritm ** {
|
||||||
|
snom, sacc = algoritmus ;
|
||||||
|
svoc = algoritm + "e"
|
||||||
|
} ;
|
||||||
|
|
||||||
|
declLATINUSA : DeclensionType = \genius ->
|
||||||
|
declLATINUS genius ** {g = Masc Anim} ;
|
||||||
|
|
||||||
|
-- Latin neuters in -um: the ending is dropped outside the nominative
|
||||||
|
-- (kontinuum - kontinua), otherwise they follow město
|
||||||
|
declLATINUM : DeclensionType = \kompaktum ->
|
||||||
|
let kompakt = Predef.tk 2 kompaktum
|
||||||
|
in declMESTO (kompakt + "o") ** {
|
||||||
|
snom, sacc, svoc = kompaktum
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- Greek neuters in -ma, with the stem extended by -t- (schéma - schématu)
|
||||||
|
declGREEKMA : DeclensionType = \schema ->
|
||||||
|
let schemat = schema + "t"
|
||||||
|
in {
|
||||||
|
snom,sacc,svoc = schema ;
|
||||||
|
sgen,sdat,sloc = schemat + "u" ;
|
||||||
|
sins = schemat + "em" ;
|
||||||
|
|
||||||
|
pnom,pacc = schemat + "a" ;
|
||||||
|
pgen = schemat ;
|
||||||
|
pdat = schemat + "ům" ;
|
||||||
|
ploc = schemat + "ech" ;
|
||||||
|
pins = schemat + "y" ;
|
||||||
|
g = Neutr
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- the hrad type with genitive -a instead of -u (les - lesa, zákon - zákona)
|
||||||
|
declHRADAstem : Str -> DeclensionType = \les_,les ->
|
||||||
|
declHRADstem les_ les ** {sgen = les_ + "a"} ;
|
||||||
|
|
||||||
|
declHRADA : DeclensionType = \les ->
|
||||||
|
declHRADAstem (dropFleetingE les) les ;
|
||||||
|
|
||||||
|
-- nouns that are adjectives in form: proměnná - proměnné, nultý - nultého
|
||||||
|
declADJF : DeclensionType = \promenna ->
|
||||||
|
let a = mladyAdjForms (init promenna + "ý")
|
||||||
|
in {
|
||||||
|
snom,svoc = a.fsnom ;
|
||||||
|
sgen = a.fsgen ;
|
||||||
|
sdat,sloc = a.fsdat ;
|
||||||
|
sacc = a.fsacc ;
|
||||||
|
sins = a.fsins ;
|
||||||
|
pnom,pacc = a.fpnom ;
|
||||||
|
pgen,ploc = a.pgen ;
|
||||||
|
pdat = a.msins ;
|
||||||
|
pins = a.pins ;
|
||||||
|
g = Fem
|
||||||
|
} ;
|
||||||
|
|
||||||
|
declADJM : DeclensionType = \nulty ->
|
||||||
|
let a = mladyAdjForms nulty
|
||||||
|
in {
|
||||||
|
snom,sacc,svoc = a.msnom ;
|
||||||
|
sgen = a.msgen ;
|
||||||
|
sdat = a.msdat ;
|
||||||
|
sloc = a.msloc ;
|
||||||
|
sins = a.msins ;
|
||||||
|
pnom,pacc = a.fpnom ;
|
||||||
|
pgen,ploc = a.pgen ;
|
||||||
|
pdat = a.msins ;
|
||||||
|
pins = a.pins ;
|
||||||
|
g = Masc Inanim
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- indeclinable loans: bombé, tamari, software
|
||||||
|
declINVAR : Gender -> DeclensionType = \g,s -> {
|
||||||
|
snom,sgen,sdat,sacc,svoc,sloc,sins = s ;
|
||||||
|
pnom,pgen,pdat,pacc,ploc,pins = s ;
|
||||||
|
g = g
|
||||||
|
} ;
|
||||||
|
|
||||||
declMUZ : DeclensionType = \muz_ -> --- 3.5.3 : sdat,sloc ; pnom
|
declMUZ : DeclensionType = \muz_ -> --- 3.5.3 : sdat,sloc ; pnom
|
||||||
let muz = dropFleetingE muz_
|
declMUZstem (dropFleetingE muz_) muz_ ;
|
||||||
in
|
|
||||||
|
declMUZstem : Str -> DeclensionType = \muz,muz_ ->
|
||||||
{
|
{
|
||||||
snom = muz_ ;
|
snom = muz_ ;
|
||||||
sgen,sacc = muz + "e" ; --- pacc
|
sgen,sacc = muz + "e" ; --- pacc
|
||||||
@@ -618,6 +721,21 @@ adjFormsAdjective : AdjForms -> Adjective = \afs -> {
|
|||||||
pastpartpl = kupo + "vali" ;
|
pastpartpl = kupo + "vali" ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
iii_krýtVerbForms : Str -> VerbForms = \krýt ->
|
||||||
|
let
|
||||||
|
kry = shortenVowel (Predef.tk 1 krýt) ;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
inf = krýt ;
|
||||||
|
pressg1 = kry + "ji" ;
|
||||||
|
pressg2 = kry + "ješ" ;
|
||||||
|
pressg3, negpressg3 = kry + "je" ;
|
||||||
|
prespl1 = kry + "jeme" ;
|
||||||
|
prespl2 = kry + "jete" ;
|
||||||
|
prespl3 = kry + "jí" ;
|
||||||
|
pastpartsg = kry + "l" ;
|
||||||
|
pastpartpl = kry + "li" ;
|
||||||
|
} ;
|
||||||
|
|
||||||
---------------------------
|
---------------------------
|
||||||
-- Pronouns
|
-- Pronouns
|
||||||
|
|||||||
@@ -29,4 +29,23 @@ lin
|
|||||||
rcl.compl ! a ;
|
rcl.compl ! a ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
-- no imperative in VerbForms yet; the 1st person plural present is used
|
||||||
|
-- instead, which is the normal register in mathematical Czech
|
||||||
|
-- ("předpokládáme, že ..." = "we assume that ...")
|
||||||
|
ImpVP vp = let agr = Ag (Masc Anim) Pl P1 in
|
||||||
|
{s = vp.clit ! agr ++ verbAgr vp.verb agr True ++ vp.compl ! agr} ;
|
||||||
|
|
||||||
|
EmbedS s = {s = "že" ++ s.s} ;
|
||||||
|
|
||||||
|
EmbedQS qs = {s = qs.s} ;
|
||||||
|
|
||||||
|
EmbedVP vp = let agr = Ag Neutr Sg P3 in
|
||||||
|
{s = vp.clit ! agr ++ vp.verb.inf ++ vp.compl ! agr} ;
|
||||||
|
|
||||||
|
AdvS a s = {s = a.s ++ s.s} ;
|
||||||
|
|
||||||
|
ExtAdvS a s = {s = a.s ++ SOFT_BIND ++ "," ++ s.s} ;
|
||||||
|
|
||||||
|
SSubjS a subj b = {s = a.s ++ SOFT_BIND ++ "," ++ subj.s ++ b.s} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,42 @@
|
|||||||
concrete StructuralCze of Structural = CatCze **
|
concrete StructuralCze of Structural = CatCze **
|
||||||
open ParadigmsCze, ResCze, Prelude in {
|
open ParadigmsCze, ResCze, Prelude in {
|
||||||
|
|
||||||
|
-- a singular determiner inflecting like an adjective, e.g. "každý", "nějaký"
|
||||||
|
oper
|
||||||
|
adjDet : AdjForms -> Determiner = \afs -> {
|
||||||
|
s = \\g,c => (adjFormsAdjective afs).s ! g ! Sg ! c ;
|
||||||
|
size = Num1
|
||||||
|
} ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
|
all_Predet = {s = "všechny"} ;
|
||||||
and_Conj = mkConj "a" ;
|
and_Conj = mkConj "a" ;
|
||||||
|
both7and_DConj = {s1 = "jak" ; s2 = "tak"} ;
|
||||||
|
between_Prep = mkPrep "mezi" Ins ;
|
||||||
by8agent_Prep = mkPrep "od" Gen ; ---- TODO this means "from", there might be no good translation
|
by8agent_Prep = mkPrep "od" Gen ; ---- TODO this means "from", there might be no good translation
|
||||||
|
by8means_Prep = mkPrep "pomocí" Gen ;
|
||||||
|
can_VV = {
|
||||||
|
inf = "moci" ;
|
||||||
|
pressg1 = "mohu" ;
|
||||||
|
pressg2 = "můžeš" ;
|
||||||
|
pressg3, negpressg3 = "může" ;
|
||||||
|
prespl1 = "můžeme" ;
|
||||||
|
prespl2 = "můžete" ;
|
||||||
|
prespl3 = "mohou" ;
|
||||||
|
pastpartsg = "mohl" ;
|
||||||
|
pastpartpl = "mohli" ;
|
||||||
|
} ;
|
||||||
|
either7or_DConj = {s1 = "buď" ; s2 = "nebo"} ;
|
||||||
|
every_Det = adjDet (mladyAdjForms "každý") ;
|
||||||
few_Det = invarNumeral "málo" ; -- CEG 6.8 --- TODO genitive mála
|
few_Det = invarNumeral "málo" ; -- CEG 6.8 --- TODO genitive mála
|
||||||
for_Prep = mkPrep "pro" accusative ;
|
for_Prep = mkPrep "pro" accusative ;
|
||||||
|
if_Subj = {s = "jestliže"} ;
|
||||||
|
no_Quant = adjFormsAdjective (mladyAdjForms "žádný") ;
|
||||||
|
on_Prep = mkPrep "na" Loc ;
|
||||||
|
someSg_Det = adjDet (mladyAdjForms "nějaký") ;
|
||||||
|
that_Subj = {s = "že"} ;
|
||||||
|
under_Prep = mkPrep "pod" Ins ;
|
||||||
|
where_IAdv = {s = "kde"} ;
|
||||||
from_Prep = mkPrep (pre {"s"|"z" => "ze" ; _ => "z"}) Gen ; ---- consonant clusters
|
from_Prep = mkPrep (pre {"s"|"z" => "ze" ; _ => "z"}) Gen ; ---- consonant clusters
|
||||||
have_V2 = mkV2 haveVerbForms ;
|
have_V2 = mkV2 haveVerbForms ;
|
||||||
in_Prep = mkPrep (pre {"v"|"m" => "ve" ; _ => "v"}) Loc ; ----
|
in_Prep = mkPrep (pre {"v"|"m" => "ve" ; _ => "v"}) Loc ; ----
|
||||||
|
|||||||
+41
-2
@@ -3,9 +3,48 @@
|
|||||||
concrete SymbolCze of Symbol = CatCze ** open Prelude, ResCze in {
|
concrete SymbolCze of Symbol = CatCze ** open Prelude, ResCze in {
|
||||||
|
|
||||||
lincat
|
lincat
|
||||||
Symb = {s : Str} ;
|
Symb, [Symb] = SS ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
MkSymb s = s ;
|
MkSymb s = s ;
|
||||||
SymbPN s = lin PN {s = \\_ => s.s ; g = Neutr} ;
|
|
||||||
|
BaseSymb = infixSS "a" ;
|
||||||
|
ConsSymb = infixSS bindComma ;
|
||||||
|
|
||||||
|
SymbPN s = symbolPN s.s ;
|
||||||
|
IntPN i = symbolPN i.s ;
|
||||||
|
FloatPN f = symbolPN f.s ;
|
||||||
|
|
||||||
|
-- unlike a bare symbol, a cardinal used as a name still declines
|
||||||
|
NumPN card = lin PN {s = \\c => card.s ! Neutr ! c ; g = Neutr} ;
|
||||||
|
|
||||||
|
-- the numeral is an invariable label: "úroveň pět", "na úrovni pět"
|
||||||
|
CNNumNP cn card = {
|
||||||
|
s,clit,prep = \\c => cn.s ! Sg ! c ++ card.s ! cn.g ! Nom ;
|
||||||
|
a = Ag cn.g Sg P3 ;
|
||||||
|
hasClit = False ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
CNIntNP cn i = {
|
||||||
|
s,clit,prep = \\c => cn.s ! Sg ! c ++ i.s ;
|
||||||
|
a = Ag cn.g Sg P3 ;
|
||||||
|
hasClit = False ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- as DetCN in NounCze, with the symbols in apposition
|
||||||
|
CNSymbNP det cn xs = {
|
||||||
|
s,clit,prep = \\c => det.s ! cn.g ! c ++ numSizeForm cn.s det.size c ++ xs.s ;
|
||||||
|
a = numSizeAgr cn.g det.size P3 ;
|
||||||
|
hasClit = False ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
SymbS sy = sy ;
|
||||||
|
|
||||||
|
SymbNum sy = {s = \\_,_ => sy.s ; size = Num5} ; -- "n čísel", like numerals from 5 up
|
||||||
|
SymbOrd sy = {s = glue sy.s "-tý"} ; ---- Ord is still an uninflected string
|
||||||
|
|
||||||
|
oper
|
||||||
|
symbolPN : Str -> PN
|
||||||
|
= \s -> lin PN {s = \\_ => s ; g = Neutr} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+47
-3
@@ -8,17 +8,35 @@ lin
|
|||||||
|
|
||||||
ComplSlash vps np = case <np.hasClit, vps.c.hasPrep> of {
|
ComplSlash vps np = case <np.hasClit, vps.c.hasPrep> of {
|
||||||
<True,False> => vps ** {
|
<True,False> => vps ** {
|
||||||
clit = \\a => vps.clit ! a ++ np.clit ! vps.c.c
|
clit = \\a => vps.clit ! a ++ np.clit ! vps.c.c ;
|
||||||
|
compl = \\a => vps.compl ! a ++ vps.ind ! a
|
||||||
} ;
|
} ;
|
||||||
_ => vps ** {
|
_ => vps ** {
|
||||||
compl = \\a => vps.compl ! a ++ vps.c.s ++ np.s ! vps.c.c
|
compl = \\a => vps.compl ! a ++ vps.c.s ++ np.s ! vps.c.c ++ vps.ind ! a
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
SlashV2a v = {
|
SlashV2a v = {
|
||||||
verb = v ;
|
verb = v ;
|
||||||
clit,compl = \\_ => [] ;
|
clit,compl = \\_ => [] ;
|
||||||
c = v.c
|
c = v.c ;
|
||||||
|
ind = \\_ => []
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- three-place verbs: c = direct object case, c2 = indirect object case
|
||||||
|
Slash2V3 v np = { -- fill the direct object, leave the indirect open
|
||||||
|
verb = v ;
|
||||||
|
clit = \\_ => [] ;
|
||||||
|
compl = \\_ => v.c.s ++ np.s ! v.c.c ;
|
||||||
|
c = v.c2 ;
|
||||||
|
ind = \\_ => []
|
||||||
|
} ;
|
||||||
|
Slash3V3 v np = { -- fill the indirect object (rendered after the object slot)
|
||||||
|
verb = v ;
|
||||||
|
clit = \\_ => [] ;
|
||||||
|
compl = \\_ => [] ;
|
||||||
|
c = v.c ;
|
||||||
|
ind = \\_ => v.c2.s ++ np.s ! v.c2.c
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
UseComp comp = {
|
UseComp comp = {
|
||||||
@@ -37,6 +55,12 @@ lin
|
|||||||
s = \\a_ => np.s ! Nom ; ---- InstrC in Pol
|
s = \\a_ => np.s ! Nom ; ---- InstrC in Pol
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
CompCN cn = {
|
||||||
|
s = \\a => case a of {
|
||||||
|
Ag _ n _ => cn.s ! n ! Nom ---- InstrC also possible
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
|
||||||
CompAdv adv = {
|
CompAdv adv = {
|
||||||
s = \\a_ => adv.s
|
s = \\a_ => adv.s
|
||||||
} ;
|
} ;
|
||||||
@@ -45,4 +69,24 @@ lin
|
|||||||
compl = \\a => vp.compl ! a ++ adv.s
|
compl = \\a => vp.compl ! a ++ adv.s
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
-- VerbForms has no passive participle yet, so the reflexive passive is used:
|
||||||
|
-- "číslo se dělí" = "the number is divided"
|
||||||
|
PassV2 v = {
|
||||||
|
verb = v ;
|
||||||
|
clit = \\_ => "se" ;
|
||||||
|
compl = \\_ => []
|
||||||
|
} ;
|
||||||
|
|
||||||
|
ComplVV vv vp = {
|
||||||
|
verb = vv ;
|
||||||
|
clit = vp.clit ;
|
||||||
|
compl = \\a => vp.verb.inf ++ vp.compl ! a
|
||||||
|
} ;
|
||||||
|
|
||||||
|
ComplVS vs s = {
|
||||||
|
verb = vs ;
|
||||||
|
clit = \\_ => [] ;
|
||||||
|
compl = \\_ => SOFT_BIND ++ "," ++ "že" ++ s.s
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,6 +111,27 @@ lin
|
|||||||
s3= ""
|
s3= ""
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
{-
|
||||||
|
-} --# notpresent
|
||||||
|
|
||||||
|
InflectionCl = \cl -> {
|
||||||
|
t = "cl" ;
|
||||||
|
s1 = heading1 "Clause" ;
|
||||||
|
s2 = frameTable (
|
||||||
|
tr (intagAttr "th" "colspan=\"3\"" "Simple tenses" ++
|
||||||
|
intagAttr "th" "colspan=\"3\"" "Perfect tenses") ++
|
||||||
|
tr (th "tense" ++ th "declarative" ++ th "interrogative" ++
|
||||||
|
th "tense" ++ th "declarative" ++ th "interrogative") ++
|
||||||
|
inflClauseTense "present" "present perfect" Pres cl ++
|
||||||
|
inflClauseTense "past" "past perfect" Past cl ++
|
||||||
|
inflClauseTense "future" "future perfect" Fut cl ++
|
||||||
|
inflClauseTense "conditional" "conditional perfect" Cond cl
|
||||||
|
)
|
||||||
|
} ;
|
||||||
|
|
||||||
|
{- --# notpresent
|
||||||
|
-}
|
||||||
|
|
||||||
InflectionV v = {
|
InflectionV v = {
|
||||||
t = "v" ;
|
t = "v" ;
|
||||||
s1= heading1 "Verb" ++
|
s1= heading1 "Verb" ++
|
||||||
@@ -227,6 +248,25 @@ lin
|
|||||||
} ;
|
} ;
|
||||||
|
|
||||||
oper
|
oper
|
||||||
|
|
||||||
|
{-
|
||||||
|
-} --# notpresent
|
||||||
|
|
||||||
|
inflClauseTense : Str -> Str -> ResEng.Tense -> Cl -> Str = \simple,perfect,tense,cl ->
|
||||||
|
tr (intagAttr "th" "rowspan=\"2\"" simple ++
|
||||||
|
td (cl.s ! tense ! Simul ! CPos ! ODir False) ++
|
||||||
|
td (cl.s ! tense ! Simul ! CPos ! OQuest) ++
|
||||||
|
intagAttr "th" "rowspan=\"2\"" perfect ++
|
||||||
|
td (cl.s ! tense ! Anter ! CPos ! ODir False) ++
|
||||||
|
td (cl.s ! tense ! Anter ! CPos ! OQuest)) ++
|
||||||
|
tr (td (cl.s ! tense ! Simul ! CNeg True ! ODir False) ++
|
||||||
|
td (cl.s ! tense ! Simul ! CNeg True ! OQuest) ++
|
||||||
|
td (cl.s ! tense ! Anter ! CNeg True ! ODir False) ++
|
||||||
|
td (cl.s ! tense ! Anter ! CNeg True ! OQuest)) ;
|
||||||
|
|
||||||
|
{- --# notpresent
|
||||||
|
-}
|
||||||
|
|
||||||
inflVerb : Verb -> Str = \verb ->
|
inflVerb : Verb -> Str = \verb ->
|
||||||
frameTable (
|
frameTable (
|
||||||
tr (th "infinitive" ++ td (verb.s ! VInf)) ++
|
tr (th "infinitive" ++ td (verb.s ! VInf)) ++
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user