input: def generateMarkov(text: str) -> str:
      """Generates a Markov chain from a given text input.
      >>> generateMarkov('Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do: once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, `and what is the use of a book,' thought Alice `without pictures or conversation?')
      'Alice was beginning to get very tired of sitting by her sister on the bank and of having nothing to do once or twice she had peeped into the book her sister was reading but it had no pictures or conversations in it and what is the use of a book thought Alice without pictures or conversation?'
      """
output:     words = text.split()
      result = []
      for i in range(len(words) - 1):
          if words[i + 1].startswith("'"):
              result.append(words[i])
          else:
              result.append(words[i] + " " + words[i + 1])
      result.append(words[-1])
      return ' '.join(result)