Since the AI in civ 5 are, as their name suggests, artificial, that means that all their actions are determined by numbers and formulas.
That would include the diplomacy between the AI and the player.
So what is the formula that determines the AI's view of the player?
For instance, I found this thread on the civ fanatics forum that details how the "warmonger" part of diplomacy is factored.
It says that the war monger score with another civ is caluclated by: (other civ's warmonger hate factor) * (5 * (declarations of war against major civs) + 10 * (major civs conquered) + 5 * (declarations of war against minor civs) + 10 * (minor civs conquered)) This score then corresponds to several levels, 200 + is critical, 150-200 is severe, 100-150 is major, 50-100 is minor, and less than 50 is none. Critical then corresponds to -100 diplo points with that civ, severe is -70, major is -40, and minor is -15.
To put that in comparison a declaration of friendship gives +35 diplo points.
So what other formulas can be taken from the XML files to determine the overall diplomatic calculation?