add data-attribute to grammar list