Probably I should have added that not all nouns are gerunds and that what I wanted to test was whether a noun is a gerund.
I am writing some scripts which use 5!:0 on tacit expressions and that produce a 'pretty' result. For example source=: (5&+)`(10&+)@.1: target=: ( (5&+)`(10&+) (@.) (1:) ) NB. conjunction T0=. (5&+)`(10&+) T1=. @. T2=. (1:) But until I had the verb gerundYN my result would look like this: source=: (5&+)`(10&+)@.1: target=: ( ((<(<,'&'),<(<(,'0');5),<,'+'),<(<,'&'),<(<(,'0');10),<,'+') (@.) (1:) ) NB. conjunction T0=. ((<(<,'&'),<(<(,'0');5),<,'+'),<(<,'&'),<(<(,'0');10),<,'+') T1=. @. T2=. (1:) Here's an analysis of the expression in Henry's April 2nd 'lines in display' posting. You can see that first element of the gerund T6 is where the real work gets done source=: +/&.:<:@:(*/\)`0:@.(0&e.)@}:@$ target=: ( (+/&.:<:@:(*/\)`0:@.(0&e.)@}:) (@) ($) ) NB. conjunction T0=. (+/&.:<:@:(*/\)`0:@.(0&e.)@}:) T1=. @ T2=. ($) source=: +/&.:<:@:(*/\)`0:@.(0&e.)@}: target=: ( (+/&.:<:@:(*/\)`0:@.(0&e.)) (@) (}:) ) NB. conjunction T3=. (+/&.:<:@:(*/\)`0:@.(0&e.)) T4=. @ T5=. (}:) source=: +/&.:<:@:(*/\)`0:@.(0&e.) target=: ( +/&.:<:@:(*/\)`0:@.(0 (@.) (0&e.) )) NB. conjunction T6=. +/&.:<:@:(*/\)`0: T7=. @. T8=. (0&e.) source=: +/&.:<:@:(*/\)`0: target=: ( +/&.:<:@:(*/\)`0: ) NB. gerund source=: +/&.:<:@:(*/\) target=: ( (+/&.:<:) (@:) (*/\) ) NB. conjunction T9=. (+/&.:<:) T10=. @: T11=. (*/\) source=: (+/&.:<:) target=: ( (+/) (&.:) (<:) ) NB. conjunction T12=. (+/) T13=. &.: T14=. (<:) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
