flatter vs set one’s cap

flatter

verb
  • To compliment someone, often (but not necessarily) insincerely and sometimes to win favour. 

  • To enhance someone's vanity by praising them. 

  • To encourage or cheer someone with (usually false) hope. 

  • To portray someone to advantage. 

noun
  • Someone who flattens, purposely or accidently. Also flattener. 

  • Someone who lives in a rented flat. 

  • A type of set tool used by blacksmiths. 

  • A flat-faced fulling hammer. 

  • A drawplate with a narrow, rectangular orifice, for drawing flat strips such as watch springs. 

set one’s cap

How often have the words flatter and set one’s cap occurred in a corpus of books? (source: Google Ngram Viewer )