I believe its based on your tech level, with a certain amount of variance to be more or less advanced. A related question that I have: If I meet a conventional tech alien, can I "groom" him into a TN ally? Such as by trading tech and giving him ships?