[05:14:21] *** Joins: scrmpy (~scrmpy@2001:67c:1350:102::4) [05:18:06] In RGL how do we use an interjection, I see some paradigms have a "mkInterj" but after creating the Interj type I can't see any other function that accepts an Interj? [07:42:50] good question! there seems to be none in the API, and in the abstract syntax, I see only one function that consumes an Interj [07:42:51] abstract/Phrase.gf: UttInterj : Interj -> Utt ; -- alas [07:46:05] so the next question is, how to use an RGL function that isn't exported in the API? (there are some, I guess the reason is that they have been added to the RGL after the API was created? we need to ask aarne :-D) [07:46:26] the answer is, you need too open that module in your grammar. normally you just do like [07:47:19] concrete MyGrammarCnc of MyGrammar = [MyModule1Cnc, MyModule2Cnc, … **] open SyntaxCnc, ParadigmsCnc in { … } [07:47:24] [07:47:58] now you need to add the module PhraseCnc as well. usually the best is to open it qualified, i.e. (P=PhraseCnc) and then use P.UttInterj in the code [07:49:27] the next question is, how about if you need to do something more to the interjection than make it into utterance? [07:52:17] option 1: there are a couple of extension modules in different GF libraries. https://github.com/GrammaticalFramework/gf-rgl/blob/master/src/abstract/Extend.gf and https://github.com/GrammaticalFramework/gf-wordnet/blob/master/ParseExtend.gf , you could see if there's anything there that does what you want [07:53:23] option 2: just hack it. if the category of Interj has the same lincat as another category (say S), you can always give it to a function that expects an S by wrapping it with (lin S myInterj) or [07:53:38] I have written a blog post about better practices, it might be of interest https://inariksit.github.io/gf/2019/02/17/beyond-API.html [07:55:06] do you have a concrete idea in mind what you want to do with and interjection, or was it just wondering in general? [07:59:49] *** Joins: proteus-guy (~proteus-l@cm-58-10-208-180.revip7.asianet.co.th) [08:38:52] inariksit: Thanks for the details. For now UttInterj is perfect :). [13:55:19] scrmpy: okay, great!