attain vs earn

attain

verb
  • To gain (an object or desired result). 

  • To reach or come to, by progression or motion; to arrive at (a place, time, state, etc.). 

  • To come or arrive, by motion, growth, bodily exertion, or efforts toward a place, object, state, etc. 

earn

verb
  • To gain (success, reward, recognition) through applied effort or work. 

  • To cause (someone) to receive payment or reward. 

  • To achieve by being worthy of. 

  • To receive payment for work. 

How often have the words attain and earn occurred in a corpus of books? (source: Google Ngram Viewer )