This is AI that generates Shakespeare alike text.
This AI is based on "Attention is all you need" research paper (also ChatGPT is based on it).
AI is using self-attention, mechanism for connecting different positions in a single sequence to construct a representation of the sequence.
More about this you have on my website.HERE