I have the following patterns as a catch all for basic sentences.
Currently the first matches “His father has been eating cake” but not “His father has been eating a cake”. In fact, it works for all pronoun/possessive forms until I add the determiner. I don’t know why.
u: (_{~determiner_bits} _{[~pronoun_bits ~possessive_bits]} _[~verb_bits ~noun_bits] {~aux_verb} {~aux_verb} _[~verb_bits ~noun_bits !~pronoun_bits] {~determiner_bits} _[~verb_bits ~noun_bits ~adjective ~pronoun_bits]) PRONOUN _1 SUBJECT _2 VERB _3 OBJECT _4
u: (<‘_~pronoun_bits {~aux_verb} {~aux_verb} _[~verb_bits ~noun_bits] {~determiner_bits} _{[~verb_bits ~noun_bits ~pronoun_bits ~adjective]}) PRONOUN _0 VERB _1 OBJECT _2
Here is the trace for the failing input. As you can see, it is incorrectly matching the variables. Not sure why.
. . . . , . . Topic: ~pos linear Statements:
. . . . , . . try 0.0:
. . . . , . . try 0.0 START:
. . . . , . . . ( $undef
. . . . , . . . if $undef (null) != null
. . . . , . . try 1.0:
. . . . , . . try 1.0:
. . . . , . . . ( _
. . . . , . . . . { ~determiner_bits
. . . . , . . . . } ... + 6:6 _0=a/a _
. . . . , . . . . {
. . . . , . . . . , [ ~pronoun_bits ~possessive_bits ]
. . . . , . . . . } _
. . . . , . . . . [ ~verb_bits ~noun_bits
. . . . , . . . . ] ... + 7:7 _2=cake/cake
. . . . , . . . . { ~aux_verb }
. . . . , . . . . { ~aux_verb } _
. . . . , . . . . [ ~verb_bits ~noun_bits ! ~pronoun_bits
. . . . , . . . . ] ... + 7:7 _3=cake/cake
. . . . , . . . . { ~determiner_bits } _
. . . . , . . . . [ ~verb_bits ~noun_bits ~adjective ~pronoun_bits ]
. . . . , . . . retry past 6—————- _
. . . . , . . . . { ~determiner_bits } _
. . . . , . . . . {
. . . . , . . . . , [ ~pronoun_bits ~possessive_bits ]
. . . . , . . . . } _
. . . . , . . . . [ ~verb_bits ~noun_bits
. . . . , . . . . ] ... + 7:7 _2=cake/cake
. . . . , . . . . { ~aux_verb }
. . . . , . . . . { ~aux_verb } _
. . . . , . . . . [ ~verb_bits ~noun_bits ! ~pronoun_bits
. . . . , . . . . ] ... + 7:7 _3=cake/cake
. . . . , . . . . { ~determiner_bits } _
. . . . , . . . . [ ~verb_bits ~noun_bits ~adjective ~pronoun_bits ]
. . . . , . . . retry past 7—————- _
. . . . , . . . . { ~determiner_bits } _
. . . . , . . . . {
. . . . , . . . . , [ ~pronoun_bits ~possessive_bits ]
. . . . , . . . . } _
. . . . , . . . . [ ~verb_bits ~noun_bits ]
. . . . , . . try 2.0:
. . . . , . . try 2.0:
. . . . , . . . ( < _ ~pronoun_bits
. . . . , . . Result: NOPROBLEM Topic: ~pos
. . . . , NOPROBLEM (^respond) =>
. . . . NOPROBLEM (^nofail) =>