Usage patterns
〈人〉に文句を言うto complain to someone
I complained to my neighbor that the noise was too loud.
〈物〉の文句を覚えるto memorize the wording/lyrics of something
I quickly memorized the lyrics of that song.
〈人〉は文句が多いsomeone complains a lot
My boss really complains about everything.