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: :param list firstname_list: family name dictionary
  :param list word_list: dictionary of words
  :param dict word_end_dict: a dictionary
  :param dict name_dict: A dictionary ending with a surname
docstr_tok: [":","param","list","firstname_list",":","family","name","dictionary",":","param","list","word_list",":","dictionary","of","words",":","param","dict","word_end_dict",":","a","dictionary",":","param","dict","name_dict",":","A","dictionary","ending","with","a","surname"]
code: def __init__(self, **kwargs):
      r"""
      :param list firstname_list: family name dictionary
      :param list word_list: dictionary of words
      :param dict word_end_dict: a dictionary
      :param dict name_dict: A dictionary ending with a surname
  
      """
      super().__init__()
      self.firstname_list = plain_lines_loader(
          download_if_needed(NAME_PATH)
      )
      self.word_list = plain_lines_loader(
          download_if_needed(WORD_LIST_PATH)
      )
      self.word_end_dict, self.name_dict = self.make_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 1 to create a new SwapName object from inherited base classes: Transformation with example: obj = SwapName()