Difference between "aber" and "doch" (and "sodern")
This has probably been asked before, but I'm very shaky on the difference between "aber" and "doch." I understand that "doch" is used in cases when someone makes a false assumption in the negative and you want to correct them. (e.g. "Kommst also nicht zur Party?" "Doch.")
But I've also seen "doch" used in other statements like, "Doch das ist nicht richtig." Can "aber" be used here?
I think I understand the difference between "aber" and "sodern" (which I translate as "but rather") but not between "aber" and "doch." Are there some general rules I can use to determine when to use each?