def string(self, *args, **kwargs):
        """Compare attributes of pairs with string algorithm.

        Shortcut of :class:`recordlinkage.compare.String`::

            from recordlinkage.compare import String

            indexer = recordlinkage.Compare()
            indexer.add(String())

        """
        compare = String(*args, **kwargs)
        self.add(compare)

        return self
def string ( self , * args , ** kwargs ) : compare = String ( * args , ** kwargs ) self . add ( compare ) return self
Compare attributes of pairs with string algorithm.

        Shortcut of :class:`recordlinkage.compare.String`::

            from recordlinkage.compare import String

            indexer = recordlinkage.Compare()
            indexer.add(String())