Making a homework excuse generator with Scratch is quite similar even though it may end up looking quite different. You will need:
You will need to find out the difference between the 'join' and the 'add' blocks for combining your subject, verb and object.
The 'say' block and the 'when this sprite clicked' event allows for an easy way to interact with the user
With Scratch you can more easily develop your excuse generator to include audio, to ask a question and wait for an answer or make it more fun in any way you want - or even make it into a bit of a game as I have done above with the speeding cat.
You can embed or link to your Scratch excuse generator into a website by appending the URL with '/embed'. From editor window just replace 'editor' with 'embed'. E.g.: https://scratch.mit.edu/projects/290956996/embed .