original_docstring: r"""
          Return the word generated by mapping a letter to each occurrence of
          the return words for the given factor dropping any dangling prefix and
          suffix. See for instance [Dur1998]_.
  
          EXAMPLES::
  
              sage: Word('12131221312313122').return_words_derivate(Word('1'))
              word: 123242
          
docstring: r"""
  Return the word generated by mapping a letter to each occurrence of
  the return words for the given factor dropping any dangling prefix and
  suffix. See for instance [Dur1998]_.
  
  
  
  
docstring_tokens: r " " " Return the word generated by mapping a letter to each occurrence of the return words for the given factor dropping any dangling prefix and suffix . See for instance [ Dur1998 ] _ .
code: def return_words_derivate(self, fact):
          r"""
          Return the word generated by mapping a letter to each occurrence of
          the return words for the given factor dropping any dangling prefix and
          suffix. See for instance [Dur1998]_.
  
          EXAMPLES::
  
              sage: Word('12131221312313122').return_words_derivate(Word('1'))
              word: 123242
          """
          tab = {}
          ret = [tab.setdefault(w, len(tab)) + 1 for w in self._return_words_list(fact)]
          from sage.combinat.words.word import Word
          return Word(ret)
code_tokens: def return_words_derivate ( self , fact ) : tab = { } ret = [ tab . setdefault ( w , len ( tab ) ) + 1 for w in self . _return_words_list ( fact ) ] from sage . combinat . words . word import Word return Word ( ret )
short_docstring: r"""
  Return the word generated by mapping a letter to each occurrence of
  the return words for the given factor dropping any dangling prefix and
  suffix.
short_docstring_tokens: r " " " Return the word generated by mapping a letter to each occurrence of the return words for the given factor dropping any dangling prefix and suffix .
comment: r"""
          Return the word generated by mapping a letter to each occurrence of
          the return words for the given factor dropping any dangling prefix and
          suffix. See for instance [Dur1998]_.
  
          EXAMPLES::
  
              sage: Word('12131221312313122').return_words_derivate(Word('1'))
              word: 123242
          """