Open the card you want to apply the modules to in AA2Edit.After this, you can add them to cards in AA2Edit in the AAU modules tab.
There, tick 'Enable homosex' and press okay to save your settings. In AAU launcher, go to scripts tab and open up the settings of 'unlocks'. Modules FAQ What are the requirements I have to meet to be able to use modules? That link has both a download to all modules, and descriptions of all existing modules. They don't merely modify the game's Ai, they add to it things that were previously not possible.
Modules are bundles of triggers that work as custom character traits.