code: def check_if_one_word(word):
      for c in word:
          if not c.isalpha():
              return False
      return True
  
file_path: TextAttack/textattack/transformations/word_insertions/word_insertion_random_synonym.py
imports: import random
  from nltk.corpus import wordnet
  from .word_insertion import WordInsertion
label_desc: Use image node_id 1 for calling a global function with example usage: check_if_one_word(word) and returns: True, False