original_docstring: Validate puzzle custom word input parameter.
  
      Args:
          word: (str) a word to search.
  
      Raises:
          ValueError: in case invalid input parameter.
      
docstring: Validate puzzle custom word input parameter.
docstring_tokens: Validate puzzle custom word input parameter .
code: def _validate_puzzle_word(word: str) -> None:
      """Validate puzzle custom word input parameter.
  
      Args:
          word: (str) a word to search.
  
      Raises:
          ValueError: in case invalid input parameter.
      """
      if not re.findall(string=word, pattern=r'^[a-z]+$'):
          raise ValueError(
              f'Specified "{word}" word value is invalid. It '
              'should match "only lowercase letters" pattern e.g "foo"!.'
          )
code_tokens: def _validate_puzzle_word ( word : str ) -> None : if not re . findall ( string = word , pattern = r'^[a-z]+$' ) : raise ValueError ( f'Specified "{word}" word value is invalid. It ' 'should match "only lowercase letters" pattern e.g "foo"!.' )
short_docstring: Validate puzzle custom word input parameter.
short_docstring_tokens: Validate puzzle custom word input parameter .
comment: """Validate puzzle custom word input parameter.
  
      Args:
          word: (str) a word to search.
  
      Raises:
          ValueError: in case invalid input parameter.
      """