checking the list of attributes when adapting the grammar