File size: 454 Bytes
e4b9a7b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2016-2025 PyThaiNLP Project
# SPDX-FileType: SOURCE
# SPDX-License-Identifier: Apache-2.0
from pythainlp.tools import warn_deprecation


def is_native_thai(word: str) -> bool:
    warn_deprecation(
        "pythainlp.util.is_native_thai",
        "pythainlp.morpheme.is_native_thai",
        "5.0",
        "5.1",
    )

    from pythainlp.morpheme import is_native_thai as check

    return check(word)