docs: def _combine_ngrams(ngrams, joiner) -> str:
          """Construct keys for checking in trie"""
          if isinstance(ngrams, str):
              return ngrams
          else:
              combined = joiner.join(ngrams)
              return combined