From ab173e4adc46173c34ba9f52871e777812530d97 Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 14 Sep 2012 08:56:09 +0000 Subject: negative patterns in gfmorpho --- src/www/gfmorpho/gfmorpho.html | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'src/www/gfmorpho/gfmorpho.html') diff --git a/src/www/gfmorpho/gfmorpho.html b/src/www/gfmorpho/gfmorpho.html index 3a58d4442..46ab12f5f 100644 --- a/src/www/gfmorpho/gfmorpho.html +++ b/src/www/gfmorpho/gfmorpho.html @@ -10,7 +10,7 @@ Give language, part of speech, and one or more word forms, to obtain the inflection table.

-

+
@@ -25,7 +25,7 @@ Examples: Lat A vetus veteris Thus notice that strings are given without quotes, but features -are prefixed with an underscore _ (a temporary hack). +are prefixed with an underscore _.

Languages and part of speech tags

@@ -50,24 +50,36 @@ inflection table from the forms given. For a vast majority of words in all languages, it is enough to give just one form. But sometimes more forms are needed to get the inflection table right. +

+ +This is a front end to the Paradigms modules in the GF Resource Grammar. +See RGL +Synopsis for more information on available languages and paradigms. + +

Filtering with patterns

-You may not want to see the whole table. Then you can filter it with patterns, each of which works like +You may not want to see the whole table. +Then you can filter it with patterns, each of which works like "grep", using * to match any substring, either in the features or in the forms:
   Eng N baby -Gen
   Eng V die -dy*
 
-This is a front end to the Paradigms modules in the GF Resource Grammar. -See RGL -Synopsis for available languages and paradigms. +If several pattern are given, they are applied in conjunction. +Patterns prefixed with a tilde ~ rather than a hyphen +- are checked for not matching. Thus the search +
+  Eng N baby -Gen ~Pl
+
+selects the lines that contain Gen but not Pl.

Using custom paradigms

-(Another temporary hack, for GF experts:) If you want to use other paradigms than the smart +(For GF experts.) If you want to use other paradigms than the smart mk paradigms, you can prefix your input with ! and use the normal expression syntax of GF. For example:
-- 
cgit v1.2.3