I owe Mr. Musk an apology. It turns out that publishing the source code of "The Algorithm" at Twitter *was* actually instructive.
Source code:
https://github.com/twitter/the-algorithm/blob/7f90d0ca342b928b479b512ec51ac2c3821f5922/home-mixer/server/src/main/scala/com/twitter/home_mixer/functional_component/decorator/HomeTweetTypePredicates.scala#L224-L246

