original_docstring: 
      This method romanizes all languages for search query.
      If word is hiragana or katakana, it is romanized by jautils.
      Args:
          word: should be script varianted
      Returns:
          [romanized_word, ... ]   
          (if word can be romanized by unidecode and jp_dictionary,
          returns multiple romanizations.)
      
docstring: This method romanizes all languages for search query.
  If word is hiragana or katakana, it is romanized by jautils.
docstring_tokens: This method romanizes all languages for search query . If word is hiragana or katakana it is romanized by jautils .
code: def romanize_search_query(word):
      """
      This method romanizes all languages for search query.
      If word is hiragana or katakana, it is romanized by jautils.
      Args:
          word: should be script varianted
      Returns:
          [romanized_word, ... ]   
          (if word can be romanized by unidecode and jp_dictionary,
          returns multiple romanizations.)
      """
      if not word:
          return []
  
      romanized_words = []
      if has_kanji(word):
          romanized_words = romanize_japanese_word(word, for_index=False)
  
      if jautils.should_normalize(word):
          hiragana_word = jautils.normalize(word)
          romanized_words.append(jautils.hiragana_to_romaji(hiragana_word))
  
      # if the name is a Chinese name and the chinese_romanize can produce
      # a different result, append the result to the romanzied_words with
      # unidecode results together
      unidecode_romanize_word = unidecode(word).strip()
      chinese_romanize_list = romanize_chinese_name(word)
      chinese_romanize_word = chinese_romanize_list[0] if chinese_romanize_list else ''
      if chinese_romanize_word and chinese_romanize_word != unidecode_romanize_word:
          romanized_words.append(chinese_romanize_word)
      romanized_words.append(unidecode_romanize_word)
  
      return romanized_words
code_tokens: def romanize_search_query ( word ) : if not word : return [ ] romanized_words = [ ] if has_kanji ( word ) : romanized_words = romanize_japanese_word ( word , for_index = False ) if jautils . should_normalize ( word ) : hiragana_word = jautils . normalize ( word ) romanized_words . append ( jautils . hiragana_to_romaji ( hiragana_word ) ) unidecode_romanize_word = unidecode ( word ) . strip ( ) chinese_romanize_list = romanize_chinese_name ( word ) chinese_romanize_word = chinese_romanize_list [ 0 ] if chinese_romanize_list else '' if chinese_romanize_word and chinese_romanize_word != unidecode_romanize_word : romanized_words . append ( chinese_romanize_word ) romanized_words . append ( unidecode_romanize_word ) return romanized_words
short_docstring: This method romanizes all languages for search query.
short_docstring_tokens: This method romanizes all languages for search query .
comment: """
      This method romanizes all languages for search query.
      If word is hiragana or katakana, it is romanized by jautils.
      Args:
          word: should be script varianted
      Returns:
          [romanized_word, ... ]   
          (if word can be romanized by unidecode and jp_dictionary,
          returns multiple romanizations.)
      """$SEP$# if the name is a Chinese name and the chinese_romanize can produce$SEP$# a different result, append the result to the romanzied_words with$SEP$# unidecode results together