[flagged]
Either way somebody somewhere wondered about this before 1820.
30 seconds on Wikipedia would have given you context of when the separation of nicotine occurred. Kind of hard to guess how tobacco plants make nicotine when you don't know what it is.