code: def expand_exc(excs, search, replace):
      
  
      def _fix_token(token, search, replace):
          fixed = dict(token)
          fixed[ORTH] = fixed[ORTH].replace(search, replace)
          return fixed
  
      new_excs = dict(excs)
      for token_string, tokens in excs.items():
          if search in token_string:
              new_key = token_string.replace(search, replace)
              new_value = [_fix_token(t, search, replace) for t in tokens]
              new_excs[new_key] = new_value
      return new_excs
docs: Find string in tokenizer exceptions, duplicate entry and replace string.
      For example, to add additional versions with typographic apostrophes.
  
      excs (dict): Tokenizer exceptions.
      search (unicode): String to find and replace.
      replace (unicode): Replacement.
      RETURNS (dict): Combined tokenizer exceptions.