Another version of message generator

This project was quite the journey—lots of prep time and brainstorming for text content, and then a quick coding sprint at the end. I’m joking, I used ChatGPT to generate words for the arrays. Initially, I managed my code locally using Git, but later transitioned to a GitHub repository, pushing all files from my terminal line to the server.
In terms of the code itself, the main idea was to combine three types of words into sentences—subjects, verbs, and objects. I achieved this by creating three arrays for each word type. To ensure scalability and flexibility, I implemented a factory to create objects containing these arrays. This way, if we ever decide to add or remove a word type, the code can easily adapt.
Within a main function, I looped through the arrays inside the object and randomly selected words to construct sentences. Finally, I combined the chosen words and printed the resulting message.

My github code is here

As always any feedback appreciate