class_docstr: Make the first word of the surname and the preceding word form a word,
          and the last word of the name and the following word form a word
  
  Example::
  
      我朝小明走了过去 -> 我朝向明走了过去
class_docstr_tok: ["Make","the","first","word","of","the","surname","and","the","preceding","word","form","a","word",",","and","the","last","word","of","the","name","and","the","following","word","form","a","word","Example",":",":","\u6211\u671d\u5c0f\u660e\u8d70\u4e86\u8fc7\u53bb","-",">","\u6211\u671d\u5411\u660e\u8d70\u4e86\u8fc7\u53bb"]
docstr: :return: Last name dictionary and first name dictionary
docstr_tok: [":","return",":","Last","name","dictionary","and","first","name","dictionary"]
code: def make_dict(self):
      r"""
      :return: Last name dictionary and first name dictionary
  
      """
      word_end_dict = {}
      name_dict = {}
  
      for word in self.word_list:
          if len(word) > 1:
              if word[1:] not in word_end_dict:
                  word_end_dict[word[1:]] = [word[0]]
              elif word[0] not in word_end_dict[word[1:]]:
                  word_end_dict[word[1:]] += [word[0]]
  
              if word[-1:] in self.firstname_list:
                  if word[:-1] not in name_dict:
                      name_dict[word[:-1]] = [word[-1:]]
                  elif word[-1:] not in name_dict[word[:-1]]:
                      name_dict[word[:-1]].append(word[-1])
  
      return word_end_dict, name_dict
  
file_path: textflint/textflint/generation/transformation/CWS/swap_name.py
imports: import random
  from ..transformation import Transformation
  from ....common.settings import NAME_PATH, WORD_LIST_PATH
  from ....common.utils.load import plain_lines_loader
  from ....common.utils.install import download_if_needed
  from ....common.utils.list_op import descartes
label_desc: Use image node_id 3 for calling the SwapName obj's underlying member method code with example usage: obj.make_dict() and returns: word_end_dict,  name_dict