Add data-attribute to grammar list