no vs only

no

adv
  • not 

  • Used before different, before comparatives with more and less, and idiomatically before other comparatives. 

  • Used idiomatically before certain other adjectives. 

prep
  • not, does not, do not, etc. 

  • without 

  • like 

particle
  • Used to show disagreement, negation, denial, refusal, or prohibition. 

  • Used together with an affirmative word or phrase to show agreement. 

  • Used to show agreement with a negative question. 

det
  • Not any. 

  • Hardly any. 

  • Not (a); not properly, not really; not fully. 

  • Not any possibility or allowance of (doing something). 

noun
  • a negating expression; an answer that shows disagreement, denial, refusal, or disapproval 

  • a vote not in favor, or opposing a proposition 

intj
  • vehement rejection of truthfulness 

  • disgust 

  • mild disapproval 

only

adv
  • No more than; just. 

  • As recently as. 

  • Without others or anything further; exclusively. 

  • Used to express surprise or consternation at an action. 

  • Introduces a disappointing or surprising outcome that renders futile something previously mentioned. 

noun
  • An only child. 

adj
  • Alone in a category. 

  • Singularly superior; the best. 

  • Without sibling; without a sibling of the same gender. 

conj
  • Under the condition that; but. 

  • But; except. 

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