Disambiguation Control

version 7 by Jon Ingold

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - some phrases for testing whether we've checking noun or second

    To decide if (x - an object) is not under consideration:
        if testing noun and x is not the noun, yes;
        if not testing noun and x is not the second noun, yes;
        no.

    To decide if testing the/a/-- noun: (- (TestingNoun()) -).
    To decide if testing the/a/-- second noun:
        if testing noun, no;
        yes.

    Include (-
    [ TestingNoun;
        if (parameters > 0 || look_ahead)
        {
    ! print "[testing second]^";
            rfalse;
        }
    ! print "[testing noun]^";
        rtrue;
    ];
    -).