ameliorate vs take pains with

ameliorate

verb
  • To make better, or improve, something perceived to be in a negative condition. 

  • To become better; improve. 

take pains with

How often have the words ameliorate and take pains with occurred in a corpus of books? (source: Google Ngram Viewer )