FORM validation for unit testing


#1

Is it intended to be the case that in a choices file, if there is has-aux, that there must be form-fin-nf? Should it be possible the opposite be true (that there is form-fin-nf without has-aux)?


#2

You can have form without auxiliaries (if you use the latest version of the GM, at least). What is not possible is having auxiliaries but not having a FORM hierarchy.


#3

Should the matrix flag as invalid a grammar with form sub-types but no FORM hierarchy?


#4

I would think that yes (as in, validation should post an error or a warning in this case), but Olga is probably in a better position to give a definitive answer.


#5

It sounds like it? Why would you have subtypes only and no form supertype?

Could you give a specific example (like a [fragment of the] choices file)?


#6

Having the subtypes without form-fin-nf being on would be a user error, but it doesn’t seem to break the matrix.

(…)
section=word-order
word-order=svo
has-dets=no
has-aux=no
(…)
section=other-features
form-subtype1_name=infinitive
(…)


#7

Ah! You are saying, in the following case, the validation does not complain about the unchecked box?

37%20PM


#8

…or rather, the box does not get checked automatically. Yes, this is a bug I think, it should probably get checked automatically.

But the validation should also catch this. I will file a bug.