Generally speaking, its a good idea to include an illustrative use
case with a specification, so let's make up one:

Let's say my keyboard is getting worn out, and I have to hit the ` key
an arbitrary number of times before it works. So I want to be able to
form gerunds without using that key.

So, let's write a tacit adverb which takes a verb train and flattens
it into a gerund.

The first step is easy:

   (a b c d)(`'')
+-------------------+
|+-+---------------+|
||2|+-+-----------+||
|| ||a|+-+-------+|||
|| || ||3|+-+-+-+||||
|| || || ||b|c|d|||||
|| || || |+-+-+-+||||
|| || |+-+-------+|||
|| |+-+-----------+||
|+-+---------------+|
+-------------------+

And we can build up a tacit verb which performs the needed transform:

isT=: 0:`((-:&(,'2')+-:&(,'3'))@((0;0)&{::))@.(1<:L.)
t2g=: (}:,t2g@,@{:)@((0;1)&{::)^:isT

   t2g (a b c d)(`'')
+-+-+-+-+
|a|b|c|d|
+-+-+-+-+

But now we get to the tricky part.

Conceptually, we want to do something like this:

T2G=: (`'')((t2g`)(`:6))

But that doesn't actually work. The problem is that we need to
transform that initial gerund to a noun representation of a gerund
before this can work:

T2G=: (`'')G2g((t2g`)(`:6))

In other words, we want an adverb G2g which behaves like the verb ('0';<)

That's doable, and if you search the forum you can find posts by Jose
Mario Quintana which do the needed work (you incorporate that gerund
into a verb built with (&[) and then extract the relevant subtree).
The modularity of his approach is a little different from what I've
described here, but now that you know what you're looking for, that
shouldn't stop you...

I hope this helps,

-- 
Raul


On Wed, Aug 15, 2018 at 4:03 AM Piet Google <pietd...@gmail.com> wrote:
>
> Maybe already answered elsewhere and/or an ignorant question.
> But can’t figure it out.
> Is there a (tacit) way to apply an adverb to each of a list of verbs?
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to