import re


def cjk_detect(texts):
    """
    Detects non latin characters within a string.
    :param texts: strin - the string to check.
    :return: string - string describing the type of character detected
    """
    # korean
    if re.search("[\uac00-\ud7a3]", texts):
        return "ko"
    # japanese
    if re.search("[\u3040-\u30ff]", texts):
        return "ja"
    # chinese
    if re.search("[\u4e00-\u9FFF]", texts):
        return "zh"
    # cyrillic
    if re.search('[\u0400-\u04FF]', texts):
        return "cy"
    # thai
    if re.search('[\u0E00-\u0E7F]', texts):
        return "th"
    return None