[03:06:24] *** Quits: e3928a3bc (b14f121a@gateway/web/freenode/ip.177.79.18.26) (Ping timeout: 260 seconds) [07:41:32] *** Joins: drbean (~drbean@TC210-63-209-14.static.apol.com.tw) [07:58:26] *** Joins: drbean_ (~drbean@210.60.168.196) [08:01:33] *** Quits: drbean (~drbean@TC210-63-209-14.static.apol.com.tw) (Ping timeout: 264 seconds) [08:39:26] *** Quits: proteusguy (~proteus-g@cm-134-196-84-89.revip18.asianet.co.th) (Remote host closed the connection) [09:38:46] *** Joins: proteus-guy (~proteusgu@180.183.15.246) [20:35:29] *** Joins: Gandhie (2eef661f@gateway/web/freenode/ip.46.239.102.31) [20:46:15] Could use some guidance on verbs in my mini resource grammar (for the computational syntax course), if anyone is around. :) [20:48:13] sure! [20:53:14] I'm looking at Japanese verbs, considering how to do the conjugations. In my lexicon, I have their plain versions and I was thinking about maybe using something similar to the smartNoun (the way it is for English) to go from plain form verbs to their polite forms. I'm just not sure how I could do that, with GFs syntax. [20:53:52] Because of course it couldn't look exactly like the smartNoun paradigm - as they are very different things. [20:55:02] do you have something already? [20:56:28] it sounds like a reasonable way to do it; like politeForm : Str -> Str = \taberu -> let tabe = take 4 taberu ; ru = drop 2 taberu ; ... [20:56:37] then match tabe and ru [20:58:08] (btw sorry, drop drops a prefix, the correct function to take the last 2 characters is dp: https://github.com/GrammaticalFramework/GF/blob/master/lib/src/prelude/Predef.gf#L21-L24 ) [20:59:24] or you can just use pattern matching like here https://github.com/GrammaticalFramework/gf-contrib/blob/master/extmini/ResIta.gf#L146-L151 [20:59:26] e.g. [20:59:43] case taberu of { tabe + "ru" => tabe + "masu" ; ... } [21:00:10] this matches any string that ends in "ru", and replaces the "ru" with "masu" [21:00:45] Ah, I see. That is what I was looking for, yes! [21:01:33] cool! [21:05:27] I'm going to give it a try, expecting it might make me run into some other issues in getting it to work with what I have so far. So I might come back. Thanks though! [21:05:52] it's also fine to not catch everything with a regular paradigm [21:06:19] btw did you get the encoding working or are you doing it with romaji? [21:08:51] *** Joins: Gandhie_ (2eef661f@gateway/web/freenode/ip.46.239.102.31) [21:09:30] Seems I got disconnected. But no, I'm using romaji. I tried some things, but it didn't work and it just seemed like a bit of a waste of time to try to figure it out when I could be working on the grammar instead. [21:09:44] yeah makes sense [21:10:14] *** Quits: Gandhie (2eef661f@gateway/web/freenode/ip.46.239.102.31) (Ping timeout: 260 seconds) [21:55:19] I seem to be struggling quite a bit with understanding the verb stuff. I have a clue about what I want to do, as discussed before, but looking at the MiniRes I have a bunch of things dealing with verbs, and I don't really know what they do or which ones I need. [21:55:31] https://imgur.com/a/zR9z1mH This is what I'm looking at. [21:56:04] I gather that Verb, Verb2, mkV and mkV2 are related to intransitive and transitive verbs. But that's about it. [22:46:12] *** Parts: Gandhie_ (2eef661f@gateway/web/freenode/ip.46.239.102.31) ()