code: def uppercase_word(event):
      
      buff = event.current_buffer
  
      for i in range(event.arg):
          pos = buff.document.find_next_word_ending()
          words = buff.document.text_after_cursor[:pos]
          buff.insert_text(words.upper(), overwrite=True)
docs: Uppercase the current (or following) word.