Similar to :attr:`complete`, but return the whole word, for
        example::

            subrout

        would return `subroutine`.

def name(self):
        """
        Similar to :attr:`complete`, but return the whole word, for
        example::

            subrout

        would return `subroutine`.
        """
        if hasattr(self._element, "name"):
            return self._element.name
        else:
            return str(self._element)