class_docstr: Transforms an input by replacing its words with synonyms provided by
  OpenHownet http://nlp.csai.tsinghua.edu.cn/.
class_docstr_tok: ["Transforms","an","input","by","replacing","its","words","with","synonyms","provided","by","OpenHownet","http",":","\/\/nlp.csai.tsinghua.edu.cn\/","."]
docstr: Returns a list containing all possible words with N characters
  replaced by a homoglyph.
docstr_tok: ["Returns","a","list","containing","all","possible","words","with","N","characters","replaced","by","a","homoglyph","."]
code: def _get_replacement_words(self, word):
      """Returns a list containing all possible words with N characters
      replaced by a homoglyph."""
      results = self.hownet_dict.get_nearest_words(
          word, language="zh", K=self.topk
      )
      synonyms = []
      if results:
          for key, value in results.items():
              for w in value:
                  synonyms.append(w)
          return synonyms
      else:
          return []
  
imports: import OpenHowNet
  from .None import WordSwap
label_desc: Use image node_id 2 for calling the ChineseWordSwapHowNet obj's underlying member method code with example usage: obj._get_replacement_words(word) and returns: synonyms, list