Index: app/src/grp/grp
===================================================================
--- app/src/grp/grp	(revision 20b4e44e7537762f6aceb72b039f6e8f8a50e201)
+++ app/src/grp/grp	(revision f5d3b20097c280ad859675079ea5c7bc804b9815)
@@ -28,4 +28,5 @@
 my $eos="seg(EOS)";
 my $morfield='lem';
+my $tags=0;
 
 #read configuration files###########################
@@ -61,4 +62,7 @@
 			$action;
     		}
+    		elsif($name eq "tags"){
+    			$tags=$value;
+    		}
     		elsif(($name eq "help")or($name eq "h")){
 			$help=1;
@@ -78,4 +82,5 @@
 	   "command" => \$show_command,
 	   "action=s" => \$action,
+	   "tags=s" => \$tags,
 	   "help|h" => \$help);
 
@@ -97,4 +102,5 @@
 				    P - postprocess
 				(default pgP)
+   --tags=STRING                Morphosyntactic tag format.
    --command			Print the shell command to be executed and exit.
    --help -h			Help.
@@ -109,4 +115,11 @@
     $macrofile or
     -e "$LIB_DIR/terms.m4" and $macrofile="$LIB_DIR/terms.m4";
+
+die("$0: undefined tagset format (tags option missing)") unless
+    $tags;
+
+die("$0: $tags.tag2re program not found") unless
+    1; #JAK NAPISAC WARUNEK???
+
 
 my $uncompress = ($action =~ /u/) ? ' lzop -cd | '  : '';
@@ -132,5 +145,5 @@
 # <> expansion
 
-$grepre =~ s/<([^>]+)>/`echo $1 | tag2re`/ge;
+$grepre =~ s/<([^>]+)>/`echo $1 | $tags.tag2re`/ge;
 
 $grepre =~ s/\./[^ [:cntrl:]]/g;
Index: app/src/ser/ser
===================================================================
--- app/src/ser/ser	(revision e2bde98bb18e1063ddb00ab5c402f0cda43546d4)
+++ app/src/ser/ser	(revision f5d3b20097c280ad859675079ea5c7bc804b9815)
@@ -26,4 +26,5 @@
 my $flex=0;
 my $morfield='lem';
+my $tags=0;
 
 #read configuration files###########################
@@ -56,4 +57,7 @@
 			$flextemplate=$value;
     		}
+    		elsif($name eq "tags"){
+    			$tags=$value;
+    		}
     		elsif($name eq "flex"){
 			$flex=1;
@@ -75,4 +79,5 @@
 	   "macros=s" => \$macros,
 	   "flex-template=s" => \$flextemplate,
+	   "tags=s" => \$tags,
 	   "flex" => \$flex,
 	   "help|h" => \$help);
@@ -89,4 +94,5 @@
    --macros=FILE                  Read macrodefinitions from FILE.
    --flex-template=FILE           Read flex code template from FILE.
+   --tags=STRING                  Morphosyntactic tag format.
    --only-matching -m		  Print only fragments matching PATTERN.
    --no-markers -M                Do not print BOM and EOM markers [TODO].
@@ -107,4 +113,10 @@
     $macros or
     -e "$LIB_DIR/terms.m4" and $macros="$LIB_DIR/terms.m4";
+
+die("$0: $tags.tag2re program not found") unless
+    1; #JAK NAPISAC WARUNEK???
+
+die("$0: undefined tagset format (tags option missing)") unless
+    $tags;
 
 
@@ -128,5 +140,5 @@
 
 # <> expansion
-$flexpattern =~ s/<([^>]+)>/`echo $1 | tag2re`/ge;
+$flexpattern =~ s/<([^>]+)>/`echo $1 | $tags.tag2re`/ge;
 
 # restricting the value of the . special symbol
