Automatic text analysis by artificial intelligence