How is this word game done?

The game hangaroo is a hangman game. It’s an interesting game. But i’m curious as to how the phrase part is done. Are those dynamic text or what? How to make something like that?