There are all sorts of rules, but they don't work 100% of the
time. The examples you mentioned (photography, apostrophe) are
examples of four-syllable words derived from Greek ending in the EE
sound (spelled 'y', but sometimes 'e'). These take the main
stress on the second of four...