Hello to everybody
I have a brief question considering the combination of NOT/NEGATE with contextual tests on the dependency axis:
if I'd just want to check if there are no children being member of a LIST:
given the case, that a word has no child at all, I would also like the context to be true;
- when I use the NOT keyword, the TESTFLAG is not added
- when I use the NEGATE keyword, the TESTFLAG is set
- also if NONE is used, the TESTFLAG is set
it seems to me that if there is no child, the "NOT c MEMBEROFX" contextual test seems to not yield true while NEGATED / NONE does? Why is that the case?
I understand that the scope of NEGATE is the whole following chain (which is here only a single test) while the NOT inverts only the following test;
So, what exactly happens if there is no child, or respectively, why is the test with "NOT c modifiers" not successful then?
#####################################
#this is a dummy example; should apply to any sentence
SECTION
DELIMITERS = "<.>" "<!>" "<?>" "<;>" "<-->" "<¶>"; # define sentence boundary
LIST >>> = >>> ;
#anything
LIST modifiers = very little;
#If there is no child for a token, this does not work
ADD:test_1 (TESTFLAG_A) TARGET (*) IF (NOT c modifiers);
#this works
ADD:test_2 (TESTFLAG_B) TARGET (*) IF (NEGATE c modifiers);
#this works too
ADD:test_3 (TESTFLAG_C) TARGET (*) IF (NONE c modifiers);
########################################
Any answer is apreciated
best wishes
Michi
BTW: big thumbs up for Tino for the ongoing development!