I'm serious, kinda. If you wanted to write the most generic song possible in a given genre, how would you go about it? I'd start by asking some questions about typical parameters - most common tempo, length, key, instrumentation, number of words, rhyme scheme, number of sections, number of different chord progressions, number of drum patterns. If I need a melody, I'd see if the melody should contain only chord tones or not. Stuff like that. I'd gather a bunch of data first, in other words. Then I'd try to make a structure using that data as parameters and structural blocks, and start filling the blocks in with the most common chord progression, most common drum pattern etc. This actually could be a lot of fun, especially if doing it for a genre you're not really familiar with. And you'd learn a lot.