docs: def keys(self):
          """
          Returns a :class:`GramGenerator` that produces only keys.
          """
          return GramGenerator(self.path, self.elem, keys=True,
                               ignore_hash=self.ignore_hash)