Input: Says Rick Perry flip-flopped on gay marriage by first saying it was a states rights issue and then saying he was in favor of a federal constitutional amendment banning gay marriage.
Output: 

 civil-rights, gays-and-lesbians, states