Adds index to word metadata