The new version of the online textbook entitled Text Mining and Artificial Intelligence in R has been published, which contains many innovations and improvements compared to the first volume published in print in 2021. The publication introduces those interested in the special problems of the application of text mining and artificial intelligence in the social sciences.