[03:17:17] The gf shell with the command 'gt' will generate all the possible sentences in the grammar and 'l' will linearize them. [03:25:04] There appears to be an active2passive function: [03:25:20] > p "she sees him" | pt -transfer=active2passive | l -- he is seen by her [05:47:50] yeah! I think that's using the def feature, if I remember correctly [05:49:13] I would like to use it more in my grammars, but there's no support for it in the runtimes and not all RGL cats are introduced as data [05:50:04] barti: absolutely! haha damn the day there's someone speaking on the channel I am travelling [05:50:27] welcome to the channel and feel free to ask anything! [05:50:54] thanks drbean for answering ^^ [05:54:27] but so, the active2passive function exists already and can be used in the gf shell. for other types of tree manipulation, you need to compile your grammar into a PGF ("portable grammar format") and access it from another program; currently this is possible from Haskell, C, Python, Java and C# [05:55:45] I can point you to examples of such transformations later when I'm back home (tomorrow) [06:02:05] docs to the APIs: https://www.grammaticalframework.org/doc/runtime-api.html [06:03:47] and the older one which confusingly enough coexists, but only for haskell. this is better documented, but it lacks a few features that the newer C runtime has: http://hackage.haskell.org/package/gf-3.10/docs/PGF.html [09:34:03] *** Quits: proteusguy (~proteusgu@cm-58-10-154-216.revip7.asianet.co.th) (Ping timeout: 255 seconds) [10:01:40] *** Joins: proteusguy (~proteusgu@mx-ll-180.183.113-76.dynamic.3bb.co.th) [10:49:45] drbean: thanks for your answer. I will try that [10:55:02] inariksit: examples would be great. At the moment I'm still a bit disoriented and don't know exactly where to start. But if it is generally possible, then I will invest more time. [11:15:29] drbean: I tried your suggestion but the gf shell says "option not interpreted: transfer". Am I missing something? I run gf version 3.10. on Ubuntu 16.04 and I installed it via the .deb-Package provided on the gf webpage [12:34:03] *** Quits: proteusguy (~proteusgu@mx-ll-180.183.113-76.dynamic.3bb.co.th) (Ping timeout: 255 seconds) [13:45:34] *** Joins: Patternmaster (~georg@li1192-118.members.linode.com) [15:56:11] barti: sure, I'll get back to it! but in general it's definitely possible [18:47:04] *** Joins: proteusguy (~proteusgu@cm-58-10-154-216.revip7.asianet.co.th) [21:19:07] I have another question that is not directly related to gf. I'm just reading a bit in the gf reference manual and I noticed some spelling mistakes. Is there a way to report them, if so where can I do that? [21:20:17] you can do it at github issues! [21:21:27] https://github.com/GrammaticalFramework/gf-core and https://github.com/GrammaticalFramework/gf-rgl [21:22:19] the reference manual should be here https://github.com/GrammaticalFramework/gf-core/tree/master/doc so you can make an issue in the gf-core repo [21:23:49] (or make a pull request, if it's just a simple typo! ^^) [21:33:49] thanks. I will correct the typos I found and make a pull request afterwards :)