WordPress.com how are ‘related posts’ determined? [closed]

I believe that related posts have similar tags, at least according to this article, which includes code for a query that will include related posts: http://www.wpbeginner.com/wp-tutorials/how-to-display-related-posts-in-wordpress/

Couldn’t find anything about related posts in a quick look in the Codex.