It is compulsory that you know how to speak and write in Thai
You must know how to recite the Thai National Anthem
But there is far more than this. You have to have permanent residence for at least 5 years (there are limited permanent resident slots). They have a points system - for example to get maximum points for education you need a PhD, to get maximum points for age you have to be between 40 and 50, etc. I just an internet search, "how to obtain Thai citizenship"
Assuming you are not going to work in Thailand, you should consider the marriage visa, O or Oa retirement visa, the Thai Elite Visa, or the Long Term Residence - Wealthy Pensioneer visa. Costs and requirements of these vary but any one of these will allow a person to stay long term in Thailand.