glossarize function