:meth: DEPRECATED: Please use `word_tokenize()` with a `custom_dict` argument instead
    :param str text: text to be tokenized
    :param dict custom_dict: a dictionary trie, or an iterable of words, or a string of dictionary path
    :param str engine: choose between different options of engine to token (newmm [default], mm, longest, and deepcut)
    :param bool keep_whitespace: True to keep whitespaces, a common mark for end of phrase in Thai
    :return: list of words

def dict_word_tokenize(
    text: str,
    custom_dict: Trie = DEFAULT_DICT_TRIE,
    engine: str = "newmm",
    keep_whitespace: bool = True,
) -> List[str]:
    """
    :meth: DEPRECATED: Please use `word_tokenize()` with a `custom_dict` argument instead
    :param str text: text to be tokenized
    :param dict custom_dict: a dictionary trie, or an iterable of words, or a string of dictionary path
    :param str engine: choose between different options of engine to token (newmm [default], mm, longest, and deepcut)
    :param bool keep_whitespace: True to keep whitespaces, a common mark for end of phrase in Thai
    :return: list of words
    """
    print(
        "Deprecated. Use word_tokenize() with a custom_dict argument instead.",
        file=sys.stderr,
    )
    return word_tokenize(
        text=text,
        custom_dict=custom_dict,
        engine=engine,
        keep_whitespace=keep_whitespace,
    )