Using the demo data, consider what happens when we make a new attribute definition for the 'Phonetic' level, which is the only level of type SEGMENT in the db.
add_attributeDefinition(ae,
levelName = "Phonetic",
name = "Phonetic2")
Now if we query all annotations on this new attribute, notice the values in the attribute column – they reflect the level name, not the attribute name.
query(ae,
"Phonetic2 =~ .*")
However, this behaviour does not occur when creating new attributes on ITEM levels:
An older question appears to be similar, but it reflects a much earlier stage of the package, where only a level variable was returned at all (i.e. no attribute variable).
Using the demo data, consider what happens when we make a new attribute definition for the 'Phonetic' level, which is the only level of type SEGMENT in the db.
Now if we query all annotations on this new attribute, notice the values in the
attribute
column – they reflect the level name, not the attribute name.However, this behaviour does not occur when creating new attributes on ITEM levels:
Any idea why?
An older question appears to be similar, but it reflects a much earlier stage of the package, where only a
level
variable was returned at all (i.e. noattribute
variable).