code: def isthai(word: str, ignore_chars: str = ".") -> bool:
      
      if not ignore_chars:
          ignore_chars = ""
  
      for ch in word:
          if ch not in ignore_chars and not isthaichar(ch):
              return False
      return True
docs: Check if all character is Thai
      เป็นคำที่มีแต่อักษรไทยหรือไม่
  
      :param str word: input text
      :param str ignore_chars: characters to be ignored (i.e. will be considered as Thai)
      :return: True or False