Thanks very much, Raul.  

When I was referring to innadequate documentation, I
meant the top section which attempts to describe the
parsing order independently of the bottom table.  It
does so fairly well, except for failing to
define/clarify verb phrase as you have.

Another way to describe the process below is scan
leftward from a conjunction until you reach one of:
edge V
V V
N V
The verb phrase is bound by the right V in that pair.
Although the expression can be malformed and result in
a syntax error...

Looks like its true...
  pc =: 2 : '&'
  pv=: 2 : 'smoutput u'
    2 'n' pc 'n' [EMAIL PROTECTED] pv 'nil'
2&(smoutput [EMAIL PROTECTED])
    'n' pc 'n' [EMAIL PROTECTED] pv 'nil'
&(smoutput [EMAIL PROTECTED])
The above shows that when N V or V V pattern comes up,
the verb phrase stops, but hopefully the line below is
a bug in J:

  ('n' pc 'n') [EMAIL PROTECTED] pv 'nil'
|syntax error
  parenthesising (u c y) can break a sentence :(

although,
   & [EMAIL PROTECTED] pv 'nil'
|syntax error
 so maybe the bug is that the above sentences made an
adverb from pattern C V. when they should have created
a syntax error?

--- "Miller, Raul D" <[EMAIL PROTECTED]> wrote:
> > If you were to parse out words leftward from a
> > conjunction to find the verb phrase that bonds to
> it,
> > (ignoring parentheses) then:
> > 1.keep accumulating if word is adv or conj.
> > 2.if word is a verb or noun, then keep
> accumulating if
> > left word is conjunction.
> 
> Assuming a verb phrase is present, yes.
> 
> > Resulting expression is either the verb phrase
> that
> > bonds with rightmost conjunction or a syntax
> error.
> 
> A syntax error is not a verb phrase.
> 
> A sequence of adverbs is not a verb phrase and is
> not a syntax error.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to